How To Install r-cran-plm on Debian 10
Introduction
In this tutorial we learn how to install r-cran-plm on Debian 10.
What is r-cran-plm
r-cran-plm is:
This R package intends to make the estimation of linear panel models straightforward. It provides functions to estimate a wide variety of models= and to make (robust) inference.
The main functions to estimate models are:
- plm: panel data estimators using lm on transformed data,
- pgmm: generalized method of moments (GMM) estimation for panel data,
- pvcm: variable coefficients models for panel data,
- pmg: mean groups (MG), demeaned MG and common correlated effects (CCEMG) estimators.
Next to the model estimation functions, the package offers several functions for statistical tests related to panel data/models.
Multiple functions for (robust) variance-covariance matrices are at hand as well. The package also provides data sets to demonstrate functions and to replicate some text book/paper results.
There are three methods to install r-cran-plm on Debian 10. 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-plm 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-plm using apt-get by running the following command:
sudo apt-get -y install r-cran-plm
Install r-cran-plm Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install r-cran-plm using apt by running the following command:
sudo apt -y install r-cran-plm
Install r-cran-plm Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install r-cran-plm using aptitude by running the following command:
sudo aptitude -y install r-cran-plm
How To Uninstall r-cran-plm on Debian 10
To uninstall only the r-cran-plm package we can use the following command:
sudo apt-get remove r-cran-plm
Uninstall r-cran-plm And Its Dependencies
To uninstall r-cran-plm and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove r-cran-plm
Remove r-cran-plm Configurations and Data
To remove r-cran-plm configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge r-cran-plm
Remove r-cran-plm configuration, data, and all of its dependencies
We can use the following command to remove r-cran-plm configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-cran-plm
Dependencies
r-cran-plm have the following dependencies:
- r-base-core
- r-api-3.5
- r-cran-formula
- r-cran-mass
- r-cran-bdsmatrix
- r-cran-zoo
- r-cran-nlme
- r-cran-sandwich
- r-cran-lattice
- r-cran-lmtest
- r-cran-maxlik
References
Summary
In this tutorial we learn how to install r-cran-plm package on Debian 10 using different package management tools: apt, apt-get and aptitude.