View source: R/bwqs_main-revised.R
bwqs | R Documentation |
Fits Bayesian Weighted Quantile Sum (BWQS) regressions for continuous and binomial outcomes. This model provides estimation for the mixture composition and overall effect of the mixture on the outcomes using bayesian framework.
bwqs( formula, mix_name, data, q, Dalp = NULL, chains = 1, iter = 10000, thin = 3, seed = 2019, start_value = NULL, c_int = c(0.025, 0.975), family = "gaussian", prior = "None" )
formula |
Object of class |
mix_name |
A character vector listing the variables contributing to a mixture effect. |
data |
The |
q |
An |
Dalp |
A |
chains |
An |
iter |
An |
thin |
An |
seed |
An |
start_value |
A |
c_int |
A |
family |
A |
prior |
A |
The function bwqs
uses the package rstan
which allows the connection with STAN,
a specific software, written in C++ for bayesian inference, for further information see https://mc-stan.org/.
bwqs
returns a list with two argument:
fit |
An |
summary_fit |
Table with the statistics of the parameters: mean, standard error of the mean,
standard deviation, lower and upper values for the credible interval (with credible level specified
by |
Nicolo Foppa Pedretti, Elena Colicino
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.