View source: R/generate_data_far1.R
generate_far1 | R Documentation |
Function to generate data according to FAR(1) process.
generate_far1(N, resolution, sd = 1, dependence = 1/2, drop_first = FALSE)
N |
Numeric for the number of observations. |
resolution |
Numeric for resolution of data or a vector specifying the observation points. |
sd |
Numeric for standard deviation with Brownian motion. |
dependence |
Numeric which indicates the dependence on the previous curve. |
drop_first |
Booolean if first values should be dropped so the data varies at the first rather than starting at 0 (given that is the observed first point). Note this will affect the resolution observed. |
dfts object of the data.
res <- generate_far1(20, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.