Description Usage Arguments Value Examples
View source: R/Datapreprocessing.R
Deal with the missing data of the inputs for the maximum entropy production(MEP) model. The function creates multiple imputations (replacement values) for multivariate missing data. The imputation methods are established based on the mice package:Generates Multivariate Imputations by Chained Equations (MICE). There are mainly six univariate imputation methods available including:Predictive mean matching("pmm"), Weighted predictive mean matching("midastouch"), Classification and regression trees ("cart"), Unconditional mean imputation ("mean"), Imputation of quadratic terms("quadratic") and Linear regression, predicted values ("norm.predict"). Users can select method for imputations and the default is Predictive mean matching("pmm").
1 |
data |
A dataframe of variables but contains missing data for MEP inputs |
method |
Methods for imputation, including six methods selected |
A dataframe with no missing values
1 | RMEP_mice(airquality,method= 'pmm')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.