predict.rf.index: A function to predict CPUE-index from a random forest model...

Description Usage Arguments Examples

Description

This function uses a random forest model to produce and index of abundance with associated 95 A dummy variable for year must be included to get the annual abundance index. The function back-transforms the index and the CI's.

Usage

1
predict.rf.index(data, rf.yvar, rf.form, rf.model, boot_reps = 500)

Arguments

data

data used to formulate the random forest model

rf.yvar

y variables (CPUE) in the random forest model

rf.form

formula for the random forest model

rf.model

random forest model to bootstrap

boot_reps

number of bootstrap replications (default = 500)

Examples

1
2
3
rf.cpue <- randomForest(rf.form,data=PA.data, mtry=3, ntree=1000, importance=TRUE, do.trace=250, keep.forest=TRUE) 
print(rf.cpue)	
rf.index<-predict.rf.index(PA.data,rf.yvar,rf.form,rf.cpue)

rooperc4/GLMGAMRF documentation built on May 17, 2019, 1:30 p.m.