How To Install r-cran-gmm on Kali Linux

In this tutorial we learn how to install r-cran-gmm on Kali Linux. r-cran-gmm is GNU R generalized method of moments and generalized empirical likelihood

Introduction

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

What is r-cran-gmm

r-cran-gmm is:

This GNU R package is a complete suite to estimate models based on moment conditions. It includes the two step Generalized method of moments (Hansen 1982; doi:10.2307/1912775), the iterated GMM and continuous updated estimator (Hansen, Eaton and Yaron 1996; doi:10.2307/1392442) and several methods that belong to the Generalized Empirical Likelihood family of estimators (Smith 1997; doi:10.1111/j.0013-0133.1997.174.x, Kitamura 1997; doi:10.1214/aos/1069362388, Newey and Smith 2004; doi:10.1111/j.1468-0262.2004.00482.x, and Anatolyev 2005 doi:10.1111/j.1468-0262.2005.00601.x).

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

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

Install r-cran-gmm Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-gmm

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

sudo aptitude -y install r-cran-gmm

How To Uninstall r-cran-gmm on Kali Linux

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

sudo apt-get remove r-cran-gmm

Uninstall r-cran-gmm And Its Dependencies

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

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

Remove r-cran-gmm Configurations and Data

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

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

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

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

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

Dependencies

r-cran-gmm have the following dependencies:

References

Summary

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