Plot simulated random intercepts

# S3 method for sim_iid
plot(x, y, ..., link = c("identity", "log", "logit"),
  baseline, center = c("mean", "bottom", "top"), quantiles = c(0.025,
  0.1, 0.5, 0.9, 0.975))

Arguments

x

a sim_iid object. Which is the output of simulate_iid

y

currently ignored

...

currently ignored

link

which link to use for back transformation

baseline

optional baseline for the time series

center

defines how to center the time series to the baseline. Options are: start all time series start at the baseline; mean the average of the time series is the baseline; bottom the lowest value of the time series equals the baseline; top the highest value of the time series equals the baseline

quantiles

which quantiles are shown on the plot

Value

a ggplot2 object

See also

Examples

set.seed(20181202) x <- simulate_iid(sigma = 0.25) plot(x)
plot(x, link = "log")
plot(x, link = "logit")