Learn R Programming

sars (version 1.0.0)

fit_collection: Create a Collection of SAR Model Fits

Description

Creates a fit collection of SAR model fits, which can then be plotted using plot.sars.

Usage

fit_collection(..., fits = list(...))

Arguments

...

A set of one or more SAR model fits (all of class 'sars').

fits

Internal argument that creates a list of the model fits.

Value

A list of class 'sars' with n elements, corresponding to the n individual SAR model fits.

Examples

Run this code
# NOT RUN {
data(galap)
fit <- sar_linear(galap)
fit2 <- sar_power(galap)
fitC <- fit_collection(fit, fit2)
plot(fitC)
# }

Run the code above in your browser using DataLab