powered by
Compute and (optionally) plot residuals from SSM model fit
checkSSMresiduals( y, w, show.plot = TRUE, resid.type = c("standardized", "unstandardized") )
a vector of residuals, returned invisibly
a paleoTS object
paleoTS
a paleoTSfit object, where the fitting functions uses SSM
paleoTSfit
logical, if TRUE, several diagnostic plots are shown
TRUE
residual type, either "standardized" or "unstandardized"
It is recommended that resid.type be set to the default, "standardized", which will scale residuals by their expected standard deviation
resid.type
y <- sim.GRW(ns = 50, ms = 0.2) w <- fitSimple(y, model = "URW", method = "SSM") # wrong model checkSSMresiduals(y, w, show.plot = TRUE) # positive residuals show model mis-fit
Run the code above in your browser using DataLab