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 <nsimon@stanford.edu>
参考文献----------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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|