getLambdaNcoef(lol)
getLambdaNcoef()所属R语言包:lol
译者:生物统计家园网 机器人LoveR
描述----------Description----------
get the lambda value that yield certain number of non-zero coefficients
得到的lambda值,产量非零系数的若干
用法----------Usage----------
getLambdaNcoef(y, x, lambda1, nCoef, track=FALSE, model='linear', standardize=FALSE)
参数----------Arguments----------
参数:y
A vector of expressions
一个表达式的向量
参数:x
a matrix of CN variables
CN的变量矩阵
参数:lambda1
minimum lambda to use
最低的lambda使用
参数:nCoef
the number of coefficients to get
系数得到的数
参数:track
logical value for tracking the progress
逻辑值跟踪进展
参数:model
which model to use, default to 'linear'
使用哪种模式,默认为“线性”
参数:standardize
standardize the data or not
规范的数据或不
值----------Value----------
参数:lambda
The lambda value that gives approximate same number of non-zero coefficients as required
lambda值,使所需的大致相同数量的非零系数
作者(S)----------Author(s)----------
Yinyin Yuan
参见----------See Also----------
lasso
套索
举例----------Examples----------
data(chin07)
data <- list(y=chin07$ge[1,], x=t(chin07$cn))
getLambdaNcoef(data$y, data$x, lambda1=.1, nCoef=10, track=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|