50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


bmstdr (version 0.8.2)

residuals.bmstdr: Extract residuals from a bmstdr fitted object.

Description

Extract residuals from a bmstdr fitted object.

Usage

# S3 method for bmstdr
residuals(object, numbers = NULL, ...)

Value

Returns a vector of residuals. If appropriate, it draws a time series plot of residuals. Otherwise, it draws a plot of residuals against observation numbers.

Arguments

object

A bmstdr model fit object.

numbers

a list with two components: sn=number of spatial locations tn=number of time points. Residuals will be assumed to follow the arrangement of the data frame - sorted by space and then time within space.

...

Any other additional arguments.