Learn R Programming

groc (version 1.0.10)

summary.groc: Summary and Print Methods for groc objects

Description

Summary and print methods for groc objects.

Usage

# S3 method for groc
summary(object, what = "validation",
        digits = 4, print.gap = 2, ...)
# S3 method for groc
print(x, ...)

Value

print.groc return the object invisibly.

Arguments

x, object

a groc object

what

character, only "validation" for the moment

digits

integer. Minimum number of significant digits in the output. Default is 4.

print.gap

Integer. Gap between coloumns of the printed tables.

...

Other arguments sent to underlying methods.

Author

P. Lafaye de Micheaux

Details

If what is "validation", the cross-validated PRESS, RPEMAD and RMSEPs (if available) are given.

References

Martin Bilodeau, Pierre Lafaye de Micheaux, Smail Mahdi (2015), The R Package groc for Generalized Regression on Orthogonal Components, Journal of Statistical Software, 65(1), 1-29,
https://www.jstatsoft.org/v65/i01/

See Also

groc, grocCrossval

Examples

Run this code
data("yarn",package="pls")
yarn.groc <- groc(density ~ NIR, 6, data = yarn)
yarn.cv <- grocCrossval(yarn.groc, segments = 10)
print(yarn.groc)
summary(yarn.cv)

Run the code above in your browser using DataLab