print.forestFloor: print summary of forestFloor.Object

Description Usage Arguments Details Author(s) Examples

Description

This function simply states the obvious and returns the elements inside the object list.

Usage

1
2
3
4
## S3 method for class 'forestFloor_regression'
    print(x,...)
## S3 method for class 'forestFloor_multiClass'
print(x,...)

Arguments

x

x also abbreviated ff, forestFloor_Object the output from the forestFloor function

...

... other arguments passed to generic print function

Details

prints short help text for usage of a forestFloor_object

Author(s)

Soren Havelund Welling

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
#simulate data
obs=1000 
vars = 6 
X = data.frame(replicate(vars,rnorm(obs))) 
Y = with(X, X1^2 + sin(X2*pi) + 2 * X3 * X4 + 0.5 * rnorm(obs)) 

#grow a forest, remeber to include inbag
rfo=randomForest::randomForest(X,Y,keep.inbag=TRUE)

#compute topology
ff = forestFloor(rfo,X)

#print forestFloor
print(ff) 

## End(Not run)

sorhawell/forestFloor documentation built on Oct. 23, 2021, 2:20 a.m.