Description Usage Arguments Value See Also Examples
Compute parameters' posterior mean based on modelStan output.
1 | postMean(df_of_draws, x_var, id_var, dat)
|
df_of_draws |
Data frame of simulated LMM output |
x_var |
Character vector of random effect variables |
id_var |
Character of id variable |
dat |
Longitudinal data input |
list(b0,bMatrix,G,Gamma)
Other BayesPC main functions:
clustKL()
,
modelStan()
,
pcFit()
1 2 | data(df_of_draws)
ls_par <- postMean(df_of_draws, paste0("Z", 1:10), "ID", DATASET)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.