Description Usage Arguments Examples
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.
1 | predict.rf.index(data, rf.yvar, rf.form, rf.model, boot_reps = 500)
|
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) |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.