DirScore: Get directionality score of a bdHMM

Description Usage Arguments Value Examples

View source: R/AllClasses.R

Description

This function returns the directionality score of a bdHMM.

Usage

1
DirScore(bdhmm)

Arguments

bdhmm

An object of class bdHMM.

Value

Directionality score of the bdHMM after model fitting.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(example)
bdhmm_ex = initBdHMM(observations, dStates=3, method="Gaussian", directedObs=0)

# without flags
bdhmm_fitted_noFlags = fitHMM(observations, bdhmm_ex)
DirScore(bdhmm_fitted_noFlags)

# with flags
bdhmm_fitted_flags = fitHMM(observations, bdhmm_ex, dirFlags=flags)
DirScore(bdhmm_fitted_flags)

STAN documentation built on Nov. 8, 2020, 11:11 p.m.