CovariateStrings: CovariateStrings

View source: R/CovariateStrings.R

CovariateStringsR Documentation

CovariateStrings

Description

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.

Usage

CovariateStrings(df)

Arguments

df

an object of class 'data.frame'

Author(s)

Jim Carretta jim.carretta@noaa.gov

Examples


# 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)


JimCarretta/SeriousInjury documentation built on Feb. 29, 2024, 4:58 p.m.