Random Forest using Ranger
rforest( dataset, rvar, evar, type = "classification", lev = "", mtry = NULL, num.trees = 100, min.node.size = 1, sample.fraction = 1, replace = NULL, num.threads = 12, wts = "None", seed = NA, data_filter = "", envir = parent.frame(), ... )
dataset | Dataset |
---|---|
rvar | The response variable in the model |
evar | Explanatory variables in the model |
type | Model type (i.e., "classification" or "regression") |
lev | Level to use as the first column in prediction output |
mtry | Number of variables to possibly split at in each node. Default is the (rounded down) square root of the number variables |
num.trees | Number of trees to create |
min.node.size | Minimal node size |
sample.fraction | Fraction of observations to sample. Default is 1 for sampling with replacement and 0.632 for sampling without replacement |
replace | Sample with (TRUE) or without (FALSE) replacement. If replace is NULL it will be reset to TRUE if the sample.fraction is equal to 1 and will be set to FALSE otherwise |
num.threads | Number of parallel threads to use. Defaults to 12 if available |
wts | Case weights to use in estimation |
seed | Random seed to use as the starting point |
data_filter | Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000") |
envir | Environment to extract data from |
... | Further arguments to pass to ranger |
A list with all variables defined in rforest as an object of class rforest
See https://radiant-rstats.github.io/docs/model/rforest.html for an example in Radiant
summary.rforest
to summarize results
plot.rforest
to plot results
predict.rforest
for prediction
#> Random Forest (Ranger) #> Type : Classification #> Data : titanic #> Response variable : survived #> Level : Yes in survived #> Explanatory variables: pclass, sex #> Mtry : #> Number of trees : 100 #> Min node size : 1 #> Sample fraction : 1 #> Number of threads : 12 #> Nr obs : 1,043 #> OOB prediction error : 0.154#> List of 21 #> $ check : chr "" #> $ model :List of 15 #> ..$ predictions : num [1:1043, 1:2] 0.835 0.326 0.824 0.339 0.819 ... #> .. ..- attr(*, "dimnames")=List of 2 #> .. .. ..$ : NULL #> .. .. ..$ : chr [1:2] "Yes" "No" #> ..$ num.trees : num 100 #> ..$ num.independent.variables: num 2 #> ..$ mtry : num 1 #> ..$ min.node.size : num 1 #> ..$ variable.importance : Named num [1:2] 0.0317 0.1204 #> .. ..- attr(*, "names")= chr [1:2] "pclass" "sex" #> ..$ prediction.error : num 0.155 #> ..$ forest :List of 10 #> .. ..$ num.trees : num 100 #> .. ..$ child.nodeIDs :List of 100 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 0 3 0 0 #> .. .. .. ..$ : num [1:5] 2 0 4 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 0 3 0 0 #> .. .. .. ..$ : num [1:5] 2 0 4 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:11] 1 3 5 0 0 7 9 0 0 0 ... #> .. .. .. ..$ : num [1:11] 2 4 6 0 0 8 10 0 0 0 ... #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:11] 1 3 5 7 0 0 9 0 0 0 ... #> .. .. .. ..$ : num [1:11] 2 4 6 8 0 0 10 0 0 0 ... #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 0 0 0 7 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 0 0 0 8 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 3 0 0 0 #> .. .. .. ..$ : num [1:5] 2 4 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 0 3 0 0 #> .. .. .. ..$ : num [1:5] 2 0 4 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:11] 1 3 5 7 9 0 0 0 0 0 ... #> .. .. .. ..$ : num [1:11] 2 4 6 8 10 0 0 0 0 0 ... #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 5 0 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 6 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:11] 1 3 5 7 9 0 0 0 0 0 ... #> .. .. .. ..$ : num [1:11] 2 4 6 8 10 0 0 0 0 0 ... #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 0 3 0 0 #> .. .. .. ..$ : num [1:5] 2 0 4 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 0 7 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 0 8 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 3 0 0 0 #> .. .. .. ..$ : num [1:5] 2 4 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 5 0 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 6 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 0 5 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 0 6 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 7 0 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 8 0 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 0 0 0 7 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 0 0 0 8 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 3 0 0 0 #> .. .. .. ..$ : num [1:5] 2 4 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 7 0 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 8 0 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 3 0 0 0 #> .. .. .. ..$ : num [1:5] 2 4 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:11] 1 3 5 7 0 0 9 0 0 0 ... #> .. .. .. ..$ : num [1:11] 2 4 6 8 0 0 10 0 0 0 ... #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 3 0 0 0 #> .. .. .. ..$ : num [1:5] 2 4 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 7 0 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 8 0 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 0 3 5 7 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 0 4 6 8 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 5 0 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 6 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 0 5 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 0 6 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 7 0 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 8 0 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 5 0 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 6 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 3 0 0 0 #> .. .. .. ..$ : num [1:5] 2 4 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 7 0 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 8 0 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 0 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 4 0 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 0 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 4 0 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:11] 1 3 5 7 9 0 0 0 0 0 ... #> .. .. .. ..$ : num [1:11] 2 4 6 8 10 0 0 0 0 0 ... #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 0 5 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 0 6 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 0 5 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 0 6 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 0 0 0 7 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 0 0 0 8 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 0 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 4 0 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 5 0 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 6 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 5 0 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 6 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:11] 1 3 5 0 0 7 9 0 0 0 ... #> .. .. .. ..$ : num [1:11] 2 4 6 0 0 8 10 0 0 0 ... #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 5 0 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 6 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 5 0 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 6 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 0 0 0 7 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 0 0 0 8 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 5 0 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 6 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 3 0 0 0 #> .. .. .. ..$ : num [1:5] 2 4 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 3 0 0 0 #> .. .. .. ..$ : num [1:5] 2 4 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 0 7 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 0 8 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 7 0 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 8 0 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 7 0 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 8 0 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 0 3 0 0 #> .. .. .. ..$ : num [1:5] 2 0 4 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 0 5 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 0 6 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 5 0 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 6 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:11] 1 3 5 7 9 0 0 0 0 0 ... #> .. .. .. ..$ : num [1:11] 2 4 6 8 10 0 0 0 0 0 ... #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 5 0 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 6 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 0 3 0 0 #> .. .. .. ..$ : num [1:5] 2 0 4 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 0 5 7 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 4 0 6 8 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 7 0 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 8 0 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 0 0 0 7 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 0 0 0 8 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 5 0 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 6 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 3 0 0 0 #> .. .. .. ..$ : num [1:5] 2 4 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 0 5 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 0 6 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:11] 1 3 5 7 0 0 9 0 0 0 ... #> .. .. .. ..$ : num [1:11] 2 4 6 8 0 0 10 0 0 0 ... #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 0 5 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 0 6 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 0 3 5 7 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 0 4 6 8 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:5] 1 3 0 0 0 #> .. .. .. ..$ : num [1:5] 2 4 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 5 0 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 6 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 0 5 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 0 6 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 0 3 5 0 0 0 #> .. .. .. ..$ : num [1:7] 2 0 4 6 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:7] 1 3 5 0 0 0 0 #> .. .. .. ..$ : num [1:7] 2 4 6 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:9] 1 3 5 7 0 0 0 0 0 #> .. .. .. ..$ : num [1:9] 2 4 6 8 0 0 0 0 0 #> .. .. ..$ :List of 2 #> .. .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. ..$ : num [1:3] 2 0 0 #> .. .. .. [list output truncated] #> .. ..$ split.varIDs :List of 100 #> .. .. ..$ : num [1:7] 0 0 1 0 0 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:11] 0 1 1 0 0 0 0 0 0 0 ... #> .. .. ..$ : num [1:11] 1 0 0 0 0 0 0 0 0 0 ... #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:7] 0 0 0 0 1 0 0 #> .. .. ..$ : num [1:9] 0 1 0 0 0 0 1 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:7] 0 0 1 0 0 0 0 #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:11] 0 0 1 1 1 0 0 0 0 0 ... #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:7] 0 1 0 0 0 0 0 #> .. .. ..$ : num [1:11] 0 0 1 1 1 0 0 0 0 0 ... #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:9] 0 0 1 0 1 0 0 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:9] 0 0 1 1 0 0 0 0 0 #> .. .. ..$ : num [1:9] 0 1 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:9] 1 0 0 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:11] 1 0 0 0 0 0 0 0 0 0 ... #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:9] 1 0 0 0 0 0 0 0 0 #> .. .. ..$ : num [1:9] 0 0 0 1 1 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 0 1 0 0 0 0 0 #> .. .. ..$ : num [1:9] 0 1 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 0 0 0 1 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:9] 1 0 0 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 0 0 1 0 0 0 0 #> .. .. ..$ : num [1:7] 0 1 0 0 0 0 0 #> .. .. ..$ : num [1:7] 0 0 0 0 1 0 0 #> .. .. ..$ : num [1:11] 0 1 1 0 0 0 0 0 0 0 ... #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:9] 1 0 0 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 0 0 0 0 1 0 0 #> .. .. ..$ : num [1:7] 0 1 1 0 0 0 0 #> .. .. ..$ : num [1:7] 0 0 1 0 0 0 0 #> .. .. ..$ : num [1:11] 0 1 1 0 0 0 0 0 0 0 ... #> .. .. ..$ : num [1:7] 0 1 1 0 0 0 0 #> .. .. ..$ : num [1:7] 0 0 1 0 0 0 0 #> .. .. ..$ : num [1:7] 0 1 0 0 0 0 0 #> .. .. ..$ : num [1:9] 1 0 0 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 0 0 1 0 0 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:9] 0 0 1 0 1 0 0 0 0 #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:9] 0 0 1 1 0 0 0 0 0 #> .. .. ..$ : num [1:9] 1 0 0 0 0 0 0 0 0 #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:5] 0 0 1 0 0 #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:11] 0 1 1 0 0 0 0 0 0 0 ... #> .. .. ..$ : num [1:7] 0 1 1 0 0 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:9] 0 1 0 0 0 0 0 0 0 #> .. .. ..$ : num [1:9] 0 1 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:9] 1 0 0 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 0 0 1 0 0 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:11] 1 0 0 0 0 0 0 0 0 0 ... #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:9] 0 0 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:5] 1 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1 0 0 0 0 0 0 #> .. .. ..$ : num [1:7] 0 0 0 1 0 0 0 #> .. .. ..$ : num [1:7] 0 0 1 0 0 0 0 #> .. .. ..$ : num [1:9] 1 0 0 0 0 0 0 0 0 #> .. .. ..$ : num [1:3] 1 0 0 #> .. .. .. [list output truncated] #> .. ..$ split.values :List of 100 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:5] 1.5 0 1.5 0 0 #> .. .. ..$ : num [1:5] 1.5 0 1.5 0 0 #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:11] 1.5 1.5 1.5 0 0 2.5 2.5 0 0 0 ... #> .. .. ..$ : num [1:11] 1.5 2.5 1.5 1.5 0 0 2.5 0 0 0 ... #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:7] 1.5 0 2.5 0 1.5 0 0 #> .. .. ..$ : num [1:9] 1.5 1.5 2.5 0 0 0 1.5 0 0 #> .. .. ..$ : num [1:5] 1.5 2.5 0 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:5] 1.5 0 1.5 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:11] 2.5 1.5 1.5 1.5 1.5 0 0 0 0 0 ... #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:7] 1.5 1.5 2.5 0 0 0 0 #> .. .. ..$ : num [1:11] 2.5 1.5 1.5 1.5 1.5 0 0 0 0 0 ... #> .. .. ..$ : num [1:5] 1.5 0 1.5 0 0 #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:9] 2.5 1.5 1.5 0 1.5 0 0 0 0 #> .. .. ..$ : num [1:5] 1.5 2.5 0 0 0 #> .. .. ..$ : num [1:7] 1.5 2.5 1.5 0 0 0 0 #> .. .. ..$ : num [1:7] 1.5 2.5 0 1.5 0 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:9] 2.5 1.5 1.5 1.5 0 0 0 0 0 #> .. .. ..$ : num [1:9] 1.5 1.5 1.5 0 0 0 2.5 0 0 #> .. .. ..$ : num [1:5] 1.5 2.5 0 0 0 #> .. .. ..$ : num [1:9] 1.5 2.5 1.5 1.5 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:5] 1.5 2.5 0 0 0 #> .. .. ..$ : num [1:11] 1.5 2.5 1.5 1.5 0 0 2.5 0 0 0 ... #> .. .. ..$ : num [1:5] 1.5 2.5 0 0 0 #> .. .. ..$ : num [1:9] 1.5 2.5 1.5 1.5 0 0 0 0 0 #> .. .. ..$ : num [1:9] 1.5 0 2.5 1.5 1.5 0 0 0 0 #> .. .. ..$ : num [1:7] 1.5 2.5 1.5 0 0 0 0 #> .. .. ..$ : num [1:7] 2.5 1.5 0 1.5 0 0 0 #> .. .. ..$ : num [1:9] 2.5 1.5 1.5 1.5 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:7] 1.5 0 2.5 1.5 0 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:5] 1.5 2.5 0 0 0 #> .. .. ..$ : num [1:9] 1.5 2.5 1.5 1.5 0 0 0 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:7] 2.5 1.5 0 0 1.5 0 0 #> .. .. ..$ : num [1:7] 2.5 1.5 0 0 1.5 0 0 #> .. .. ..$ : num [1:11] 2.5 1.5 1.5 1.5 1.5 0 0 0 0 0 ... #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:7] 1.5 2.5 0 1.5 0 0 0 #> .. .. ..$ : num [1:7] 1.5 2.5 0 1.5 0 0 0 #> .. .. ..$ : num [1:9] 1.5 2.5 1.5 0 0 0 2.5 0 0 #> .. .. ..$ : num [1:7] 2.5 1.5 0 0 1.5 0 0 #> .. .. ..$ : num [1:7] 2.5 1.5 1.5 0 0 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 2.5 0 0 0 #> .. .. ..$ : num [1:11] 1.5 1.5 1.5 0 0 2.5 2.5 0 0 0 ... #> .. .. ..$ : num [1:7] 2.5 1.5 1.5 0 0 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:7] 1.5 1.5 2.5 0 0 0 0 #> .. .. ..$ : num [1:9] 1.5 2.5 1.5 0 0 0 2.5 0 0 #> .. .. ..$ : num [1:7] 2.5 1.5 1.5 0 0 0 0 #> .. .. ..$ : num [1:5] 1.5 2.5 0 0 0 #> .. .. ..$ : num [1:5] 1.5 2.5 0 0 0 #> .. .. ..$ : num [1:9] 2.5 1.5 1.5 0 1.5 0 0 0 0 #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:9] 2.5 1.5 1.5 1.5 0 0 0 0 0 #> .. .. ..$ : num [1:9] 1.5 2.5 1.5 1.5 0 0 0 0 0 #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:5] 1.5 0 1.5 0 0 #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:7] 1.5 2.5 0 1.5 0 0 0 #> .. .. ..$ : num [1:7] 1.5 2.5 1.5 0 0 0 0 #> .. .. ..$ : num [1:11] 2.5 1.5 1.5 1.5 1.5 0 0 0 0 0 ... #> .. .. ..$ : num [1:7] 2.5 1.5 1.5 0 0 0 0 #> .. .. ..$ : num [1:5] 1.5 0 1.5 0 0 #> .. .. ..$ : num [1:9] 2.5 1.5 0 1.5 1.5 0 0 0 0 #> .. .. ..$ : num [1:9] 2.5 1.5 1.5 1.5 0 0 0 0 0 #> .. .. ..$ : num [1:9] 1.5 2.5 1.5 0 0 0 2.5 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 2.5 0 0 0 #> .. .. ..$ : num [1:5] 1.5 2.5 0 0 0 #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. ..$ : num [1:7] 1.5 2.5 0 1.5 0 0 0 #> .. .. ..$ : num [1:11] 1.5 2.5 1.5 1.5 0 0 2.5 0 0 0 ... #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:7] 1.5 2.5 0 1.5 0 0 0 #> .. .. ..$ : num [1:9] 1.5 0 1.5 2.5 2.5 0 0 0 0 #> .. .. ..$ : num [1:5] 1.5 2.5 0 0 0 #> .. .. ..$ : num [1:7] 1.5 2.5 1.5 0 0 0 0 #> .. .. ..$ : num [1:7] 1.5 0 1.5 0 2.5 0 0 #> .. .. ..$ : num [1:7] 1.5 0 2.5 1.5 0 0 0 #> .. .. ..$ : num [1:7] 2.5 1.5 1.5 0 0 0 0 #> .. .. ..$ : num [1:9] 1.5 2.5 1.5 1.5 0 0 0 0 0 #> .. .. ..$ : num [1:3] 1.5 0 0 #> .. .. .. [list output truncated] #> .. ..$ is.ordered : logi [1:2] TRUE TRUE #> .. ..$ class.values : num [1:2] 1 2 #> .. ..$ terminal.class.counts :List of 100 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.634 0.366 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.592 0.408 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.155 0.845 #> .. .. .. ..$ : num [1:2] 0.168 0.832 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.771 0.229 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.337 0.663 #> .. .. .. ..$ : num [1:2] 0.162 0.838 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.775 0.225 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.384 0.616 #> .. .. .. ..$ : num [1:2] 0.159 0.841 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.748 0.252 #> .. .. .. ..$ : num [1:2] 0.2 0.8 #> .. .. ..$ :List of 11 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.963 0.037 #> .. .. .. ..$ : num [1:2] 0.344 0.656 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9053 0.0947 #> .. .. .. ..$ : num [1:2] 0.429 0.571 #> .. .. .. ..$ : num [1:2] 0.173 0.827 #> .. .. .. ..$ : num [1:2] 0.19 0.81 #> .. .. ..$ :List of 11 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.429 0.571 #> .. .. .. ..$ : num [1:2] 0.453 0.547 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.944 0.056 #> .. .. .. ..$ : num [1:2] 0.9062 0.0938 #> .. .. .. ..$ : num [1:2] 0.146 0.854 #> .. .. .. ..$ : num [1:2] 0.16 0.84 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.774 0.226 #> .. .. .. ..$ : num [1:2] 0.22 0.78 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.645 0.355 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.398 0.602 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.463 0.537 #> .. .. .. ..$ : num [1:2] 0.189 0.811 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9722 0.0278 #> .. .. .. ..$ : num [1:2] 0.326 0.674 #> .. .. .. ..$ : num [1:2] 0.432 0.568 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.503 0.497 #> .. .. .. ..$ : num [1:2] 0.167 0.833 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.211 0.789 #> .. .. .. ..$ : num [1:2] 0.9714 0.0286 #> .. .. .. ..$ : num [1:2] 0.434 0.566 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.738 0.262 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.343 0.657 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.146 0.854 #> .. .. .. ..$ : num [1:2] 0.132 0.868 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.774 0.226 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.287 0.713 #> .. .. .. ..$ : num [1:2] 0.175 0.825 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.637 0.363 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.63 0.37 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.12 0.88 #> .. .. .. ..$ : num [1:2] 0.178 0.822 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.73 0.27 #> .. .. .. ..$ : num [1:2] 0.202 0.798 #> .. .. ..$ :List of 11 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.429 0.571 #> .. .. .. ..$ : num [1:2] 0.195 0.805 #> .. .. .. ..$ : num [1:2] 0.9739 0.0261 #> .. .. .. ..$ : num [1:2] 0.313 0.687 #> .. .. .. ..$ : num [1:2] 0.817 0.183 #> .. .. .. ..$ : num [1:2] 0.187 0.813 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.741 0.259 #> .. .. .. ..$ : num [1:2] 0.193 0.807 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9706 0.0294 #> .. .. .. ..$ : num [1:2] 0.371 0.629 #> .. .. .. ..$ : num [1:2] 0.454 0.546 #> .. .. .. ..$ : num [1:2] 0.29 0.71 #> .. .. ..$ :List of 11 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.529 0.471 #> .. .. .. ..$ : num [1:2] 0.2 0.8 #> .. .. .. ..$ : num [1:2] 0.9658 0.0342 #> .. .. .. ..$ : num [1:2] 0.329 0.671 #> .. .. .. ..$ : num [1:2] 0.9495 0.0505 #> .. .. .. ..$ : num [1:2] 0.144 0.856 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.757 0.243 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.293 0.707 #> .. .. .. ..$ : num [1:2] 0.194 0.806 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.749 0.251 #> .. .. .. ..$ : num [1:2] 0.191 0.809 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.629 0.371 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.446 0.554 #> .. .. .. ..$ : num [1:2] 0.185 0.815 #> .. .. .. ..$ : num [1:2] 0.847 0.153 #> .. .. .. ..$ : num [1:2] 0.184 0.816 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.199 0.801 #> .. .. .. ..$ : num [1:2] 0.9528 0.0472 #> .. .. .. ..$ : num [1:2] 0.465 0.535 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9598 0.0402 #> .. .. .. ..$ : num [1:2] 0.436 0.564 #> .. .. .. ..$ : num [1:2] 0.423 0.577 #> .. .. .. ..$ : num [1:2] 0.17 0.83 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.225 0.775 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.469 0.531 #> .. .. .. ..$ : num [1:2] 0.947 0.053 #> .. .. .. ..$ : num [1:2] 0.865 0.135 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.775 0.225 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.384 0.616 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.146 0.854 #> .. .. .. ..$ : num [1:2] 0.179 0.821 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.761 0.239 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.276 0.724 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.122 0.878 #> .. .. .. ..$ : num [1:2] 0.162 0.838 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.719 0.281 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.273 0.727 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.101 0.899 #> .. .. .. ..$ : num [1:2] 0.178 0.822 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.455 0.545 #> .. .. .. ..$ : num [1:2] 0.448 0.552 #> .. .. .. ..$ : num [1:2] 0.148 0.852 #> .. .. .. ..$ : num [1:2] 0.9496 0.0504 #> .. .. .. ..$ : num [1:2] 0.397 0.603 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9545 0.0455 #> .. .. .. ..$ : num [1:2] 0.384 0.616 #> .. .. .. ..$ : num [1:2] 0.667 0.333 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.144 0.856 #> .. .. .. ..$ : num [1:2] 0.205 0.795 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.216 0.784 #> .. .. .. ..$ : num [1:2] 0.9331 0.0669 #> .. .. .. ..$ : num [1:2] 0.513 0.487 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.399 0.601 #> .. .. .. ..$ : num [1:2] 0.361 0.639 #> .. .. .. ..$ : num [1:2] 0.136 0.864 #> .. .. .. ..$ : num [1:2] 0.9683 0.0317 #> .. .. .. ..$ : num [1:2] 0.9072 0.0928 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.769 0.231 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.299 0.701 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.152 0.848 #> .. .. .. ..$ : num [1:2] 0.174 0.826 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.199 0.801 #> .. .. .. ..$ : num [1:2] 0.9091 0.0909 #> .. .. .. ..$ : num [1:2] 0.46 0.54 #> .. .. ..$ :List of 11 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.418 0.582 #> .. .. .. ..$ : num [1:2] 0.327 0.673 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9514 0.0486 #> .. .. .. ..$ : num [1:2] 0.9348 0.0652 #> .. .. .. ..$ : num [1:2] 0.146 0.854 #> .. .. .. ..$ : num [1:2] 0.122 0.878 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.209 0.791 #> .. .. .. ..$ : num [1:2] 0.9388 0.0612 #> .. .. .. ..$ : num [1:2] 0.5 0.5 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.399 0.601 #> .. .. .. ..$ : num [1:2] 0.34 0.66 #> .. .. .. ..$ : num [1:2] 0.13 0.87 #> .. .. .. ..$ : num [1:2] 0.9688 0.0312 #> .. .. .. ..$ : num [1:2] 0.9783 0.0217 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.686 0.314 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.898 0.102 #> .. .. .. ..$ : num [1:2] 0.0955 0.9045 #> .. .. .. ..$ : num [1:2] 0.448 0.552 #> .. .. .. ..$ : num [1:2] 0.195 0.805 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9123 0.0877 #> .. .. .. ..$ : num [1:2] 0.419 0.581 #> .. .. .. ..$ : num [1:2] 0.378 0.622 #> .. .. .. ..$ : num [1:2] 0.168 0.832 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.233 0.767 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.268 0.732 #> .. .. .. ..$ : num [1:2] 0.9677 0.0323 #> .. .. .. ..$ : num [1:2] 0.889 0.111 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.251 0.749 #> .. .. .. ..$ : num [1:2] 0.468 0.532 #> .. .. .. ..$ : num [1:2] 0.16 0.84 #> .. .. .. ..$ : num [1:2] 0.9852 0.0148 #> .. .. .. ..$ : num [1:2] 0.882 0.118 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.757 0.243 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.412 0.588 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.161 0.839 #> .. .. .. ..$ : num [1:2] 0.171 0.829 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.671 0.329 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.242 0.758 #> .. .. .. ..$ : num [1:2] 0.866 0.134 #> .. .. .. ..$ : num [1:2] 0.144 0.856 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.716 0.284 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.341 0.659 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.107 0.893 #> .. .. .. ..$ : num [1:2] 0.191 0.809 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.706 0.294 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.401 0.599 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.159 0.841 #> .. .. .. ..$ : num [1:2] 0.185 0.815 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.194 0.806 #> .. .. .. ..$ : num [1:2] 0.9257 0.0743 #> .. .. .. ..$ : num [1:2] 0.437 0.563 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.457 0.543 #> .. .. .. ..$ : num [1:2] 0.301 0.699 #> .. .. .. ..$ : num [1:2] 0.196 0.804 #> .. .. .. ..$ : num [1:2] 0.9416 0.0584 #> .. .. .. ..$ : num [1:2] 0.891 0.109 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.629 0.371 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.678 0.322 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.143 0.857 #> .. .. .. ..$ : num [1:2] 0.201 0.799 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.269 0.731 #> .. .. .. ..$ : num [1:2] 0.9339 0.0661 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.379 0.621 #> .. .. .. ..$ : num [1:2] 0.128 0.872 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.234 0.766 #> .. .. .. ..$ : num [1:2] 0.607 0.393 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.891 0.109 #> .. .. .. ..$ : num [1:2] 0.164 0.836 #> .. .. ..$ :List of 11 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.494 0.506 #> .. .. .. ..$ : num [1:2] 0.155 0.845 #> .. .. .. ..$ : num [1:2] 0.9562 0.0438 #> .. .. .. ..$ : num [1:2] 0.9245 0.0755 #> .. .. .. ..$ : num [1:2] 0.35 0.65 #> .. .. .. ..$ : num [1:2] 0.144 0.856 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.771 0.229 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.34 0.66 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.171 0.829 #> .. .. .. ..$ : num [1:2] 0.165 0.835 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.749 0.251 #> .. .. .. ..$ : num [1:2] 0.175 0.825 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.764 0.236 #> .. .. .. ..$ : num [1:2] 0.219 0.781 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.204 0.796 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.491 0.509 #> .. .. .. ..$ : num [1:2] 0.9652 0.0348 #> .. .. .. ..$ : num [1:2] 0.9065 0.0935 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.189 0.811 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.427 0.573 #> .. .. .. ..$ : num [1:2] 0.9784 0.0216 #> .. .. .. ..$ : num [1:2] 0.9043 0.0957 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9375 0.0625 #> .. .. .. ..$ : num [1:2] 0.491 0.509 #> .. .. .. ..$ : num [1:2] 0.325 0.675 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.135 0.865 #> .. .. .. ..$ : num [1:2] 0.172 0.828 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.24 0.76 #> .. .. .. ..$ : num [1:2] 0.624 0.376 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.874 0.126 #> .. .. .. ..$ : num [1:2] 0.142 0.858 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9677 0.0323 #> .. .. .. ..$ : num [1:2] 0.274 0.726 #> .. .. .. ..$ : num [1:2] 0.431 0.569 #> .. .. .. ..$ : num [1:2] 0.158 0.842 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.674 0.326 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.159 0.841 #> .. .. .. ..$ : num [1:2] 0.9375 0.0625 #> .. .. .. ..$ : num [1:2] 0.468 0.532 #> .. .. ..$ :List of 11 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9412 0.0588 #> .. .. .. ..$ : num [1:2] 0.321 0.679 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.896 0.104 #> .. .. .. ..$ : num [1:2] 0.586 0.414 #> .. .. .. ..$ : num [1:2] 0.1 0.9 #> .. .. .. ..$ : num [1:2] 0.147 0.853 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.89 0.11 #> .. .. .. ..$ : num [1:2] 0.231 0.769 #> .. .. .. ..$ : num [1:2] 0.434 0.566 #> .. .. .. ..$ : num [1:2] 0.18 0.82 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.637 0.363 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.611 0.389 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.127 0.873 #> .. .. .. ..$ : num [1:2] 0.263 0.737 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.976 0.024 #> .. .. .. ..$ : num [1:2] 0.419 0.581 #> .. .. .. ..$ : num [1:2] 0.455 0.545 #> .. .. .. ..$ : num [1:2] 0.282 0.718 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9111 0.0889 #> .. .. .. ..$ : num [1:2] 0.455 0.545 #> .. .. .. ..$ : num [1:2] 0.379 0.621 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.137 0.863 #> .. .. .. ..$ : num [1:2] 0.152 0.848 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.608 0.392 #> .. .. .. ..$ : num [1:2] 0.463 0.537 #> .. .. .. ..$ : num [1:2] 0.479 0.521 #> .. .. .. ..$ : num [1:2] 0.16 0.84 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.185 0.815 #> .. .. .. ..$ : num [1:2] 0.9375 0.0625 #> .. .. .. ..$ : num [1:2] 0.459 0.541 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.198 0.802 #> .. .. .. ..$ : num [1:2] 0.9289 0.0711 #> .. .. .. ..$ : num [1:2] 0.486 0.514 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.615 0.385 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.442 0.558 #> .. .. .. ..$ : num [1:2] 0.177 0.823 #> .. .. .. ..$ : num [1:2] 0.9375 0.0625 #> .. .. .. ..$ : num [1:2] 0.141 0.859 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.744 0.256 #> .. .. .. ..$ : num [1:2] 0.199 0.801 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.729 0.271 #> .. .. .. ..$ : num [1:2] 0.218 0.782 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.79 0.21 #> .. .. .. ..$ : num [1:2] 0.21 0.79 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.466 0.534 #> .. .. .. ..$ : num [1:2] 0.459 0.541 #> .. .. .. ..$ : num [1:2] 0.175 0.825 #> .. .. .. ..$ : num [1:2] 0.9773 0.0227 #> .. .. .. ..$ : num [1:2] 0.327 0.673 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.493 0.507 #> .. .. .. ..$ : num [1:2] 0.284 0.716 #> .. .. .. ..$ : num [1:2] 0.148 0.852 #> .. .. .. ..$ : num [1:2] 0.9664 0.0336 #> .. .. .. ..$ : num [1:2] 0.833 0.167 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.757 0.243 #> .. .. .. ..$ : num [1:2] 0.211 0.789 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.621 0.379 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.647 0.353 #> .. .. .. ..$ : num [1:2] 0.187 0.813 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.728 0.272 #> .. .. .. ..$ : num [1:2] 0.214 0.786 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.204 0.796 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.447 0.553 #> .. .. .. ..$ : num [1:2] 0.9718 0.0282 #> .. .. .. ..$ : num [1:2] 0.869 0.131 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9528 0.0472 #> .. .. .. ..$ : num [1:2] 0.483 0.517 #> .. .. .. ..$ : num [1:2] 0.269 0.731 #> .. .. .. ..$ : num [1:2] 0.164 0.836 #> .. .. ..$ :List of 11 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.449 0.551 #> .. .. .. ..$ : num [1:2] 0.173 0.827 #> .. .. .. ..$ : num [1:2] 0.9507 0.0493 #> .. .. .. ..$ : num [1:2] 0.896 0.104 #> .. .. .. ..$ : num [1:2] 0.31 0.69 #> .. .. .. ..$ : num [1:2] 0.17 0.83 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9076 0.0924 #> .. .. .. ..$ : num [1:2] 0.241 0.759 #> .. .. .. ..$ : num [1:2] 0.496 0.504 #> .. .. .. ..$ : num [1:2] 0.185 0.815 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.777 0.223 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.333 0.667 #> .. .. .. ..$ : num [1:2] 0.173 0.827 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.254 0.746 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9333 0.0667 #> .. .. .. ..$ : num [1:2] 0.899 0.101 #> .. .. .. ..$ : num [1:2] 0.325 0.675 #> .. .. .. ..$ : num [1:2] 0.172 0.828 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.225 0.775 #> .. .. .. ..$ : num [1:2] 0.496 0.504 #> .. .. .. ..$ : num [1:2] 0.182 0.818 #> .. .. .. ..$ : num [1:2] 0.9457 0.0543 #> .. .. .. ..$ : num [1:2] 0.899 0.101 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9114 0.0886 #> .. .. .. ..$ : num [1:2] 0.513 0.487 #> .. .. .. ..$ : num [1:2] 0.39 0.61 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.151 0.849 #> .. .. .. ..$ : num [1:2] 0.137 0.863 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.663 0.337 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.176 0.824 #> .. .. .. ..$ : num [1:2] 0.881 0.119 #> .. .. .. ..$ : num [1:2] 0.47 0.53 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.223 0.777 #> .. .. .. ..$ : num [1:2] 0.9274 0.0726 #> .. .. .. ..$ : num [1:2] 0.523 0.477 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.792 0.208 #> .. .. .. ..$ : num [1:2] 0.217 0.783 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.224 0.776 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.515 0.485 #> .. .. .. ..$ : num [1:2] 0.9357 0.0643 #> .. .. .. ..$ : num [1:2] 0.9175 0.0825 #> .. .. ..$ :List of 11 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.483 0.517 #> .. .. .. ..$ : num [1:2] 0.268 0.732 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.963 0.037 #> .. .. .. ..$ : num [1:2] 0.815 0.185 #> .. .. .. ..$ : num [1:2] 0.182 0.818 #> .. .. .. ..$ : num [1:2] 0.183 0.817 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.752 0.248 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.445 0.555 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.158 0.842 #> .. .. .. ..$ : num [1:2] 0.177 0.823 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.246 0.754 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.483 0.517 #> .. .. .. ..$ : num [1:2] 0.9574 0.0426 #> .. .. .. ..$ : num [1:2] 0.838 0.162 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.689 0.311 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.896 0.104 #> .. .. .. ..$ : num [1:2] 0.529 0.471 #> .. .. .. ..$ : num [1:2] 0.154 0.846 #> .. .. .. ..$ : num [1:2] 0.174 0.826 #> .. .. ..$ :List of 5 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.196 0.804 #> .. .. .. ..$ : num [1:2] 0.9513 0.0487 #> .. .. .. ..$ : num [1:2] 0.544 0.456 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.9309 0.0691 #> .. .. .. ..$ : num [1:2] 0.497 0.503 #> .. .. .. ..$ : num [1:2] 0.401 0.599 #> .. .. .. ..$ : num [1:2] 0.177 0.823 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.712 0.288 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.393 0.607 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.108 0.892 #> .. .. .. ..$ : num [1:2] 0.155 0.845 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.642 0.358 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.262 0.738 #> .. .. .. ..$ : num [1:2] 0.877 0.123 #> .. .. .. ..$ : num [1:2] 0.135 0.865 #> .. .. ..$ :List of 7 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.639 0.361 #> .. .. .. ..$ : num [1:2] 0.469 0.531 #> .. .. .. ..$ : num [1:2] 0.493 0.507 #> .. .. .. ..$ : num [1:2] 0.185 0.815 #> .. .. ..$ :List of 9 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.566 0.434 #> .. .. .. ..$ : num [1:2] 0.357 0.643 #> .. .. .. ..$ : num [1:2] 0.152 0.848 #> .. .. .. ..$ : num [1:2] 0.9291 0.0709 #> .. .. .. ..$ : num [1:2] 0.957 0.043 #> .. .. ..$ :List of 3 #> .. .. .. ..$ : num(0) #> .. .. .. ..$ : num [1:2] 0.74 0.26 #> .. .. .. ..$ : num [1:2] 0.218 0.782 #> .. .. .. [list output truncated] #> .. ..$ levels : chr [1:2] "Yes" "No" #> .. ..$ independent.variable.names: chr [1:2] "pclass" "sex" #> .. ..$ treetype : chr "Probability estimation" #> .. ..- attr(*, "class")= chr "ranger.forest" #> ..$ splitrule : chr "gini" #> ..$ treetype : chr "Probability estimation" #> ..$ call : language (function (formula = NULL, data = NULL, num.trees = 500, mtry = NULL, importance = "none", write.forest = TR| __truncated__ ... #> ..$ importance.mode : chr "permutation" #> ..$ num.samples : int 1043 #> ..$ replace : logi TRUE #> ..$ model : tibble [1,043 × 3] (S3: tbl_df/tbl/data.frame) #> .. ..$ survived: Factor w/ 2 levels "Yes","No": 1 1 2 2 2 1 1 2 1 2 ... #> .. ..$ pclass : Factor w/ 3 levels "1st","2nd","3rd": 1 1 1 1 1 1 1 1 1 1 ... #> .. ..$ sex : Factor w/ 2 levels "female","male": 1 2 1 2 1 2 1 2 1 2 ... #> .. ..- attr(*, "description")= chr "## Titanic\n\nThis dataset describes the survival status of individual passengers on the Titanic. The titanic d"| __truncated__ #> ..- attr(*, "class")= chr "ranger" #> $ extra_args : list() #> $ probability : logi TRUE #> $ rv : Factor w/ 2 levels "Yes","No": 1 1 2 2 2 1 1 2 1 2 ... #> $ not_vary : chr(0) #> $ df_name : chr "titanic" #> $ vars : chr [1:2] "pclass" "sex" #> $ rvar : chr "survived" #> $ evar : chr [1:2] "pclass" "sex" #> $ type : chr "classification" #> $ lev : chr "Yes" #> $ mtry : NULL #> $ num.trees : num 100 #> $ min.node.size : num 1 #> $ sample.fraction: num 1 #> $ replace : logi TRUE #> $ num.threads : num 12 #> $ wts : NULL #> $ seed : chr NA #> $ data_filter : chr "" #> - attr(*, "class")= chr [1:3] "rforest" "model" "list"#> $check #> [1] "" #> #> $model #> Ranger result #> #> Call: #> (function (formula = NULL, data = NULL, num.trees = 500, mtry = NULL, importance = "none", write.forest = TRUE, probability = FALSE, min.node.size = NULL, max.depth = NULL, replace = TRUE, sample.fraction = ifelse(replace, 1, 0.632), case.weights = NULL, class.weights = NULL, splitrule = NULL, num.random.splits = 1, alpha = 0.5, minprop = 0.1, split.select.weights = NULL, always.split.variables = NULL, respect.unordered.factors = NULL, scale.permutation.importance = FALSE, local.importance = FALSE, regularization.factor = 1, regularization.usedepth = FALSE, keep.inbag = FALSE, inbag = NULL, holdout = FALSE, quantreg = FALSE, oob.error = TRUE, num.threads = NULL, save.memory = FALSE, verbose = TRUE, seed = NULL, dependent.variable.name = NULL, status.variable.name = NULL, classification = NULL, x = NULL, y = NULL) { snp.data <- as.matrix(0) gwa.mode <- FALSE if (is.null(data)) { if (is.null(x) | is.null(y)) { stop("Error: Either data or x and y is required.") } } else { if (inherits(data, "gwaa.data")) { snp.names <- data@gtdata@snpnames snp.data <- data@gtdata@gtps@.Data data <- data@phdata if ("id" %in% names(data)) { data$id <- NULL } gwa.mode <- TRUE save.memory <- FALSE } if (is.null(formula)) { if (is.null(dependent.variable.name)) { if (is.null(y) | is.null(x)) { stop("Error: Please give formula, dependent variable name or x/y.") } } else { if (is.null(status.variable.name)) { y <- data[, dependent.variable.name, drop = TRUE] x <- data[, !(colnames(data) %in% dependent.variable.name), drop = FALSE] } else { y <- survival::Surv(data[, dependent.variable.name], data[, status.variable.name]) x <- data[, !(colnames(data) %in% c(dependent.variable.name, status.variable.name)), drop = FALSE] } } } else { formula <- formula(formula) if (!inherits(formula, "formula")) { stop("Error: Invalid formula.") } data.selected <- parse.formula(formula, data, env = parent.frame()) y <- data.selected[, 1] x <- data.selected[, -1, drop = FALSE] } } if (inherits(x, "Matrix")) { if (!inherits(x, "dgCMatrix")) { stop("Error: Currently only sparse data of class 'dgCMatrix' supported.") } if (!is.null(formula)) { stop("Error: Sparse matrices only supported with alternative interface. Use dependent.variable.name or x/y instead of formula.") } } if (any(is.na(x))) { offending_columns <- colnames(x)[colSums(is.na(x)) > 0] stop("Missing data in columns: ", paste0(offending_columns, collapse = ", "), ".", call. = FALSE) } if (any(is.na(y))) { stop("Missing data in dependent variable.", call. = FALSE) } if (is.factor(y)) { if (nlevels(y) != nlevels(droplevels(y))) { dropped_levels <- setdiff(levels(y), levels(droplevels(y))) warning("Dropped unused factor level(s) in dependent variable: ", paste0(dropped_levels, collapse = ", "), ".", call. = FALSE) } } if (is.factor(y) || is.logical(y)) { if (probability) { treetype <- 9 } else { treetype <- 1 } } else if (is.numeric(y) && (is.null(ncol(y)) || ncol(y) == 1)) { if (!is.null(classification) && classification && !probability) { treetype <- 1 } else if (probability) { treetype <- 9 } else { treetype <- 3 } } else if (inherits(y, "Surv") || is.data.frame(y) || is.matrix(y)) { treetype <- 5 } else { stop("Error: Unsupported type of dependent variable.") } if (quantreg && treetype != 3) { stop("Error: Quantile prediction implemented only for regression outcomes.") } independent.variable.names <- colnames(x) if (is.null(respect.unordered.factors)) { if (!is.null(splitrule) && splitrule == "extratrees") { respect.unordered.factors <- "partition" } else { respect.unordered.factors <- "ignore" } } if (respect.unordered.factors == TRUE) { respect.unordered.factors <- "order" } else if (respect.unordered.factors == FALSE) { respect.unordered.factors <- "ignore" } if (!is.matrix(x) && !inherits(x, "Matrix") && ncol(x) > 0) { character.idx <- sapply(x, is.character) if (respect.unordered.factors == "order") { ordered.idx <- sapply(x, is.ordered) factor.idx <- sapply(x, is.factor) recode.idx <- character.idx | (factor.idx & !ordered.idx) if (any(recode.idx) & (importance == "impurity_corrected" || importance == "impurity_unbiased")) { warning("Corrected impurity importance may not be unbiased for re-ordered factor levels. Consider setting respect.unordered.factors to 'ignore' or 'partition' or manually compute corrected importance.") } if (is.factor(y)) { num.y <- as.numeric(y) } else { num.y <- y } x[recode.idx] <- lapply(x[recode.idx], function(xx) { if (!is.factor(xx)) { xx <- as.factor(xx) } if (length(levels(xx)) == 1) { levels.ordered <- levels(xx) } else if (inherits(y, "Surv")) { levels.ordered <- largest.quantile(y ~ xx) levels.missing <- setdiff(levels(xx), levels.ordered) levels.ordered <- c(levels.missing, levels.ordered) } else if (is.factor(y) & nlevels(y) > 2) { levels.ordered <- pca.order(y = y, x = xx) } else { means <- sapply(levels(xx), function(y) { mean(num.y[xx == y]) }) levels.ordered <- as.character(levels(xx)[order(means)]) } factor(xx, levels = levels.ordered, ordered = TRUE, exclude = NULL) }) covariate.levels <- lapply(x, levels) } else { x[character.idx] <- lapply(x[character.idx], factor) } } if (gwa.mode) { all.independent.variable.names <- c(independent.variable.names, snp.names) } else { all.independent.variable.names <- independent.variable.names } if (length(all.independent.variable.names) < 1) { stop("Error: No covariates found.") } if (!is.numeric(num.trees) || num.trees < 1) { stop("Error: Invalid value for num.trees.") } if (is.function(mtry)) { nv <- length(all.independent.variable.names) if (length(formals(mtry)) > 1) { stop("Error: Given mtry function requires single argument (the number of independent variables in the model).") } mtry <- try(mtry(nv), silent = TRUE) if (inherits(mtry, "try-error")) { message("The mtry function produced the error: ", mtry) stop("Error: mtry function evaluation resulted in an error.") } if (!is.numeric(mtry) || length(mtry) != 1) { stop("Error: Given mtry function should return a single integer or numeric.") } else { mtry <- as.integer(mtry) } if (mtry < 1 || mtry > nv) { stop("Error: Given mtry function should evaluate to a value not less than 1 and not greater than the number of independent variables ( = ", nv, " )") } } if (is.null(mtry)) { mtry <- 0 } else if (!is.numeric(mtry) || mtry < 0) { stop("Error: Invalid value for mtry") } if (is.null(seed)) { seed <- runif(1, 0, .Machine$integer.max) } if (!is.logical(keep.inbag)) { stop("Error: Invalid value for keep.inbag") } if (is.null(num.threads)) { num.threads = 0 } else if (!is.numeric(num.threads) || num.threads < 0) { stop("Error: Invalid value for num.threads") } if (is.null(min.node.size)) { min.node.size <- 0 } else if (!is.numeric(min.node.size) || min.node.size < 0) { stop("Error: Invalid value for min.node.size") } if (is.null(max.depth)) { max.depth <- 0 } else if (!is.numeric(max.depth) || max.depth < 0) { stop("Error: Invalid value for max.depth. Please give a positive integer.") } if (!is.numeric(sample.fraction)) { stop("Error: Invalid value for sample.fraction. Please give a value in (0,1] or a vector of values in [0,1].") } if (length(sample.fraction) > 1) { if (!(treetype %in% c(1, 9))) { stop("Error: Invalid value for sample.fraction. Vector values only valid for classification forests.") } if (any(sample.fraction < 0) || any(sample.fraction > 1)) { stop("Error: Invalid value for sample.fraction. Please give a value in (0,1] or a vector of values in [0,1].") } if (sum(sample.fraction) <= 0) { stop("Error: Invalid value for sample.fraction. Sum of values must be >0.") } if (length(sample.fraction) != nlevels(y)) { stop("Error: Invalid value for sample.fraction. Expecting ", nlevels(y), " values, provided ", length(sample.fraction), ".") } if (!replace & any(sample.fraction * length(y) > table(y))) { idx <- which(sample.fraction * length(y) > table(y))[1] stop("Error: Not enough samples in class ", names(idx), "; available: ", table(y)[idx], ", requested: ", (sample.fraction * length(y))[idx], ".") } if (!is.null(case.weights)) { stop("Error: Combination of case.weights and class-wise sampling not supported.") } } else { if (sample.fraction <= 0 || sample.fraction > 1) { stop("Error: Invalid value for sample.fraction. Please give a value in (0,1] or a vector of values in [0,1].") } } if (all(regularization.factor == 1)) { regularization.factor <- c(0, 0) use.regularization.factor <- FALSE } else { if (num.threads != 1) { num.threads <- 1 warning("Paralellization deactivated (regularization used).") } use.regularization.factor <- TRUE } if (use.regularization.factor) { if (max(regularization.factor) > 1) { stop("The regularization coefficients cannot be greater than 1.") } if (max(regularization.factor) <= 0) { stop("The regularization coefficients cannot be smaller than 0.") } p <- length(all.independent.variable.names) if (length(regularization.factor) != 1 && length(regularization.factor) != p) { stop("You must use 1 or p (the number of predictor variables)\n regularization coefficients.") } if (length(regularization.factor) == 1) { regularization.factor = rep(regularization.factor, p) } } if (is.null(importance) || importance == "none") { importance.mode <- 0 } else if (importance == "impurity") { importance.mode <- 1 } else if (importance == "impurity_corrected" || importance == "impurity_unbiased") { importance.mode <- 5 } else if (importance == "permutation") { if (local.importance) { importance.mode <- 6 } else if (scale.permutation.importance) { importance.mode <- 2 } else { importance.mode <- 3 } } else { stop("Error: Unknown importance mode.") } if (is.null(case.weights) || length(unique(case.weights)) == 1) { case.weights <- c(0, 0) use.case.weights <- FALSE if (holdout) { stop("Error: Case weights required to use holdout mode.") } } else { use.case.weights <- TRUE if (holdout) { sample.fraction <- sample.fraction * mean(case.weights > 0) } if (!replace && sum(case.weights > 0) < sample.fraction * nrow(x)) { stop("Error: Fewer non-zero case weights than observations to sample.") } } if (is.null(inbag)) { inbag <- list(c(0, 0)) use.inbag <- FALSE } else if (is.list(inbag)) { use.inbag <- TRUE if (use.case.weights) { stop("Error: Combination of case.weights and inbag not supported.") } if (length(sample.fraction) > 1) { stop("Error: Combination of class-wise sampling and inbag not supported.") } if (length(inbag) != num.trees) { stop("Error: Size of inbag list not equal to number of trees.") } } else { stop("Error: Invalid inbag, expects list of vectors of size num.trees.") } if (is.null(class.weights)) { class.weights <- rep(1, nlevels(y)) } else { if (!(treetype %in% c(1, 9))) { stop("Error: Argument class.weights only valid for classification forests.") } if (!is.numeric(class.weights) || any(class.weights < 0)) { stop("Error: Invalid value for class.weights. Please give a vector of non-negative values.") } if (length(class.weights) != nlevels(y)) { stop("Error: Number of class weights not equal to number of classes.") } class.weights <- class.weights[unique(as.numeric(y))] } if (is.null(split.select.weights)) { split.select.weights <- list(c(0, 0)) use.split.select.weights <- FALSE } else if (is.numeric(split.select.weights)) { if (length(split.select.weights) != length(all.independent.variable.names)) { stop("Error: Number of split select weights not equal to number of independent variables.") } split.select.weights <- list(split.select.weights) use.split.select.weights <- TRUE } else if (is.list(split.select.weights)) { if (length(split.select.weights) != num.trees) { stop("Error: Size of split select weights list not equal to number of trees.") } use.split.select.weights <- TRUE } else { stop("Error: Invalid split select weights.") } if (is.null(always.split.variables)) { always.split.variables <- c("0", "0") use.always.split.variables <- FALSE } else { use.always.split.variables <- TRUE } if (use.split.select.weights && use.always.split.variables) { stop("Error: Please use only one option of split.select.weights and always.split.variables.") } if (is.null(splitrule)) { if (treetype == 5) { splitrule <- "logrank" } else if (treetype == 3) { splitrule <- "variance" } else if (treetype %in% c(1, 9)) { splitrule <- "gini" } splitrule.num <- 1 } else if (splitrule == "logrank") { if (treetype == 5) { splitrule.num <- 1 } else { stop("Error: logrank splitrule applicable to survival data only.") } } else if (splitrule == "gini") { if (treetype %in% c(1, 9)) { splitrule.num <- 1 } else { stop("Error: Gini splitrule applicable to classification data only.") } } else if (splitrule == "variance") { if (treetype == 3) { splitrule.num <- 1 } else { stop("Error: variance splitrule applicable to regression data only.") } } else if (splitrule == "auc" || splitrule == "C") { if (treetype == 5) { splitrule.num <- 2 } else { stop("Error: C index splitrule applicable to survival data only.") } } else if (splitrule == "auc_ignore_ties" || splitrule == "C_ignore_ties") { if (treetype == 5) { splitrule.num <- 3 } else { stop("Error: C index splitrule applicable to survival data only.") } } else if (splitrule == "maxstat") { if (treetype == 5 || treetype == 3) { splitrule.num <- 4 } else { stop("Error: maxstat splitrule applicable to regression or survival data only.") } } else if (splitrule == "extratrees") { splitrule.num <- 5 } else if (splitrule == "beta") { if (treetype == 3) { splitrule.num <- 6 } else { stop("Error: beta splitrule applicable to regression data only.") } if (min(y) < 0 || max(y) > 1) { stop("Error: beta splitrule applicable to regression data with outcome between 0 and 1 only.") } } else if (splitrule == "hellinger") { if (treetype %in% c(1, 9)) { splitrule.num <- 7 } else { stop("Error: Hellinger splitrule only implemented for binary classification.") } if ((is.factor(y) && nlevels(y) > 2) || (length(unique(y)) > 2)) { stop("Error: Hellinger splitrule only implemented for binary classification.") } } else { stop("Error: Unknown splitrule.") } if (alpha < 0 || alpha > 1) { stop("Error: Invalid value for alpha, please give a value between 0 and 1.") } if (minprop < 0 || minprop > 0.5) { stop("Error: Invalid value for minprop, please give a value between 0 and 0.5.") } if (splitrule == "maxstat" & use.regularization.factor) { stop("Error: Regularization cannot be used with 'maxstat' splitrule.") } if (!is.numeric(num.random.splits) || num.random.splits < 1) { stop("Error: Invalid value for num.random.splits, please give a positive integer.") } if (splitrule.num == 5 && save.memory && respect.unordered.factors == "partition") { stop("Error: save.memory option not possible in extraTrees mode with unordered predictors.") } if (num.random.splits > 1 && splitrule.num != 5) { warning("Argument 'num.random.splits' ignored if splitrule is not 'extratrees'.") } if (respect.unordered.factors == "partition") { ordered.idx <- sapply(x, is.ordered) factor.idx <- sapply(x, is.factor) unordered.factor.variables <- independent.variable.names[factor.idx & !ordered.idx] if (length(unordered.factor.variables) > 0) { use.unordered.factor.variables <- TRUE num.levels <- sapply(x[, factor.idx & !ordered.idx, drop = FALSE], nlevels) max.level.count <- .Machine$double.digits if (max(num.levels) > max.level.count) { stop(paste("Too many levels in unordered categorical variable ", unordered.factor.variables[which.max(num.levels)], ". Only ", max.level.count, " levels allowed on this system. Consider using the 'order' option.", sep = "")) } } else { unordered.factor.variables <- c("0", "0") use.unordered.factor.variables <- FALSE } } else if (respect.unordered.factors == "ignore" || respect.unordered.factors == "order") { unordered.factor.variables <- c("0", "0") use.unordered.factor.variables <- FALSE } else { stop("Error: Invalid value for respect.unordered.factors, please use 'order', 'partition' or 'ignore'.") } if (use.unordered.factor.variables && !is.null(splitrule)) { if (splitrule == "maxstat") { stop("Error: Unordered factor splitting not implemented for 'maxstat' splitting rule.") } else if (splitrule %in% c("C", "auc", "C_ignore_ties", "auc_ignore_ties")) { stop("Error: Unordered factor splitting not implemented for 'C' splitting rule.") } else if (splitrule == "beta") { stop("Error: Unordered factor splitting not implemented for 'beta' splitting rule.") } } if (respect.unordered.factors == "order") { if (treetype == 3 && splitrule == "maxstat") { warning("Warning: The 'order' mode for unordered factor handling with the 'maxstat' splitrule is experimental.") } if (gwa.mode & ((treetype %in% c(1, 9) & nlevels(y) > 2) | treetype == 5)) { stop("Error: Ordering of SNPs currently only implemented for regression and binary outcomes.") } } prediction.mode <- FALSE predict.all <- FALSE prediction.type <- 1 loaded.forest <- list() if (inherits(x, "dgCMatrix")) { sparse.x <- x x <- matrix(c(0, 0)) use.sparse.data <- TRUE } else { sparse.x <- Matrix(matrix(c(0, 0))) use.sparse.data <- FALSE if (is.data.frame(x)) { x <- data.matrix(x) } } if (treetype == 5) { y.mat <- as.matrix(y) } else { y.mat <- as.matrix(as.numeric(y)) } if (respect.unordered.factors == "order") { order.snps <- TRUE } else { order.snps <- FALSE } if (treetype == 5) { if (!all(y.mat[, 2] %in% 0:1)) { stop("Error: Competing risks not supported yet. Use status=1 for events and status=0 for censoring.") } } result <- rangerCpp(treetype, x, y.mat, independent.variable.names, mtry, num.trees, verbose, seed, num.threads, write.forest, importance.mode, min.node.size, split.select.weights, use.split.select.weights, always.split.variables, use.always.split.variables, prediction.mode, loaded.forest, snp.data, replace, probability, unordered.factor.variables, use.unordered.factor.variables, save.memory, splitrule.num, case.weights, use.case.weights, class.weights, predict.all, keep.inbag, sample.fraction, alpha, minprop, holdout, prediction.type, num.random.splits, sparse.x, use.sparse.data, order.snps, oob.error, max.depth, inbag, use.inbag, regularization.factor, use.regularization.factor, regularization.usedepth) if (length(result) == 0) { stop("User interrupt or internal error.") } if (importance.mode != 0) { names(result$variable.importance) <- all.independent.variable.names if (importance.mode == 6) { result$variable.importance.local <- matrix(result$variable.importance.local, byrow = FALSE, ncol = length(all.independent.variable.names), dimnames = list(rownames(data), all.independent.variable.names)) } } if (treetype == 1 && oob.error) { if (is.factor(y)) { result$predictions <- integer.to.factor(result$predictions, levels(y)) } result$confusion.matrix <- table(y, result$predictions, dnn = c("true", "predicted"), useNA = "ifany") } else if (treetype == 5 && oob.error) { if (is.list(result$predictions)) { result$predictions <- do.call(rbind, result$predictions) } if (is.vector(result$predictions)) { result$predictions <- matrix(result$predictions, nrow = 1) } result$chf <- result$predictions result$predictions <- NULL result$survival <- exp(-result$chf) } else if (treetype == 9 && oob.error) { if (is.list(result$predictions)) { result$predictions <- do.call(rbind, result$predictions) } if (is.vector(result$predictions)) { result$predictions <- matrix(result$predictions, nrow = 1) } colnames(result$predictions) <- unique(y) if (is.factor(y)) { result$predictions <- result$predictions[, levels(droplevels(y)), drop = FALSE] } } result$splitrule <- splitrule if (splitrule == "extratrees") { result$num.random.splits <- num.random.splits } if (treetype == 1) { result$treetype <- "Classification" } else if (treetype == 3) { result$treetype <- "Regression" } else if (treetype == 5) { result$treetype <- "Survival" } else if (treetype == 9) { result$treetype <- "Probability estimation" } if (treetype == 3) { result$r.squared <- 1 - result$prediction.error/var(y) } result$call <- sys.call() result$importance.mode <- importance if (use.sparse.data) { result$num.samples <- nrow(sparse.x) } else { result$num.samples <- nrow(x) } result$replace <- replace if (write.forest) { if (is.factor(y)) { result$forest$levels <- levels(y) } result$forest$independent.variable.names <- independent.variable.names result$forest$treetype <- result$treetype class(result$forest) <- "ranger.forest" if (respect.unordered.factors == "order" && ncol(x) > 0) { result$forest$covariate.levels <- covariate.levels } } class(result) <- "ranger" if (quantreg) { terminal.nodes <- predict(result, x, type = "terminalNodes")$predictions + 1 n <- result$num.samples result$random.node.values <- matrix(nrow = max(terminal.nodes), ncol = num.trees) for (tree in 1:num.trees) { idx <- sample(1:n, n) result$random.node.values[terminal.nodes[idx, tree], tree] <- y[idx] } if (!is.null(result$inbag.counts)) { inbag.counts <- simplify2array(result$inbag.counts) random.node.values.oob <- 0 * terminal.nodes random.node.values.oob[inbag.counts > 0] <- NA for (tree in 1:num.trees) { is.oob <- inbag.counts[, tree] == 0 num.oob <- sum(is.oob) if (num.oob != 0) { oob.obs <- which(is.oob) oob.nodes <- terminal.nodes[oob.obs, tree] for (j in 1:num.oob) { idx <- terminal.nodes[, tree] == oob.nodes[j] idx[oob.obs[j]] <- FALSE random.node.values.oob[oob.obs[j], tree] <- save.sample(y[idx], size = 1) } } } minoob <- min(rowSums(inbag.counts == 0)) if (minoob < 10) { stop("Error: Too few trees for out-of-bag quantile regression.") } result$random.node.values.oob <- t(apply(random.node.values.oob, 1, function(x) { sample(x[!is.na(x)], minoob) })) } } return(result) })(formula = survived ~ ., mtry = NULL, num.trees = 100, min.node.size = 1, probability = TRUE, importance = "permutation", sample.fraction = 1, replace = TRUE, num.threads = 12, case.weights = NULL, data = structure(list( survived = structure(c(1L, 1L,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1L, 1L, 2L, 1L, 2L, 2L, 2L, 2L, 1L, 2L, 2L, 1L, 2L, 2L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 1L, 2L, 2L, 2L, 2L, 2L, 1L, 1L, 2L, 1L, 1L, 2L, 2L, 1L, 2L, 1L, 2L, 2L, 2L, 2L, 1L, 2L, 2L, 1L, 2L, 2L, 1L, 2L, 2L, 2L, 1L, 2L, 2L, 2L, 1L, 2L, 2L, 2L, 2L, 2L, 1L, 2L, 1L, 2L, 2L, 2L), .Label = c("female", "male"), class = "factor")), row.names = c(NA, -1043L ), class = c("tbl_df", "tbl", "data.frame"), description = "## Titanic\n\nThis dataset describes the survival status of individual passengers on the Titanic. The titanic data frame does not contain information from the crew, but it does contain actual ages of (some of) the passengers. The principal source for data about Titanic passengers is the Encyclopedia Titanica. One of the original sources is Eaton & Haas (1994) Titanic: Triumph and Tragedy, Patrick Stephens Ltd, which includes a passenger list created by many researchers and edited by Michael A. Findlay.\n\n## Variables\n\n* survival - Survival (Yes, No)\n* pclass - Passenger Class (1st, 2nd, 3rd)\n* sex - Sex (female, male)\n* age - Age in years\n* sibsp - Number of Siblings/Spouses Aboard\n* parch - Number of Parents/Children Aboard\n* fare - Passenger Fare\n* name - Name\n* cabin - Cabin\n* embarked - Port of Embarkation (Cherbourg, Queenstown, Southampton)\n\n## Notes\n\n`pclass` is a proxy for socio-economic status (SES) 1st ~ Upper; 2nd ~ Middle; 3rd ~ Lower\n\nAge is in Years; Fractional if Age less than One (1). If the Age is Estimated, it is in the form xx.5\n\nWith respect to the family relation variables (i.e. sibsp and parch) some relations were ignored. The following are the definitions used for sibsp and parch.\n\nSibling: Brother, Sister, Stepbrother, or Stepsister of Passenger Aboard Titanic\nSpouse: Husband or Wife of Passenger Aboard Titanic (Mistresses and Fiances Ignored)\nParent: Mother or Father of Passenger Aboard Titanic\nChild: Son, Daughter, Stepson, or Stepdaughter of Passenger Aboard Titanic\n\nOther family relatives excluded from this study include cousins, nephews/nieces, aunts/uncles, and in-laws. Some children travelled only with a nanny, therefore parch=0 for them. As well, some travelled with very close friends or neighbors in a village, however, the definitions do not support such relations.\n\nNote: Missing values and the `ticket` variable were removed from the data\n\n## Related reading\n\n<a href=\"http://phys.org/news/2012-07-shipwrecks-men-survive.html\" target=\"_blank\">In shipwrecks, men more likely to survive</a>"), max.depth = 1) #> #> Type: Probability estimation #> Number of trees: 100 #> Sample size: 1043 #> Number of independent variables: 2 #> Mtry: 1 #> Target node size: 1 #> Variable importance mode: permutation #> Splitrule: gini #> OOB prediction error (Brier s.): 0.1779901 #> #> $extra_args #> $extra_args$max.depth #> [1] 1 #> #> #> $probability #> [1] TRUE #> #> $rv #> [1] Yes Yes No No No Yes Yes No Yes No No Yes Yes Yes Yes No Yes Yes #> [19] No Yes Yes Yes Yes Yes No Yes Yes Yes Yes No Yes Yes Yes No Yes Yes #> [37] No No Yes Yes Yes Yes No Yes Yes Yes Yes No No No Yes Yes Yes Yes #> [55] No No Yes No Yes Yes Yes Yes Yes Yes No Yes Yes No Yes No Yes Yes #> [73] No Yes Yes No Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes No Yes Yes #> [91] Yes Yes No Yes Yes Yes No Yes No Yes Yes Yes No No Yes Yes Yes Yes #> [109] Yes Yes Yes No Yes No Yes Yes Yes No Yes No Yes Yes No Yes Yes Yes #> [127] No Yes Yes Yes Yes No Yes No Yes Yes No Yes No No Yes Yes Yes No #> [145] Yes Yes Yes Yes No Yes No No No No No Yes Yes Yes Yes Yes Yes No #> [163] Yes Yes Yes No Yes No Yes Yes No Yes No Yes Yes No No Yes No No #> [181] No Yes Yes Yes No No No Yes Yes No Yes No Yes Yes No No No No #> [199] No Yes No Yes Yes Yes No Yes No No Yes No Yes Yes No No Yes No #> [217] Yes No Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes No #> [235] No No Yes Yes Yes Yes Yes Yes No Yes No Yes Yes Yes No No No Yes #> [253] Yes No Yes Yes No Yes Yes Yes No No No Yes No Yes No No No Yes #> [271] Yes No Yes No No Yes Yes No Yes Yes No Yes No Yes No No No No #> [289] Yes No No No Yes No No Yes Yes No Yes Yes Yes Yes Yes Yes No No #> [307] No No Yes Yes No Yes Yes No Yes No No Yes Yes Yes Yes Yes No No #> [325] No No No No Yes Yes No Yes No No Yes Yes No Yes Yes No No Yes #> [343] No Yes Yes No No No Yes No No Yes Yes No Yes No Yes Yes Yes No #> [361] No No No Yes No No No No No No Yes No No No No No No No #> [379] No No No No Yes Yes No Yes No Yes No Yes No Yes Yes Yes No Yes #> [397] Yes No No No No Yes No No Yes No No Yes No Yes No No No Yes #> [415] No Yes No No No No Yes No Yes No No Yes No No No No Yes Yes #> [433] No Yes Yes Yes No No No No Yes No Yes No Yes No No No No No #> [451] Yes Yes Yes No No No No No No No No No Yes Yes Yes No No No #> [469] No Yes Yes No Yes No Yes No Yes No No Yes Yes No Yes No Yes No #> [487] Yes Yes Yes No No Yes Yes No Yes Yes Yes Yes No Yes No No No Yes #> [505] Yes Yes Yes No Yes No Yes No No No No No Yes No Yes Yes No No #> [523] No Yes No No Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes No Yes No #> [541] Yes Yes No No No No Yes Yes Yes Yes Yes No No No Yes Yes Yes No #> [559] No No No No No No Yes No No No Yes No No No No Yes No No #> [577] No No No No No No No No Yes No Yes No Yes Yes Yes No No No #> [595] No No Yes No No Yes Yes Yes Yes Yes Yes No No Yes No No No No #> [613] No No No No Yes No No No No No No No No Yes No No No No #> [631] No No Yes No No No No No No No No No No No No No Yes No #> [649] No No No Yes No No No No Yes No No No No No Yes No No No #> [667] No No No No Yes Yes Yes No No Yes No No No Yes No No Yes Yes #> [685] No No No No No No No No No Yes Yes Yes No Yes Yes No Yes No #> [703] No No Yes No No No No Yes Yes No Yes No No Yes No Yes No No #> [721] No No No No No Yes No No No No No No No No No No No Yes #> [739] Yes No No Yes No No No No No No No No No No No No No No #> [757] No No No No Yes No No No No No Yes No No Yes No Yes No Yes #> [775] No No Yes Yes No No Yes No No No No Yes Yes No No No No Yes #> [793] No No No No Yes Yes No No No Yes No Yes No No No Yes No No #> [811] No Yes No No Yes Yes No No No No No Yes Yes Yes No No No Yes #> [829] No Yes Yes No No No Yes No No No No No No No No No Yes No #> [847] No No No Yes No Yes Yes Yes No No No No No Yes No No No No #> [865] Yes No No No No Yes Yes No Yes No No Yes Yes Yes Yes No Yes Yes #> [883] No No Yes Yes No No Yes No No Yes No No Yes Yes No No No No #> [901] Yes No No No No No Yes No No No No No No No No No No No #> [919] No No No No No No No No No Yes No No No No No Yes No No #> [937] No No No No No No No No No No No No No No No No No No #> [955] No No No Yes No Yes Yes Yes Yes No No Yes No No No Yes No No #> [973] No No No No No No No No Yes No No No Yes No No No Yes Yes #> [991] No No Yes No Yes No Yes Yes No No No Yes Yes Yes Yes No Yes Yes #> [1009] No No No No No No No No No No No No No Yes No No No No #> [1027] No Yes No No No Yes No No No No No Yes No No No No No #> Levels: Yes No #> #> $not_vary #> character(0) #> #> $df_name #> [1] "titanic" #> #> $vars #> [1] "pclass" "sex" #> #> $rvar #> [1] "survived" #> #> $evar #> [1] "pclass" "sex" #> #> $type #> [1] "classification" #> #> $lev #> [1] "Yes" #> #> $mtry #> NULL #> #> $num.trees #> [1] 100 #> #> $min.node.size #> [1] 1 #> #> $sample.fraction #> [1] 1 #> #> $replace #> [1] TRUE #> #> $num.threads #> [1] 12 #> #> $wts #> NULL #> #> $seed #> [1] NA #> #> $data_filter #> [1] "" #> #> attr(,"class") #> [1] "rforest" "model" "list"#> Random Forest (Ranger) #> Type : Regression #> Data : diamonds #> Response variable : price #> Explanatory variables: carat, clarity #> Mtry : #> Number of trees : 100 #> Min node size : 1 #> Sample fraction : 1 #> Number of threads : 12 #> Nr obs : 3,000 #> R-squared : 0.920 #> OOB prediction error : 1,116.178