form_expression_lm: Form expression to use with lm()

Description Usage Arguments Details Value Examples

View source: R/help_parameter_estimation_functions.R

Description

Form expression to use with lm()

Usage

1
form_expression_lm(param_to_be_estimated, indep_var, covariates, interaction)

Arguments

param_to_be_estimated

parameter of interest

indep_var

the independent variable (column name in data file)

covariates

list of covariates

interaction

boolean value to indicate interaction in the case of linear regression, false by default

Details

This function helps to create the expression for liner regression model it takes care of covariates and interaction

Value

the formula for lm

Examples

1
2
formula <- form_expression_lm("gre", indep_var = "gpa", covariates = NA,
interaction = FALSE)

packDAMipd documentation built on March 3, 2021, 5:07 p.m.