GoodnessOfFit: Goodness-of-Fit

View source: R/fit.R

GoodnessOfFitR Documentation

Goodness-of-Fit

Description

GoodnessOfFit summary is a generic function used to produce result summaries of the results of the model object. The function invokes particular methods which depend on the class of the first argument. reports the goodness-of-fit of an object.

Usage

GoodnessOfFit(object, digits = max(3L, getOption("digits") - 3L), ...)

## Default S3 method:
GoodnessOfFit(object, digits = max(3L, getOption("digits") - 3L), ...)

## S3 method for class 'Regression'
GoodnessOfFit(object, digits = max(3L, getOption("digits") - 3L), ...)

Arguments

object

An object for which a summary is desired..

digits

Minimal number of significant digits, see print.default.

...

Additional arguments affecting the goodness-of-fit displayed. #@examples

# linear regression x <- rnorm(10) y <- rnorm(10) + x mod <- lm(y ~ x) GoodnessOfFit(mod)

# MDS - square library(smacof) data(breakfastDissimilarities) mdsInterval <- smacofSym(breakfastDissimilarities[[4]], type = "interval", eps = 1e-12, itmax = 100000) GoodnessOfFit(mdsInterval) # MDS - rectangular data(breakfast) GoodnessOfFit(smacofRect(breakfast))

Methods (by class)

  • GoodnessOfFit(default): Default goodness-of-fit R^2.

  • GoodnessOfFit(Regression): Goodness-of-fit for a Regression object. Computed as the R^2 statistic. With factors, the index value of the factor is used. With unordered factors, this will often be grieviously-downward biased.


Displayr/flipRegression documentation built on March 2, 2024, 3:51 a.m.