adeline 在用R运行lasso2的程序时,总是遇到问题: > library(lasso2) R Package to solve regression problems while imposing an L1 constraint on the parameters. Based on S-plus Release 2.1 Copyright (C) 1998, 1999 Justin Lokhorst <jlokhors@stats.adelaide.edu.au> Berwin A. Turlach <bturlach@stats.adelaide.edu.au> Bill Venables <wvenable@stats.adelaide.edu.au> Copyright (C) 2002 Martin Maechler <maechler@stat.math.ethz.ch> > lasso2 错误: 找不到这个对象"lasso2" 这是怎么回事啊?
yihui 这个包中本来就没有lasso2这个函数,lasso2只是包的名字而已。具体函数参见包的帮助文档,如http://finzi.psych.upenn.edu/R/library/lasso2/html/00Index.html
bjt [quote]引用第0楼adeline于2008-04-16 10:57发表的“运行lasso程序时返回错误报告“错误: 没有"lasso2"这个函数””: 在用R运行lasso2的程序时,总是遇到问题: quote] 在 R 中没有运行 xxx 程序的概念,只能是加载 包。每个包中又会有相应的函数和数据集。