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 | GoodnessOfFit(object, digits = max(3L, getOption("digits") - 3L), ...)
## Default S3 method:
GoodnessOfFit(object, digits = max(3L, getOption("digits") -
3L), ...)
## S3 method for class 'smacof'
GoodnessOfFit(object, digits = max(3L, getOption("digits") -
3L), ...)
## S3 method for class 'smacofR'
GoodnessOfFit(object, digits = max(3L, getOption("digits") -
3L), ...)
|
object |
An object for which a summary is desired.. |
digits |
Minimal number of significant digits, see |
... |
Additional arguments affecting the goodness-of-fit displayed. |
default
: Default goodness-of-fit R^2
smacof
: Goodness-of-fit for a smacof object with square data (i.e., dissimilarities/distance)
smacofR
: Goodness-of-fit for a smacofR object with rectangular data (e.g., preferences)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # 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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.