powered by
residuals.ssm generates the residuals of a fitted ssm object.
residuals.ssm
ssm
# S3 method for ssm residuals(object, method = c("exact", "cond"), ...)
A ts object containing the residuals of the SSM.
ts
an object of class ssm.
character. Either "exact" or "conditional" residuals.
additional arguments.
These residuals are calculated by first converting the ssm object to a um object and then using the residuals.um function.
um
residuals.um
# Local level model b <- 1 C <- as.matrix(1) ssm1 <- ssm(Nile, b, C, S = diag(c(irr = 15127.7, lvl = 1453.2))) u <-residuals(ssm1)
Run the code above in your browser using DataLab