stan_inits {varian} | R Documentation |
Calculate Initial Values for Stan VM Model
Description
Internal function used to get rough starting values for a variability model in Stan. Uses inidivudal standard deviations, means, and linear regressions.
Usage
stan_inits(stan.data, design = c("V -> Y", "V -> M -> Y", "V", "X -> V",
"X -> V -> Y", "X -> M -> V"), useU, ...)
Arguments
stan.data |
A list containing the data to be passed to Stan |
design |
A character string indicating the type of model to be run. One of “V -> Y” for variability predicting an outcome, “V -> M -> Y” for mediation of variability on an outcome, “V” to take posterior samples of individual variability estimates alone. |
useU |
whether to include the random intercepts |
... |
Additional arguments (not currently used) |
Value
A named list containing the initial values for Stan.
Author(s)
Joshua F. Wiley <josh@elkhartgroup.com>
Examples
# make me!
[Package varian version 0.2.2 Index]