print.l2boost: print method for 'l2boost' and 'cv.l2boost' objects.

Description Usage Arguments See Also Examples

View source: R/print.l2boost.R

Description

print is a generic function for displaying model summaries

print.l2boost returns a model summary for l2boost and cv.l2boost objects including the coefficient estimates at the specified step m. By default, print.l2boost returns the summary for the object at the final iteration step M

Usage

1
2
## S3 method for class 'l2boost'
print(x, m = NULL, ...)

Arguments

x

an l2boost object

m

return the result from iteration m

...

other arguments passed to helper functions

See Also

l2boost, cv.l2boost and coef.l2boost

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#--------------------------------------------------------------------------
# Example 1: Diabetes 
#  
# See Efron B., Hastie T., Johnstone I., and Tibshirani R. 
# Least angle regression. Ann. Statist., 32:407-499, 2004.
data(diabetes)

object <- l2boost(diabetes$x,diabetes$y, M=1000, nu=.01)

# A summary of the l2boost object at M=1000
print(object)

# Similar at m=100
print(object, m=100)

l2boost documentation built on Feb. 11, 2022, 5:10 p.m.