simulate_linear_trend.Rd
Simulate data from a linear trend model
simulate_linear_trend(
t,
start_value = 0,
end_value = 1,
sampling_distribution = NULL,
seed = NULL,
...
)
numeric; vector of time points.
numeric vectors of length 1; the start and end values for the linear trend.
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()
.
numeric; a seed for the simulation.
additional arguments that will be passed to
sampling_distribution
.