View source: R/CovariateStrings.R
CovariateStrings | R Documentation |
Use existing randomForest entanglement and vessel strike models to output data frame that includes health status assignment probabilities ('DEAD.DECLINE' vs 'RECOVERED'), and covariate states / presence from the 'Narrative' field.
CovariateStrings(df)
df |
an object of class 'data.frame' |
Jim Carretta jim.carretta@noaa.gov
# Show model predictions alongside covariate states
CovList <- CovariateStrings(data.test.entangle)
ENprobs <- predict(ModelEntangle, data.test.entangle, type="prob")
EN.df.probs <- cbind.data.frame(CovList, ENprobs)
head(EN.df.probs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.