TS.stats {BLRPM}R Documentation

calculating statistics of a time series needed for parameter estimation

Description

TS.stats calculates statistics of a given time series x at given accumulation levels acc.vals. The calculated statistics are the mean of the first accumulation level, the variance, auto-covariance lag-1 and the probability of zero rainfall of all given accumulation levels of the time series. These statistics are needed for estimating the BLRPM parameters.

Usage

TS.stats(x,acc.vals)

Arguments

x

vector of a time series

acc.vals

vector of accumulation levels, first value should be 1

Value

stats TS.stats returns a vector of statistics calculated at given accumulation levels

Author(s)

Christoph Ritschel christoph.ritschel@met.fu-berlin.de

Examples

time.series <- rgamma(1000,shape=1)
statistics <- TS.stats(time.series,acc.vals=c(1,3,12,24)) 

[Package BLRPM version 1.0 Index]