form_expression_glm: Form expression to use with glm()

Description Usage Arguments Details Value Examples

View source: R/help_parameter_estimation_functions.R

Description

Form expression to use with glm()

Usage

1
2
3
4
5
6
7
8
9
form_expression_glm(
  param_to_be_estimated,
  indep_var,
  family,
  covariates,
  interaction,
  naaction,
  link
)

Arguments

param_to_be_estimated

parameter of interest

indep_var

the independent variable (column name in data file)

family

distribution name eg. for logistic regression -binomial

covariates

list of covariates

interaction

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

naaction

action to be taken with the missing values

link

link function if not the default for each family

Details

Form expression for the method glm

Value

the formula for glm

Examples

1
2
3
4
formula <- form_expression_glm("admit",
  indep_var = "gre", family = "binomial",
  covariates = c("gpa", "rank"), interaction = FALSE, naaction = "na.omit",
  link = NA)

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