View source: R/SurrogateBMA_functions.R
post.model | R Documentation |
Gives the posterior probability of each candidate model being true.
post.model(Y, S, A, prior.para = NULL)
Y |
numeric vector; primary outcome, assumed to be continuous. |
S |
numeric vector; surrogate marker, assumed to be continuous. |
A |
numeric vector; treatment arm, assumed to be binary. The treatment arm = 1 when the patient is enrolled in the treatment group, treatment arm = 0 when in the control group. |
prior.para |
a list of hyper-parameters in the inverse-Gamma-Normal prior for the variance and coefficients, including a0_list, b0_list, mu0_list, Gamma0_list, Gamma0_inv_list , each being a list of 5 with 5 parameters under the 5 different candidate models. An Inv-Gamma(a0, b0) - Normal(mu0, |
a numeric vector; the posterior probabilities of the candidate models.
Yunshan Duan
Duan, Y. and Parast, L., 2023. Flexible evaluation of surrogate markers with Bayesian model averaging. Statistics in Medicine.
data(exampleData)
post.model(Y = exampleData$Y, S = exampleData$S, A = exampleData$A)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.