print.l2boost {l2boost}R Documentation

print method for l2boost and cv.l2boost objects.

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

## 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

#--------------------------------------------------------------------------
# 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)


[Package l2boost version 1.0.3 Index]