form_expression_glm {packDAMipd}R Documentation

Form expression to use with glm()

Description

Form expression to use with glm()

Usage

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

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

[Package packDAMipd version 1.1.0 Index]