Learn R Programming

CombMSC (version 1.4.2.1)

fit.Models: Generic model fitting

Description

A default for the model.List argument of TMC which will correctly fit time series, regression, and GLM models.

Usage

fit.Models(fmla, ...)

Arguments

fmla

A generic model specification object.

Other arguments, which will depend on the type of model involved.

Details

This function is intended to be used internally in TMC as argument fit.Model. It will be applied to each element of the argument model.List during each iteration. Methods are included for lm, glm, and time-series models, and new methods can easily be written for different types of models.