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

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

[复制链接]
发表于 2012-9-30 12:41:11 | 显示全部楼层 |阅读模式
cv(SpatialExtremes)
cv()所属R语言包:SpatialExtremes

                                        Estimates the penalty coefficient from the cross-validation
                                         估计惩罚系数交叉验证

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

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

Estimates the penalty coefficient from the cross-validation criterion.
估计惩罚系数交叉验证标准。


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


cv(y, x, knots, degree, plot = TRUE, n.points = 150, ...)



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

参数:y
The response vector.
响应矢量。


参数:x
A vector/matrix giving the values of the predictor variable(s). If x is a matrix, each row corresponds to one observation.
一个向量/矩阵给出的预测变量的值(S)。如果x是一个矩阵,每一行对应于一个观测。


参数:knots
A vector givint the coordinates of the knots.
一个的矢量givint的坐标的结。


参数:degree
The degree of the penalized smoothing spline.
程度的惩罚样条。


参数:plot
Logical. If TRUE (default), the evolution of the CV score as the penalty increases is plotted.
逻辑。如果TRUE(默认值),绘制的刑罚增加的CV得分的演变。


参数:n.points
A numeric giving the number of CV computations needed to produce the plot.
一个数字数的CV计算生产所需的图。


参数:...
Options to be passed to the nlm function.
要传递给nlm功能的选项。


Details

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

For every linear smoother e.g. y.hat =     S_λ y, the cross-validation criterion consists in minimizing the following quantity:
对于每一个线性平滑例如y.hat =     S_λ y,交叉验证标准包括以下数量最小化:

where λ is the penalty coefficient, n the number of observations and S_{λ,ii} the i-th diagonal element of the matrix S_λ.
其中λ是惩罚系数,n的一些意见和S_{λ,ii}第i个对角线元素的矩阵S_λ。


值----------Value----------

A list with components 'penalty', 'cv' and 'nlm.code' which give the location of the minimum, the value of the cross-validation criterion at that point and the code returned by the nlm function - useful to assess for convergence issues.
组件的惩罚“,”CV“和”nlm.code最低的位置,在这一点上的交叉验证标准的价值和代码的一个列表,返回nlm有用的功能 - 评估收敛问题。


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


Mathieu Ribatet



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

Regression Cambridge Series in Statistical and Probabilistic Mathematics.

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

cv
cv


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


n <- 200
x <- runif(n)
fun <- function(x) sin(3 * pi * x)
y <- fun(x) + rnorm(n, 0, sqrt(0.4))
knots <- quantile(x, prob = 1n/4) / (n/4 + 1))
cv(y, x, knots = knots, degree = 3)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-10 11:43 , Processed in 0.026244 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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