extractRF: Extract the random forest model from an xytb object

Description Usage Arguments Value Author(s) See Also Examples

Description

The random forest model is extracted from the xytb object to a randomForest object.

Usage

1

Arguments

xytb

an xytb object with a model.

Value

a randomForest object as defined by the randomForest package.

Author(s)

Laurent Dubroca

See Also

See randomForest

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#track_CAGA_005 is dataset
#generate a complete xytb object with derived (over moving windows of 3, 5
#and 9 points, with quantile at 0, 50 and 100%) and shifted information on 10
#and 100 points
xytb<-xytb(track_CAGA_005,"a track",c(3,5,9),c(0,.5,1),c(10,100))
#compute a random forest model to predict behaviour (b, where -1 is
#unobserved behaviour) using the derived
#parameters ("actual")
xytb<-modelRF(xytb,"actual",nob="-1",colin=TRUE,varkeep=c("v","thetarel"),zerovar=TRUE)
#extract the model
modRF<-extractRF(xytb)
# results from randomForest package:
print(modRF)
plot(modRF)

m2b documentation built on May 2, 2019, 10:22 a.m.