This function can be used to replace original covariate values of NHMMs. The responses, model formulae and estimated coefficients are not altered.
# S3 method for nhmm
update(object, newdata, drop_levels = TRUE, ...)# S3 method for mnhmm
update(object, newdata, drop_levels = TRUE, ...)
An object of class nhmm or mnhmm.
A data frame containing the new covariate values.
if TRUE (default), drops unused factor levels from
newdata before creating design matrices.
Ignored.