prExtractOutcomeFromModel: Get model outcome

View source: R/private_functions.R

prExtractOutcomeFromModelR Documentation

Get model outcome

Description

Uses the model to extract the outcome variable. Throws error if unable to find the outcome.

Usage

prExtractOutcomeFromModel(model, mf)

Arguments

model

The fitted model

mf

The dataset that the model is fitted to - if missing it uses the model.frame() dataset. This can cause length issues as there may be variables that are excluded from the model for different reasons.

Value

vector


Greg documentation built on Nov. 16, 2022, 5:06 p.m.