Description Usage Arguments Examples
Impute the missing values in an FIA experiment using a Weighted
K-Nearest Neighbours on Truncated Distribution implemented in impute.KNN_TN
or by random forest using the impute.randomForest
function.
1 2 | ## S4 method for signature 'proFIAset'
impute.FIA(object, method = c("KNN_TN", "randomForest"), ...)
|
object |
A proFIAset object. |
method |
The method to be used for missing value imputation. |
... |
Arguments furnished to the imputation method. No argument is required for |
1 2 3 4 5 6 7 8 9 10 11 | if(require(plasFIA)){
data(plasSet)
###Reinitializing the data matrix an using KNN
plasSet<-makeDataMatrix(plasSet,maxo=FALSE)
plasSet<-impute.FIA(plasSet,method="KNN_TN",k=2)
###Reinitializing the data matrix and using randomForest
plasSet<-makeDataMatrix(plasSet,maxo=FALSE)
plasSet<-impute.FIA(plasSet,method="randomForest")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.