Learn R Programming

spareg (version 1.1.1)

print.spar: Summary of 'spar' Object

Description

Print summary of 'spar' object

Usage

# S3 method for spar
print(x, ...)

Value

text summary

Arguments

x

result of spar function of class 'spar'.

...

further arguments passed to or from other methods

Examples

Run this code
example_data <- simulate_spareg_data(n = 100, p = 400, ntest = 100)
spar_res <- spar(example_data$x, example_data$y, xval = example_data$xtest,
  yval = example_data$ytest, nummods=c(5, 10))
print(spar_res)

Run the code above in your browser using DataLab