number of trees to be used for imputing categorical variables
(each imputed value is the prediction of a randomly chosen tree), default = 10.
ntree_cont
number of trees in the forest for imputing continuous variables, default = 10.
nodesize_cat
minimum node size for trees for imputing categorical variables, default = 1.
A higher value can be used on larger datasets in order to save time.
nodesize_cont
minimum node size for trees for imputing continuous variables, default = 5.
A higher value can be used on larger datasets in order to save time.
maxnodes_cat
maximum number of nodes in trees for imputing categorical variables.
By default the size limit is set by the number of observations and nodesize_cat.
maxnodes_cont
maximum number of nodes in trees for imputing continuous variables.
By default the size limit is set by the number of observations and nodesize_cont.
Details
This function sets the global options which have the prefix 'CALIBERrfimpute_'.
Value
No return value. The function prints a message stating the new option setting.
See Also
mice.impute.rfcat, mice.impute.rfcont
Examples
# Set option using setRFoptions
setRFoptions(ntree_cat=15)
options()$CALIBERrfimpute_ntree_cat
# Set option directly
options(CALIBERrfimpute_ntree_cat=20)
options()$CALIBERrfimpute_ntree_cat
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(CALIBERrfimpute)
Loading required package: mice
Loading required package: Rcpp
mice 2.25 2015-11-09
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/CALIBERrfimpute/setRFoptions.Rd_%03d_medium.png", width=480, height=480)
> ### Name: setRFoptions
> ### Title: Set Random Forest options for imputation using MICE
> ### Aliases: setRFoptions
>
> ### ** Examples
>
> # Set option using setRFoptions
> setRFoptions(ntree_cat=15)
Setting option CALIBERrfimpute_ntree_cat = 15
> options()$CALIBERrfimpute_ntree_cat
[1] 15
>
> # Set option directly
> options(CALIBERrfimpute_ntree_cat=20)
> options()$CALIBERrfimpute_ntree_cat
[1] 20
>
>
>
>
>
> dev.off()
null device
1
>