Simulate data from a linear trend model

simulate_linear_trend(
  t,
  start_value = 0,
  end_value = 1,
  sampling_distribution = NULL,
  seed = NULL,
  ...
)

Arguments

t

numeric; vector of time points.

start_value, end_value

numeric vectors of length 1; the start and end values for the linear trend.

sampling_distribution

function; a random number generating function, which takes as it's first argument the number of observations to sample. The second argument should be the expected value. The default, if nothing is supplied, is stats::rnorm().

seed

numeric; a seed for the simulation.

...

additional arguments that will be passed to sampling_distribution.