Fits a Bayesian weighted sums
bws_wrapper(y, x, args = list(iter = 2000))
A list
The smaller posterior probability of the combined overall effect being to one side of zero: min(Pr(beta >0), Pr(beta<0)). The same for all predictor.
The 95% CI of the contribution of each predictor to the overall effect. Between 0 and 1.
elapsed time to fit the model.
A vector of outcome
A matrix of predictors
A list of arguments see R `bws::bws()`` function.
Hamra GB, MacLehose RF, Croen L, Kauffman EM, Newschaffer C (2021). “Bayesian weighted sums: a flexible approach to estimate summed mixture effects.” International Journal of Environmental Research and Public Health, 18(4), 1373.