residuals.bmstdr {bmstdr}R Documentation

Extract residuals from a bmstdr fitted object.

Description

Extract residuals from a bmstdr fitted object.

Usage

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

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.

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.


[Package bmstdr version 0.7.9 Index]