simulate_iid: simulate data from a second order random walk

View source: R/simulate_idd.R

simulate_iidR Documentation

simulate data from a second order random walk

Description

simulate data from a second order random walk

Usage

simulate_iid(sigma = NULL, tau = NULL, n_sim = 1000)

Arguments

sigma

the standard deviation of the random intercept

tau

the precision of the random intercept

n_sim

the number of simulations

Value

a data.frame with simulated time series from the random walk

See Also

Other priors: plot.sim_iid(), plot.sim_rw(), select_change(), select_divergence(), select_poly(), select_quantile(), simulate_rw()

Examples

set.seed(20181202)
x <- simulate_iid(sigma = 0.25)
head(x)

inbo/inlatools documentation built on Sept. 17, 2022, 2:13 p.m.