How To Install r-cran-spatialreg on Kali Linux

In this tutorial we learn how to install r-cran-spatialreg on Kali Linux. r-cran-spatialreg is GNU R spatial regression analysis

Introduction

In this tutorial we learn how to install r-cran-spatialreg on Kali Linux.

What is r-cran-spatialreg

r-cran-spatialreg is:

A collection of all the estimation functions for spatial cross-sectional models (on lattice/areal data using spatial weights matrices) contained up to now in ‘spdep’, ‘sphet’ and ‘spse’. These model fitting functions include maximum likelihood methods for cross-sectional models proposed by ‘Cliff’ and ‘Ord’ (1973, ISBN:0850860369) and (1981, ISBN:0850860814), fitting methods initially described by ‘Ord’ (1975) doi:10.1080/01621459.1975.10480272. The models are further described by ‘Anselin’ (1988) doi:10.1007/978-94-015-7799-1. Spatial two stage least squares and spatial general method of moment models initially proposed by ‘Kelejian’ and ‘Prucha’ (1998) doi:10.1023/A:1007707430416 and (1999) doi:10.1111/1468-2354.00027 are provided. Impact methods and MCMC fitting methods proposed by ‘LeSage’ and ‘Pace’ (2009) doi:10.1201/9781420064254 are implemented for the family of cross- sectional spatial regression models. Methods for fitting the log determinant term in maximum likelihood and MCMC fitting are compared by ‘Bivand et al.’ (2013) doi:10.1111/gean.12008, and model fitting methods by ‘Bivand’ and ‘Piras’ (2015) doi:10.18637/jss.v063.i18; both of these articles include extensive lists of references. ‘spatialreg’ >= 1.1-* correspond to ‘spdep’ >= 1.1-1, in which the model fitting functions are deprecated and pass through to ‘spatialreg’, but will mask those in ‘spatialreg’. From versions 1.2-*, the functions will be made defunct in ‘spdep’.

There are three methods to install r-cran-spatialreg on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install r-cran-spatialreg Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install r-cran-spatialreg using apt-get by running the following command:

sudo apt-get -y install r-cran-spatialreg

Install r-cran-spatialreg Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install r-cran-spatialreg using apt by running the following command:

sudo apt -y install r-cran-spatialreg

Install r-cran-spatialreg Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install r-cran-spatialreg using aptitude by running the following command:

sudo aptitude -y install r-cran-spatialreg

How To Uninstall r-cran-spatialreg on Kali Linux

To uninstall only the r-cran-spatialreg package we can use the following command:

sudo apt-get remove r-cran-spatialreg

Uninstall r-cran-spatialreg And Its Dependencies

To uninstall r-cran-spatialreg and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove r-cran-spatialreg

Remove r-cran-spatialreg Configurations and Data

To remove r-cran-spatialreg configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge r-cran-spatialreg

Remove r-cran-spatialreg configuration, data, and all of its dependencies

We can use the following command to remove r-cran-spatialreg configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge r-cran-spatialreg

Dependencies

r-cran-spatialreg have the following dependencies:

References

Summary

In this tutorial we learn how to install r-cran-spatialreg package on Kali Linux using different package management tools: apt, apt-get and aptitude.