powered by
Form expression to use with glm()
form_expression_glm( param_to_be_estimated, indep_var, family, covariates, interaction, naaction, link )
parameter of interest
the independent variable (column name in data file)
distribution name eg. for logistic regression -binomial
list of covariates
boolean value to indicate interaction in the case of generalised linear models, false by default
action to be taken with the missing values
link function if not the default for each family
the formula for glm
Form expression for the method glm
# NOT RUN { formula <- form_expression_glm("admit", indep_var = "gre", family = "binomial", covariates = c("gpa", "rank"), interaction = FALSE, naaction = "na.omit", link = NA) # }
Run the code above in your browser using DataLab