simulate_iid | R Documentation |
simulate data from a second order random walk
simulate_iid(sigma = NULL, tau = NULL, n_sim = 1000)
sigma |
the standard deviation of the random intercept |
tau |
the precision of the random intercept |
n_sim |
the number of simulations |
a data.frame with simulated time series from the random walk
Other priors:
plot.sim_iid()
,
plot.sim_rw()
,
select_change()
,
select_divergence()
,
select_poly()
,
select_quantile()
,
simulate_rw()
set.seed(20181202)
x <- simulate_iid(sigma = 0.25)
head(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.