post.theta: Generates posterior samples of the parameters
Description
Provides a function to generate MCMC samples of p(theta_m | M = m, Data).
Usage
post.theta(Y, S, A, m, nmc = 500, prior.para = NULL)
Value
a numeric matrix; each row contains a MC sample from the posterior of the parameters given a certain model.
Arguments
- Y
-
- S
-
- A
-
- m
-
- nmc
-
- prior.para
-
References
Duan, Y. and Parast, L., 2023. Flexible evaluation of surrogate markers with Bayesian model averaging. Statistics in Medicine.