How To Install r-cran-lava on Ubuntu 18.04

In this tutorial we learn how to install r-cran-lava on Ubuntu 18.04. r-cran-lava is GNU R latent variable models

Introduction

In this tutorial we learn how to install r-cran-lava on Ubuntu 18.04.

What is r-cran-lava

r-cran-lava is:

A general implementation of Structural Equation Models with latent variables (MLE, 2SLS, and composite likelihood estimators) with both continuous, censored, and ordinal outcomes (Holst and Budtz-Joergensen (2013) doi:10.1007/s00180-012-0344-y). The package also provides methods for graph exploration (d-separation, back-door criterion), simulation of general non-linear latent variable models, and estimation of influence functions for a broad range of statistical models.

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

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

Install r-cran-lava Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-lava

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

sudo aptitude -y install r-cran-lava

How To Uninstall r-cran-lava on Ubuntu 18.04

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

sudo apt-get remove r-cran-lava

Uninstall r-cran-lava And Its Dependencies

To uninstall r-cran-lava and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

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

Remove r-cran-lava Configurations and Data

To remove r-cran-lava configuration and data from Ubuntu 18.04 we can use the following command:

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

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

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

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

References

Summary

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