Learn R Programming

spareg (version 1.1.1)

summary.coefspar: Summary Method for 'coefspar' Object

Description

Provides a summary of a coefspar object.

Usage

# S3 method for coefspar
summary(object, digits = 4L, ...)

Value

Invisibly returns object.

Arguments

object

An object of class coefspar.

digits

integer digits to be printed, defaults to 4L.

...

Additional arguments (ignored).

Examples

Run this code
example_data <- simulate_spareg_data(n = 100, p = 2000, ntest = 100)
spar_res <- spareg(example_data$x, example_data$y, xval = example_data$xtest,
  yval = example_data$ytest, nummods=c(5, 10))
summary(coef(spar_res))
summary(coef(spar_res, aggregate = "none"))

Run the code above in your browser using DataLab