print.estimates: Predictive Accuracy Report

Description Usage Arguments Examples

View source: R/print.estimates.R

Description

Predictive Accuracy Report

Usage

1
2
## S3 method for class 'estimates'
print(x, ...)

Arguments

x

An object of class 'predictive.acc' returned by "predictive.acc()" function

...

Additional arguments to print method

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
library(mlbench)
set.seed(1111)
# Random Forest analysis of model based recursive partitioning load data
data("BostonHousing", package = "mlbench")
BostonHousing <- BostonHousing[1:90, c("rad", "tax", "crim", "medv", "lstat")]

# Recursive partitioning based on linear regression model medv ~ lstat with 3
# trees.  1 core/processor used. 
rfout <- mobforest.analysis(as.formula(medv ~ lstat), c("rad", "tax", "crim"),
    mobforest_controls = mobforest.control(ntree = 3, mtry = 2, replace = T,
        alpha = 0.05, bonferroni = T, minsplit = 25), data = BostonHousing,
    processors = 1, model = linearModel, seed = 1111)
# prints predictive accuracy output
pacc <- predictive.acc(rfout)

## End(Not run)

RTIInternational/mobForest documentation built on Aug. 3, 2019, 8:28 a.m.