Description Usage Arguments Examples
This function counts the number of levels in a factor variable and is meant to be used in conjunction with to_stan_factor()
. Note that both of these functions use addNA()
, such that any exisiting NA
values in the factor are grouped together and counted as a distinct factor level.
1 |
factor |
A factor. |
1 | stan_factor_count(my.factor)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.