| ERHMMClass {mapfit} | R Documentation |
ErlangHMM for MAP
Description
ErlangHMM for MAP
ErlangHMM for MAP
Details
A special case of MAP.
Methods
Public methods
Method alpha()
Get alpha
Usage
ERHMMClass$alpha()
Returns
A vector of alpha
Method shape()
Get shape
Usage
ERHMMClass$shape()
Returns
A vector of shapes
Method rate()
Get rate
Usage
ERHMMClass$rate()
Returns
A vector of rates
Method P()
Get P
Usage
ERHMMClass$P()
Returns
A matrix of P
Method xi()
Get exit rates
Usage
ERHMMClass$xi()
Returns
A vector of exit rates
Method new()
Create an ERHMM
Usage
ERHMMClass$new(alpha, shape, rate, P, xi)
Arguments
alphaA vector of initial probability
shapeA vector of shape parameters
rateA vector of rate parameters
PA matrix of transition probabilities
xiAn exit rate vector
Returns
An instance of ERHMM
Method copy()
copy
Usage
ERHMMClass$copy()
Returns
A new instance
Method size()
The number of components
Usage
ERHMMClass$size()
Returns
The number of components
Method df()
Degrees of freedom
Usage
ERHMMClass$df()
Returns
The degrees of freedom
Method print()
Usage
ERHMMClass$print(...)
Arguments
...Others
Method mmoment()
Marginal moments
Usage
ERHMMClass$mmoment(k, ...)
Arguments
kAn integer of degree
...Others
Returns
A vector of moments
Method jmoment()
Joint moments
Usage
ERHMMClass$jmoment(lag, ...)
Arguments
lagAn integer of lag
...Others
Returns
A matrix of moments
Method acf()
k-lag correlation
Usage
ERHMMClass$acf(...)
Arguments
...Others
Returns
A vector for k-lag correlation
Method emfit()
Run EM
Usage
ERHMMClass$emfit(data, options, ...)
Arguments
dataA dataframe
optionsA list of options
...Others
Method init()
Initialize with data
Usage
ERHMMClass$init(data, ...)
Arguments
dataA dataframe
...Others
Method clone()
The objects of this class are cloneable with this method.
Usage
ERHMMClass$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.