generate_timeseries: Generate a distribution of values over time

Description Usage Arguments Value Examples

View source: R/generate-timeseries.R

Description

Generates a time series of values with lognormal errors and some temporal autocorrelation

Usage

1
2
generate_timeseries(thing, cv, ac, time, percent_slope = 0,
  min_thing = 0)

Arguments

thing

the thing to be jittered

ac

the degree of autocorrelation 0-1

time

the length of time series to simulate

sigma

the degree of variation

Value

a vector of length time

Examples

1
2
3
4
## Not run: 
generate_timeseries(thing = 2, sigma = .1, ac = 0.5, time = 10)

## End(Not run)

DanOvando/spasm documentation built on April 22, 2020, 6:23 p.m.