Learn R Programming

dominanceanalysis (version 2.0.0)

using-fit-indices: Provides fit indices for different regression models.

Description

dominanceAnalysis tries to infer, based on the class of the model provided, the appropriate fit indices, using the scheme da.CLASS.fit for name. This method has two interfaces, one for retrieving the names of the fit indices, and another to retrieve the indices based on the data.

Arguments

original.model

Original fitted model

newdata

Data used in update statement

null.model

Null model, only needed for HLM models.

base.cov

Required if only a covariance/correlation matrix is provided.

Details

Interfaces are:

  • da.CLASS.fit("names") returns a vector with names for fit indices

  • da.CLASS.fit(original.model, data, null.model, base.cov=NULL) returns a function with one parameter, the formula to calculate the submodel.