How To Install r-cran-estimatr on Debian 12

Learn how to install r-cran-estimatr on Debian 12 with this tutorial. r-cran-estimatr is GNU R fast estimators for design-based inference

Introduction

In this tutorial we learn how to install r-cran-estimatr on Debian 12.

What is r-cran-estimatr

r-cran-estimatr is:

Fast procedures for small set of commonly-used, design-appropriate estimators with robust standard errors and confidence intervals. Includes estimators for linear regression, instrumental variables regression, difference-in-means, Horvitz-Thompson estimation, and regression improving precision of experimental estimates by interacting treatment with centered pre-treatment covariates introduced by Lin (2013) doi:10.1214/12-AOAS583.

There are three methods to install r-cran-estimatr on Debian 12. 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-estimatr 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-estimatr using apt-get by running the following command:

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

Install r-cran-estimatr Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-estimatr

Install r-cran-estimatr 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-estimatr using aptitude by running the following command:

sudo aptitude -y install r-cran-estimatr

How To Uninstall r-cran-estimatr on Debian 12

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

sudo apt-get remove r-cran-estimatr

Uninstall r-cran-estimatr And Its Dependencies

To uninstall r-cran-estimatr and its dependencies that are no longer needed by Debian 12, we can use the command below:

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

Remove r-cran-estimatr Configurations and Data

To remove r-cran-estimatr configuration and data from Debian 12 we can use the following command:

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

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

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

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

Dependencies

r-cran-estimatr have the following dependencies:

References

Summary

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