Description Usage Arguments Value See Also Examples
This is a wrapper around stan_slice() to make it easy to thin samples from each parameter in a stanfit object.
1 2 3 | stan_thin_n(object, size, inc_warmup = TRUE)
stan_thin_frac(object, size, inc_warmup = TRUE)
|
object |
stanfit object |
size |
numeric, for stan_thin_n size of thin, for stan_thin_frac fraction of samples to sample. |
inc_warmup |
logical, include warmup in output, Default: TRUE |
stanfit
Other filtering:
stan_filter()
,
stan_slice()
1 2 3 4 5 6 7 8 9 10 11 12 13 | rats <- rats_example(nCores = 1)
rats%>%
stan_select(mu_alpha)%>%
stan_thin_n(30)
rats%>%
stan_select(mu_alpha)%>%
stan_thin_frac(0.5)
rats%>%
stan_select(mu_alpha)%>%
stan_thin_n(30,inc_warmup = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.