getvarnames: getvarnames

View source: R/functions_annex.R

getvarnamesR Documentation

getvarnames

Description

'getvarnames' is used to get all variable names from a regression model

Usage

getvarnames(formula, data = NULL)

Arguments

formula

the formula from which to extract variable names

data

data frame with variables from the formula

Value

'getvarnames' returns a list with 'varnames' (referring to all variable names), 'xvar' (referring to the predictors), and 'yvar' (referring to the outcome)


AllanJe/multimediate documentation built on July 25, 2024, 12:14 p.m.