View source: R/print.l2boost.R
print.l2boost | R Documentation |
l2boost
and cv.l2boost
objects.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
## S3 method for class 'l2boost' print(x, m = NULL, ...)
x |
an l2boost object |
m |
return the result from iteration m |
... |
other arguments passed to helper functions |
l2boost
, cv.l2boost
and coef.l2boost
#-------------------------------------------------------------------------- # 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.