Learn R Programming

seqHMM (version 2.1.0)

update.nhmm: Update Covariate Values of NHMM

Description

This function can be used to replace original covariate values of NHMMs. The responses, model formulae and estimated coefficients are not altered.

Usage

# S3 method for nhmm
update(object, newdata, drop_levels = TRUE, ...)

# S3 method for mnhmm update(object, newdata, drop_levels = TRUE, ...)

Arguments

object

An object of class nhmm or mnhmm.

newdata

A data frame containing the new covariate values.

drop_levels

if TRUE (default), drops unused factor levels from newdata before creating design matrices.

...

Ignored.