Description Usage Arguments Methods (by class) Examples
reports the goodness-of-fit of an object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | GoodnessOfFitPlot(object, ...)
## Default S3 method:
GoodnessOfFitPlot(object, digits = max(3L,
getOption("digits") - 3L), ...)
## S3 method for class 'lm'
GoodnessOfFitPlot(object, digits = max(3L, getOption("digits") -
3L), ...)
## S3 method for class 'smacof'
GoodnessOfFitPlot(object, ...)
## S3 method for class 'smacofR'
GoodnessOfFitPlot(object, ...)
|
object |
An object for which a summary is desired. |
... |
Additional arguments affecting the goodness-of-fit displayed. |
digits |
Minimal number of significant digits, see |
default
: Default goodness-of-fit plot
lm
: Goodness-of-fit plot for a linear model
smacof
: Goodness-of-fit plot for a square smacof object
smacofR
: Goodness-of-fit plot for a rectangular smacof object
1 2 3 4 5 6 7 8 9 10 11 12 | # linear regression
x <- rnorm(10)
y <- rnorm(10) + x
mod <- lm(y ~ x)
GoodnessOfFitPlot(mod)
# MDS - square
library(smacof)
data(breakfastDissimilarities)
mdsInterval <- smacofSym(breakfastDissimilarities[[4]],
type = "interval", eps = 1e-12, itmax = 100000)
GoodnessOfFitPlot(mdsInterval)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.