postMean: Calculate posterior mean from the Linear Mixed Model result

Description Usage Arguments Value See Also Examples

View source: R/postMean.R

Description

Compute parameters' posterior mean based on modelStan output.

Usage

1
postMean(df_of_draws, x_var, id_var, dat)

Arguments

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

Value

list(b0,bMatrix,G,Gamma)

See Also

Other BayesPC main functions: clustKL(), modelStan(), pcFit()

Examples

1
2
data(df_of_draws)
ls_par <- postMean(df_of_draws, paste0("Z", 1:10), "ID", DATASET)

maoyinan/BayesPC documentation built on Dec. 21, 2021, 1:48 p.m.