get.mod.outcome: Get the outcome variable from a model string

View source: R/models.R

get.mod.outcomeR Documentation

Get the outcome variable from a model string

Description

Get the outcome variable from the front of a model formula string. Used as part of 'get.mod.clmns' to be passed to 'comp.data'

Usage

get.mod.outcome(model)

Arguments

model

a character string of a formula of the form 'y ~ x1 + x2 ...'

Value

a character string specifying the outcome variable

Examples


model.columns <- get.mod.clmns(model=formula('y ~ x1 + x2'))


mmodely documentation built on May 31, 2023, 6:47 p.m.