ldhmm.calc_stats_from_obs: Computing the statistics for each state

Description Usage Arguments Value Author(s)

View source: R/ldhmm-calc_stats_from_obs.R

Description

This utility computes the statistics (mean, sd, kurtosis, length) for each state. It can be based on the local or global decoding result. The concept of asymptotic statistics can be applied by which the largest N observations (in absolute term) can be dropped to avoid distortion from outliers. It is assumed the object already has come with filled data in observations, states.prob, states.local, states.global slots.

Usage

1
2
3
ldhmm.calc_stats_from_obs(object, drop = 0, use.local = TRUE)

ldhmm.drop_outliers(x, drop = 1)

Arguments

object

an ldhmm object that contains the observations.

drop

numeric, an integer to drop the largest N observations, default is zero.

use.local

logical, use local decoding result, default is TURE. Otherwise, use global decoding result.

x

numeric, the observations.

Value

an ldhmm object containing results of decoding

Author(s)

Stephen H. Lihn


ldhmm documentation built on Jan. 11, 2020, 9:16 a.m.