powered by
Form expression to use with lm()
form_expression_lm(param_to_be_estimated, indep_var, covariates, interaction)
parameter of interest
the independent variable (column name in data file)
list of covariates
boolean value to indicate interaction in the case of linear regression, false by default
the formula for lm
This function helps to create the expression for liner regression model it takes care of covariates and interaction
# NOT RUN { formula <- form_expression_lm("gre", indep_var = "gpa", covariates = NA, interaction = FALSE) # }
Run the code above in your browser using DataLab