Skip to contents

Helper: function to run a binary analysis using logistf

Usage

logistf_analysis(
  data,
  outcome,
  exposure,
  covariates = NULL,
  logistf_pl = FALSE,
  weight_var = NULL
)

Arguments

data

data frame

outcome

name of outcome variable

exposure

name of exposure variable

covariates

vector of covariate names

logistf_pl

whether to use profile likelihood in logistf

weight_var

name of weight variable

Value

list of results from model for the exposure