找回密码
 注册
查看: 255|回复: 0

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

[复制链接]
发表于 2012-9-30 01:46:52 | 显示全部楼层 |阅读模式
predictSGL(SGL)
predictSGL()所属R语言包:SGL

                                        Outputs predicted responses from an SGL model for new observations
                                         输出从SGL新的观测模型的预测反应

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

描述----------Description----------

Outputs predicted response values for new user input observations at a specified lambda value
输出预测响应新的用户输入观测值在指定的lambda值


用法----------Usage----------


predictSGL(x, newX, lam)



参数----------Arguments----------

参数:x
fitted "SGL" object
装"SGL"对象


参数:newX
covariate matrix for new observations whose responses we wish to predict
新的观测结果,我们希望他们的反应来预测的协方差阵


参数:lam
the index of the lambda value for the model with which we desire to predict
为模型的λ值的索引,与我们的愿望来预测


Details

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

Predicted outcomes are given
给出预测结果


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


Noah Simon, Jerome Friedman, Trevor Hastie, and Rob Tibshirani<br>
Maintainer: Noah Simon &lt;nsimon@stanford.edu&gt;




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

A Sparse-Group Lasso, <br> http://www-stat.stanford.edu/~nsimon/SGL.pdf

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

SGL and cvSGL.
SGL和cvSGL。


实例----------Examples----------


n = 50; p = 100; size.groups = 10
index <- ceiling(1:p / size.groups)
X = matrix(rnorm(n * p), ncol = p, nrow = n)
beta = (-2:2)
y = X[,1:5] %*% beta + 0.1*rnorm(n)
data = list(x = X, y = y)
Fit = SGL(data, index, type = "linear")
X.new = matrix(rnorm(n * p), ncol = p, nrow = n)
predictSGL(Fit, X.new, 5)

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


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

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-21 15:58 , Processed in 0.046042 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表