Update a TRACDS temporal structure with new state assignements
Source:R/compact.R, R/reset.R, R/update.R
update.RdAdd a sequence of new state assignments to a TRACDS object.
Usage
# S4 method for class 'TRACDS'
compact(x)
# S4 method for class 'TRACDS'
reset(x)
# S4 method for class 'TRACDS'
update(object, newdata, verbose = FALSE, ...)Value
A reference to the changed TRACDS object with the data added.
Note: EMM objects store all variable data in an environment which
enables us to update partial data without copying the whole object. Assignment
will not create a copy! Use the provided method copy().
Details
update()
adds a new state assignemnt sequenc to the TRACDS object by increasing the
transition counts and, if needed, creating new states.
reset() resets the current state to NA for reading in a
new sequence. An NA in newdata
also resets the current state.
compact() reduces the size (memory) used to store the temporal
transition matrix.
