ldhmm.decode_stats_history {ldhmm}R Documentation

Estimating historical statistics (mean, volatility and kurtosis)

Description

This utility estimates historical statistics (mean, volatility and kurtosis) according to the state probabilities. The ldhmm object must have been decoded by running through ldhmm.decoding function. Note that kurtosis is naively implemented as the linear sum from each state weighted by state probabilities. It is subject to change to more rigorous formula in future releases.

Usage

ldhmm.decode_stats_history(
  object,
  ma.order = 0,
  annualize = FALSE,
  days.pa = 252
)

Arguments

object

a decoded ldhmm object

ma.order

a positive integer or zero, specifying order of moving average. Default is zero.

annualize

logical, to annaulize the sd and mean to V (xsqrt(days.pa)x100) and R (xdays.pa). Default is FALSE.

days.pa

a positive integer, specifying number of days per year, default is 252.

Value

an matrix of statistics history, size of observations times size of 3

Author(s)

Stephen H. Lihn


[Package ldhmm version 0.6.1 Index]