How To Install r-cran-clubsandwich on Ubuntu 20.04
Introduction
In this tutorial we learn how to install r-cran-clubsandwich
on Ubuntu 20.04.
What is r-cran-clubsandwich
r-cran-clubsandwich is:
Corrections Provides several cluster-robust variance estimators (i.e., sandwich estimators) for ordinary and weighted least squares linear regression models, including the bias-reduced linearization estimator introduced by Bell and McCaffrey (2002) http://www.statcan.gc.ca/pub/12-001-x/2002002/article/9058-eng.pdf and developed further by Pustejovsky and Tipton (2017) DOI:10.1080/07350015.2016.1247004. The package includes functions for estimating the variance- covariance matrix and for testing single- and multiple- contrast hypotheses based on Wald test statistics. Tests of single regression coefficients use Satterthwaite or saddle-point corrections. Tests of multiple-contrast hypotheses use an approximation to Hotelling’s T-squared distribution. Methods are provided for a variety of fitted models, including lm() and mlm objects, glm(), ivreg() (from package ‘AER’), plm() (from package ‘plm’), gls() and lme() (from ’nlme’), robu() (from ‘robumeta’), and rma.uni() and rma.mv() (from ‘metafor’).
There are three methods to install r-cran-clubsandwich
on Ubuntu 20.04. 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-clubsandwich 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-clubsandwich
using apt-get
by running the following command:
sudo apt-get -y install r-cran-clubsandwich
Install r-cran-clubsandwich Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install r-cran-clubsandwich
using apt
by running the following command:
sudo apt -y install r-cran-clubsandwich
Install r-cran-clubsandwich 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install r-cran-clubsandwich
using aptitude
by running the following command:
sudo aptitude -y install r-cran-clubsandwich
How To Uninstall r-cran-clubsandwich on Ubuntu 20.04
To uninstall only the r-cran-clubsandwich
package we can use the following command:
sudo apt-get remove r-cran-clubsandwich
Uninstall r-cran-clubsandwich And Its Dependencies
To uninstall r-cran-clubsandwich
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove r-cran-clubsandwich
Remove r-cran-clubsandwich Configurations and Data
To remove r-cran-clubsandwich
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge r-cran-clubsandwich
Remove r-cran-clubsandwich configuration, data, and all of its dependencies
We can use the following command to remove r-cran-clubsandwich
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-cran-clubsandwich
References
Summary
In this tutorial we learn how to install r-cran-clubsandwich
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.