get.mod.outcome {mmodely} | R Documentation |
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'
get.mod.outcome(model)
model |
a character string of a formula of the form 'y ~ x1 + x2 ...' |
a character string specifying the outcome variable
model.columns <- get.mod.clmns(model=formula('y ~ x1 + x2'))