# NOT RUN {
#--------------------------------------------------------------------------
# Example: Diabetes data
#
# See Efron B., Hastie T., Johnstone I., and Tibshirani R.
# Least angle regression. Ann. Statist., 32:407-499, 2004.
data(diabetes, package='l2boost')
object <- l2boost(diabetes$x,diabetes$y, M=1000, nu=.01)
coef(object)
# At the m=500 step
coef(object, m=500)
# }
Run the code above in your browser using DataLab