Description Usage Arguments See Also Examples
View source: R/print.l2boost.R
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
1 2 |
x |
an l2boost object |
m |
return the result from iteration m |
... |
other arguments passed to helper functions |
l2boost
, cv.l2boost
and coef.l2boost
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.