Usage
glm_reg(dataset, glm_dep_var, glm_indep_var, data_filter = "", glm_levels = "", glm_link = "logit", glm_int_var = "", glm_check = "")
Arguments
dataset
Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
glm_dep_var
The dependent variable in the logit (probit) model
glm_indep_var
Independent variables in the model
data_filter
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")
glm_levels
The level in the dependent variable defined as _success_
glm_link
Link function for _glm_ ('logit' or 'probit'). 'logit' is the default
glm_int_var
Interaction term to include in the model (not implement)
glm_check
Optional output or estimation parameters. "vif" to show the multicollinearity diagnostics. "confint" to show coefficient confidence interval estimates. "odds" to show odds ratios and confidence interval estimates. "standardize" to output standardized coefficient estimates. "stepwise" to apply step-wise selection of variables