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

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

[复制链接]
发表于 2012-2-25 20:53:35 | 显示全部楼层 |阅读模式
makespline(goseq)
makespline()所属R语言包:goseq

                                         Monotonic Spline
                                         单调样条

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

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

Fits a monotonic cubic spline to the data provided, using the penalized constrained least squares method from the mgcv package.
适合单调的三次样条提供的数据,使用的惩罚约束最小二乘法从mgcv包。


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


makespline(x, y, newX=NULL, nKnots = 6, lower_bound = 10^-3)



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

参数:x
The predictor variable.  
预测变量。


参数:y
The response variable.  Must be the same length as x.  
响应变量。必须是相同的长度为x。


参数:newX
The points at which to return the value on the fitted spline.  If not specified x is used.  
点拟合样条返回的值。如果没有指定x使用。


参数:nKnots
The number of knots to use in fitting the spline.  
使用样条拟合的节数。


参数:lower_bound
The spline cannot drop below this value.  
样条线不能低于这个值。


Details

详情----------Details----------

This uses the pcls function from the mgcv package to produce the fit.  The montonicity constraint is enforced using mono.con from the same package. The lower_bound argument is only used on the rare occasions when the fitting function becomes negative or arbitrarily close to zero.  If this does occur lower_bound is added everywhere to ensure that no one length is given essentially infinite weighting.
使用pcls包mgcv函数来产生合适。 montonicity约束强制使用mono.con从同一个包。 lower_bound参数仅用于上罕见的场合时,拟合函数变为负或任意接近零。如果这确实发生lower_bound添加到处,以确保没有一个长度基本上是无限的比重。


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

Returns a vector of values containing the value of the fit at each point newX.
返回一个包含合适的值,在每个点newX值的向量。


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



Matthew D. Young <a href="mailto:myoung@wehi.edu.au">myoung@wehi.edu.au</a>.




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



举例----------Examples----------



y <- c( rbinom(50,p=0.4,size=1), rbinom(50,p=0.6,size=1) )
x <- 1:100
plot(x,y)
p <- makespline(x,y)
lines(x,p)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-6 20:15 , Processed in 0.023729 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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