How To Install r-cran-mcmcpack on Kali Linux
Introduction
In this tutorial we learn how to install r-cran-mcmcpack
on Kali Linux.
What is r-cran-mcmcpack
r-cran-mcmcpack is:
This is a set of routines for GNU R that implement various statistical and econometric models using Markov chain Monte Carlo (MCMC) estimation, which allows “solving” models that would otherwise be intractable with traditional techniques, particularly problems in Bayesian statistics (where one or more “priors” are used as part of the estimation procedure, instead of an assumption of ignorance about the “true” point estimates), although MCMC can also be used to solve frequentist statistical problems with uninformative priors. MCMC techniques are also preferable over direct estimation in the presence of missing data.
Currently implemented are a number of ecological inference (EI) routines (for estimating individual-level attributes or behavior from aggregate data, such as electoral returns or census results), as well as models for traditional linear panel and cross-sectional data, some visualization routines for EI diagnostics, two item-response theory (or ideal-point estimation) models, metric, ordinal, and mixed-response factor analysis, and models for Gaussian (linear) and Poisson regression, logistic regression (or logit), and binary and ordinal-response probit models.
The suggested packages (r-cran-bayesm, -eco, and -mnp) contain additional models that may also be useful for those interested in this package.
There are three methods to install r-cran-mcmcpack
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-mcmcpack 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-mcmcpack
using apt-get
by running the following command:
sudo apt-get -y install r-cran-mcmcpack
Install r-cran-mcmcpack Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install r-cran-mcmcpack
using apt
by running the following command:
sudo apt -y install r-cran-mcmcpack
Install r-cran-mcmcpack 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-mcmcpack
using aptitude
by running the following command:
sudo aptitude -y install r-cran-mcmcpack
How To Uninstall r-cran-mcmcpack on Kali Linux
To uninstall only the r-cran-mcmcpack
package we can use the following command:
sudo apt-get remove r-cran-mcmcpack
Uninstall r-cran-mcmcpack And Its Dependencies
To uninstall r-cran-mcmcpack
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove r-cran-mcmcpack
Remove r-cran-mcmcpack Configurations and Data
To remove r-cran-mcmcpack
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge r-cran-mcmcpack
Remove r-cran-mcmcpack configuration, data, and all of its dependencies
We can use the following command to remove r-cran-mcmcpack
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-cran-mcmcpack
Dependencies
r-cran-mcmcpack have the following dependencies:
- r-base-core
- r-api-4.0
- r-cran-coda
- r-cran-mass
- r-cran-lattice
- r-cran-mcmc
- r-cran-quantreg
- libc6
- libgcc-s1
- libstdc++6
References
Summary
In this tutorial we learn how to install r-cran-mcmcpack
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.