Skip to contents

This function computes (pseudo-) residuals of an fHMM_model object.

Usage

compute_residuals(x, verbose = TRUE)

Arguments

x

An object of class fHMM_model.

verbose

Set to TRUE (default) to print progress messages.

Value

An object of class fHMM_model with residuals included.

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 
summary(residuals(dax_model_3t))
#>      Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
#> -3.519694 -0.658831  0.009613 -0.002206  0.669598  3.905726