R语言 lars包 lars()函数中文帮助文档(中英文对照)

简介:

lars(lars)
lars()所属R语言包:lars

                                         Fits Least Angle Regression, Lasso and Infinitesimal Forward Stagewise regression models
                                         适用于最小角度回归,套索和无穷的前进Stagewise的回归模型

                                         译者:生物统计家园网 机器人LoveR

描述———-Description———-

These are all variants of Lasso, and provide the entire sequence of coefficients and fits, starting from zero, to the least squares fit.
这些都是拉索的变种,并提供整个序列的系数和配合,从零开始的最小二乘法拟合。

用法———-Usage———-

lars(x, y, type = c(“lasso”, “lar”, “forward.stagewise”, “stepwise”), 
    trace = FALSE, normalize = TRUE, intercept = TRUE, Gram, eps = .Machine$double.eps, max.steps, use.Gram = TRUE)

参数———-Arguments———-

参数:x
matrix of predictors  
矩阵的预测

参数:y
response   
响应

参数:type
One of  “lasso”, “lar”, “forward.stagewise” or “stepwise”. The names can be abbreviated to any unique substring. Default is “lasso”.  
“套索”之一,“拉尔”,“forward.stagewise的”或“逐步”。名称可以缩写为任何独特的子串。默认值是“套索”。

参数:trace
If TRUE, lars prints out its progress  
如果是TRUE,拉斯打印出其进展情况

参数:normalize
If TRUE, each variable is standardized to have unit L2 norm, otherwise it is left alone. Default is TRUE.  
如果是TRUE,每个变量的标准化,以单位L2规范,否则将被单独留在家中。默认值是TRUE。

参数:intercept
if TRUE, an intercept is included in the model (and not penalized), otherwise no intercept is included. Default is TRUE.  
如果为TRUE,截距包括在模型中(而不是处罚),否则没有截距。默认值是TRUE。

参数:Gram
The X’X matrix; useful for repeated runs (bootstrap) where a large X’X stays the same.  
XX矩阵,可重复运行(引导),那里有一个很大的XX保持不变。

参数:eps
An effective zero  
一个有效的零

参数:max.steps
Limit the number of steps taken; the default is 8 * min(m,     n-intercept), with m the number of variables, and n the number of samples. For type=”lar” or type=”stepwise”, the maximum number of steps is min(m,n-intercept). For type=”lasso” and especially type=”forward.stagewise”, there can be many more terms, because although no more than min(m,n-intercept) variables can be active during any step, variables are frequently droppped and added as the algorithm proceeds. Although the default usually guarantees that the algorithm has proceeded to the saturated fit, users should check.  
所采取的步骤的数目限制,缺省值是8 * min(m,     n-intercept),具有m的变量的数量,和n的样本数。对于type=”lar”或type=”stepwise”,最大步数为min(m,n-intercept)。对于type=”lasso”,尤其是type=”forward.stagewise”,可以有更多的条件,因为虽然没有超过min(m,n-intercept)变量可以在任何步骤中,经常droppped变量的算法进行添加。虽然默认的通常保证该算法已进入饱和的配合,用户应该检查。

参数:use.Gram
When the number m of variables is very large, i.e. larger than N, then you may not want LARS to precompute the Gram matrix. Default is use.Gram=TRUE  </table>
当数米的变量是非常大的,即大于N,那么你可能不想LARS预先革兰氏矩阵。默认值是use.Gram = TRUE </ TABLE>

Details

详细信息———-Details———-

LARS is described in detail in Efron, Hastie, Johnstone and Tibshirani (2002). With the “lasso” option, it computes the complete lasso solution simultaneously for ALL values of the shrinkage parameter in the same computational cost as a least squares fit. A “stepwise” option has recently been added to LARS.
LARS埃夫隆,哈斯蒂,庄士东和Tibshirani(2002)中详细描述。随着“套索”选项,它计算的完整的解决方案,同时为所有的的收缩参数在相同的计算成本的最小二乘拟合值套索。 A“逐步”选项已被添加到LARS。

值———-Value———-

A “lars” object is returned, for which print, plot, predict, coef and summary methods exist.
A“拉斯”对象被返回,打印,绘图,预测,系数和总结的方法。

(作者)———-Author(s)———-

Brad Efron and Trevor Hastie

参考文献———-References———-

(with discussion) Annals of Statistics; see also http://www-stat.stanford.edu/~hastie/Papers/LARS/LeastAngle_2002.pdf. Hastie, Tibshirani and Friedman (2002) Elements of Statistical Learning, Springer, NY.

参见———-See Also———-

print, plot, summary and predict methods for lars, and  cv.lars
打印,绘图,总结和预测方法拉斯,和cv.lars

实例———-Examples———-

data(diabetes)
par(mfrow=c(2,2))
attach(diabetes)
object <- lars(x,y)
plot(object)
object2 <- lars(x,y,type=”lar”)
plot(object2)
object3 &lt;- lars(x,y,type=”for”) # Can use abbreviations[可以使用缩写]
plot(object3)
detach(diabetes)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。

注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。

目录
相关文章
|
9天前
|
算法 Windows
R语言广义二次跳跃、非线性跳跃扩散过程转移函数密度的估计及其应用
R语言广义二次跳跃、非线性跳跃扩散过程转移函数密度的估计及其应用
17 0
|
9天前
R语言Copula函数股市相关性建模:模拟Random Walk(随机游走)
R语言Copula函数股市相关性建模:模拟Random Walk(随机游走)
15 0
|
9天前
|
数据可视化
R语言最优化问题中的共轭函数
R语言最优化问题中的共轭函数
|
10天前
R语言蒙特卡洛计算和快速傅立叶变换计算矩生成函数
R语言蒙特卡洛计算和快速傅立叶变换计算矩生成函数
11 0
|
1月前
|
机器学习/深度学习 数据可视化 算法
从零到精通:学习这些R语言必学包成为数据分析高手!
从零到精通:学习这些R语言必学包成为数据分析高手!
38 0
|
8月前
R语言之 dplyr 包
R语言之 dplyr 包
65 1
|
4月前
|
存储 人工智能 搜索推荐
R语言Ternary包绘制三元图、RGB三色空间分布图的方法
R语言Ternary包绘制三元图、RGB三色空间分布图的方法
|
4月前
|
定位技术
R语言GD包地理探测器分析时报错、得不到结果等情况的解决方案
R语言GD包地理探测器分析时报错、得不到结果等情况的解决方案
|
4月前
|
定位技术 Python
R语言raster包批量拼接、融合大量栅格图像
R语言raster包批量拼接、融合大量栅格图像
|
4月前
|
定位技术 Python
R语言raster包遍历多个文件夹并批量计算每一个文件夹下全部遥感影像的平均值
R语言raster包遍历多个文件夹并批量计算每一个文件夹下全部遥感影像的平均值

热门文章

最新文章