R/bkmr_cohort_spec.R
bkmr_cohort.RdBKMR wrapper performing cohort specific loops. Load Matrix and bindrcpp packages
bkmr_cohort(
data,
folder_path,
include_sex = TRUE,
include_cohort = TRUE,
ln_mixture_vars = NULL,
outcome_vars = NULL,
covariate_vars = NULL,
groups,
iter = iter
)input of a dataframe that contain all the variables mentioned in the wrapper
input folder location to save the output in RDA format
input TRUE or FASE to perform sex stratified analysis
input TRUE or FASE to perform cohort stratified analysis
input list of chemicals that need to be considered as mixture
input list of outcome variables
input list of covariates
input grouping structure of the chemicals considered as mixture, these values should be integers
input a numeric value for number of iterations
this function will return output from bkmr model in RDA format