How To Install r-cran-lmertest on Ubuntu 18.04

In this tutorial we learn how to install r-cran-lmertest on Ubuntu 18.04. r-cran-lmertest is GNU R tests in Linear Mixed Effects Models

Introduction

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

What is r-cran-lmertest

r-cran-lmertest is:

Different kinds of tests for linear mixed effects models as implemented in ’lme4’ package are provided. The tests comprise types I - III F tests for fixed effects, LR tests for random effects. The package also provides the calculation of population means for fixed factors with confidence intervals and corresponding plots. Finally the backward elimination of non-significant effects is implemented.

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

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

Install r-cran-lmertest Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-lmertest

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

sudo aptitude -y install r-cran-lmertest

How To Uninstall r-cran-lmertest on Ubuntu 18.04

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

sudo apt-get remove r-cran-lmertest

Uninstall r-cran-lmertest And Its Dependencies

To uninstall r-cran-lmertest 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-lmertest

Remove r-cran-lmertest Configurations and Data

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

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

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

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

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

References

Summary

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