Skip to contents

function to run a binary analysis using a method specified by the method argument

Usage

phewas_analysis(
  data = NULL,
  design = NULL,
  outcome,
  exposure,
  covariates,
  method,
  logistf_pl = FALSE,
  .weight_var = NULL,
  verbose = TRUE,
  show_error = FALSE
)

Arguments

data

data frame

design

survey design object

outcome

name of outcome variable

exposure

name of exposure variable

covariates

vector of covariate names

method

method to use for analysis

logistf_pl

whether to use profile likelihood in logistf

.weight_var

name of weight variable

verbose

whether to print offending exposure

show_error

whether to show error messages

Value

list of results from model for the exposure