View source: R/predict.PPforest.R
predict.PPforest | R Documentation |
Predict method for PPforest objects
## S3 method for class 'PPforest'
predict(object, newdata, rule = 1, parallel = TRUE, cores = 2, ...)
object |
A fitted PPforest object |
newdata |
A data frame with predictors (same structure as training data) |
rule |
Split rule used in classification (integer from 1 to 8) 1: mean of two group means 2: weighted mean of two group means - weight with group size 3: weighted mean of two group means - weight with group sd 4: weighted mean of two group means - weight with group se 5: mean of two group medians 6: weighted mean of two group medians - weight with group size 7: weighted mean of two group median - weight with group IQR 8: weighted mean of two group median - weight with group IQR and size |
parallel |
Logical, whether to use parallel processing |
cores |
Number of cores to use if parallel = TRUE |
... |
Additional arguments (ignored) |
A list with:
Matrix with individual tree predictions
Final predicted classes based on majority vote
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.