simulate_linear_trend | R Documentation |
Simulate data from a linear trend model
simulate_linear_trend( t, start_value = 0, end_value = 1, sampling_distribution = NULL, seed = NULL, ... )
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 |
seed |
numeric; a seed for the simulation. |
... |
additional arguments that will be passed to
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.