function to map a binary analysis by vector of exposures using a method specified by the method argument
map_phewas.Rd
function to map a binary analysis by vector of exposures using a method specified by the method argument
Usage
map_phewas(
data = NULL,
design = NULL,
outcome,
exposures,
covariates,
method,
logistf_pl = FALSE,
.weight_var = NULL,
workers = 1,
plan_strategy = future::multicore,
pwide_sig = TRUE
)
Arguments
- data
data frame
- design
survey design object
- outcome
name of outcome variable
- exposures
vector of exposure variables in data
- 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
- workers
number of workers to use for parallelization
- plan_strategy
strategy for parallelization
- pwide_sig
whether to add a column for significant results after p-value correction