Skip to contents

This function extracts the computed (pseudo-) residuals of an fHMM_model object.

Usage

# S3 method for fHMM_model
residuals(object, ...)

Arguments

object

An object of class fHMM_model.

...

Ignored.

Value

A vector (or a matrix, in case of an hierarchical HMM) with (pseudo-) residuals for each observation.

Examples

compute_residuals(dax_model_3t)
#> Computed residuals
#> fHMM fitted model:
#> * total estimation time: 13 mins 
#> * accepted runs: 33 of 200 
#> * log-likelihood: 17649.52 
res <- residuals(dax_model_3t)
head(res)
#> [1] -0.50765392 -0.84902454 -0.42287366 -0.09183168  1.69261893  0.85081350