Description Usage Arguments Value See Also Examples
To fit longitudinal dataset using linear mixed model by calling stan package.
1 |
y_var |
Character of response variable |
x_var |
Character vector of random effect variables |
id_var |
Character of id variable |
dat |
Longitudinal data input |
seed |
Random seed to pass to sampling |
... |
Additional arguments passed to sampling |
dataframe of posterior output from Bayesian mixed linear regression
Other BayesPC main functions:
clustKL()
,
pcFit()
,
postMean()
1 | df_of_draws <- modelStan("Record", paste0("Z", 1:10), "ID", DATASET, seed=1, iter = 2, chain = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.