simulTS: Simulate one time series with disturbance

Description Usage Arguments Value

View source: R/ts_generator.R

Description

Simulate one time series with disturbance

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
simulTS(
  nyr,
  nobsyr,
  tMiss,
  nDr,
  seasAv,
  seasAmp,
  trAv,
  remSd,
  distMag,
  distT,
  distRec,
  distType
)

Arguments

nyr

number of years that need to be simulated

nobsyr

number of observations per year that will be simulated

tMiss

timing of missing values [observation number]. If tMiss equals NA, no missing values are introduced.

nDr

number of drought years that are introduced [i.e. setting seasonality of a year equal to its minimum value]. These drought years are randomly chosen.

seasAv

average seasonality profile

seasAmp

seasonality amplitude

trAv

offset value of time series

remSd

standard deviation of the remainder

distMag

magnitude of the disturbance

distT

timing of the disturbance [observation number]

distRec

duration of the recovery [number of observations]

distType

type of disturbance-recovery process: 'piecewise' represents a step function with linear recovery, 'exponential' represents an exponential decay

remMod

ARMA model of remainder

Value

a list containign the years for which a drought was introduced and a time series object, containing the simulated seasonality, trend, remainder, disturbance, and the sum of these components.


RETURN-project/BenchmarkRecovery documentation built on July 13, 2021, 5:47 p.m.