How To Install r-cran-amelia on Ubuntu 20.04
Introduction
In this tutorial we learn how to install r-cran-amelia
on Ubuntu 20.04.
What is r-cran-amelia
r-cran-amelia is:
Amelia II “multiply imputes” missing data in a single cross-section (such as a survey), from a time series (like variables collected for each year in a country), or from a time-series-cross-sectional data set (such as collected by years for each of several countries). Amelia II implements a bootstrapping-based algorithm that gives essentially the same answers as the standard IP or EMis approaches, is usually considerably faster than existing approaches and can handle many more variables.
The program also generalizes existing approaches by allowing for trends in time series across observations within a cross-sectional unit, as well as priors that allow experts to incorporate beliefs they have about the values of missing cells in their data. Amelia II also includes useful diagnostics of the fit of multiple imputation models. The program works from the R command line or via a graphical user interface that does not require users to know R.
There are three methods to install r-cran-amelia
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-amelia 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-amelia
using apt-get
by running the following command:
sudo apt-get -y install r-cran-amelia
Install r-cran-amelia Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install r-cran-amelia
using apt
by running the following command:
sudo apt -y install r-cran-amelia
Install r-cran-amelia 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-amelia
using aptitude
by running the following command:
sudo aptitude -y install r-cran-amelia
How To Uninstall r-cran-amelia on Ubuntu 20.04
To uninstall only the r-cran-amelia
package we can use the following command:
sudo apt-get remove r-cran-amelia
Uninstall r-cran-amelia And Its Dependencies
To uninstall r-cran-amelia
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-amelia
Remove r-cran-amelia Configurations and Data
To remove r-cran-amelia
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge r-cran-amelia
Remove r-cran-amelia configuration, data, and all of its dependencies
We can use the following command to remove r-cran-amelia
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-cran-amelia
References
Summary
In this tutorial we learn how to install r-cran-amelia
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.