R/bkmr_sex_spec.R
bkmr_sex.RdBKMR wrapper performing sex specific loops. Load Matrix and bindrcpp packages
bkmr_sex(
data,
folder_path,
include_sex = 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 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