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

View source: R/methods.R

residuals.bmstdrR 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.


sujit-sahu/bmstdr documentation built on Jan. 30, 2024, 1:40 p.m.