SSModel objectis.SSModel tests whether the object is a
valid SSModel object.is.SSModel(object, na.check = FALSE, return.logical = TRUE)FALSE.FALSE, error is given if
the the model is not a valid SSModel object.
Otherwise logical value is returned. Defaults to
FALSE.return.logical.y and
Z are not tested. These can contain NA values (but
not infinite values), with condition that when
Z[i,,t] contains NA value, the corresponding
y[t,i] must also have NA value. In this case
Z[i,,t] is not referenced in filtering and
smoothing, and algorithms works properly. Note also that
this does result NA values in thetahat, so it could
be beneficial to use for example zeroes in place of NA
values in Z, making first sure that the above condition is
met.