nobs: Number of Observations in Hidden Markov Model

nobs.hmmR Documentation

Number of Observations in Hidden Markov Model

Description

Extract the number of non-missing observations of HMM. When computing nobs for a multichannel model with $C$ channels, each observed value in a single channel amounts to $1/C$ observation, i.e. a fully observed time point for a single sequence amounts to one observation.

Usage

## S3 method for class 'hmm'
nobs(object, ...)

## S3 method for class 'mhmm'
nobs(object, ...)

## S3 method for class 'nhmm'
nobs(object, ...)

## S3 method for class 'mnhmm'
nobs(object, ...)

Arguments

object

An object of class hmm, mhmm, nhmm, or mnhmm.

...

Ignored.


seqHMM documentation built on June 8, 2025, 10:16 a.m.