is.SSModel | R Documentation |
SSModel
objectFunction is.SSModel
tests whether the object is a valid SSModel
object.
is.SSModel(object, na.check = FALSE, return.logical = TRUE)
object |
An object to be tested. |
na.check |
Test the system matrices for |
return.logical |
If |
Note that the validity of the values in 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.
Logical value or nothing, depending on the value of
return.logical
.
model <- SSModel(rnorm(10) ~ 1)
is.SSModel(model)
model['H'] <- 1
is.SSModel(model)
model$H[] <- 1
is.SSModel(model)
model$H[,,1] <- 1
is.SSModel(model)
model$H <- 1
is.SSModel(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.