Description Usage Arguments Value
This function trains a negative binomial factor analysis model in Stan. Each variable has its own scaling parameter.
1 | train_NBFA2(train, gp_train, nfac = 2, ...)
|
train |
data frame. The training data set, consisting of counts. Columns represent variables, rows represent observations. |
gp_train |
vector. Groups for each observation. |
nfac |
numeric. The number of factors. |
... |
Arguments passed to |
A list.
train |
Training data set. |
gp_train |
A vector of groups for each observation. |
loadings |
Aggregated loadings. |
scores |
Aggregated factor scores. |
mu |
Aggregated mean parameters. |
probs |
Aggregated probability parameters. |
phi |
Aggregated size parameters. |
stan_mod |
An object of S4 class |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.