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

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

[复制链接]
发表于 2012-2-25 23:17:57 | 显示全部楼层 |阅读模式
loessFit(limma)
loessFit()所属R语言包:limma

                                        Fast Simple Loess
                                         快速,简单,黄土

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

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

A fast version of locally weighted linear regression when there is only one x-variable and only the fitted values and residuals are required.
时,只有一个变量x和唯一的拟合值和残差需要一个局部加权线性回归的快速版本。


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


loessFit(y, x, weights=NULL, span=0.3, bin=0.01/(2-is.null(weights)), iterations=4)



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

参数:y
numeric vector of response values.  Missing values are allowed.
数字矢量响应值。遗漏值是不允许的。


参数:x
numeric vector of predictor values  Missing values are allowed.
数值向量缺失值的预测值是允许的。


参数:weights
numeric vector of non-negative weights.  Missing values are allowed.
数字非负权重向量。遗漏值是不允许的。


参数:span
numeric parameter between 0 and 1 specifying proportion of data to be used in the local regression moving window. Larger numbers give smoother fits.
介于0和1指定将用于在当地的回归移动窗口的数据比例的数字参数。较大的数字给流畅配合。


参数:bin
numeric value between 0 and 1 giving the proportion of the data which can be grouped in a single bin when doing local regression fit. bin=0 forces an exact local regression fit with no interpolation.
数值0和1之间提供的数据可以在一个单一的bin分组时,当地的回归拟合的比例。 bin=0迫使插值没有确切的回归拟合。


参数:iterations
number of iterations of loess fit
黄土合适的迭代数


Details

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

This is a wrapper function to the Fortran and C code in the stats package which underlies the lowess and loess functions. Its purpose is to give a unified and streamlined interface to lowess and loess for use in normalizeWithinArrays. When weights is null, this function is in effect a call to lowess in the stats package, with appropropriate choice of tuning parameters. When weights is non-null, it is in effect a call to loess with degree=1. See the help pages for those functions for references and credits.
这是一个包装函数Fortran和C代码在统计包的基础lowess和loess功能。其目的是提供一个统一和简化的界面lowess和loessnormalizeWithinArrays的使用。当weights是空的,这个功能是通话中影响到lowess在统计封装,调整参数appropropriate选择。当weights非空,它是一个用loessdegree=1效果。引用和信贷这些功能的帮助页面。

Note that lowess is faster, needs less memory and is able to use a more accurate interpolation scheme than loess, so it is desirable to use lowess whenever loess is not needed to handle quantitative weights.
请注意lowess是速度更快,需要较少的内存,并能够使用比loess,所以它是需要使用lowess时loess不需要一个更准确的插值方案处理定量的砝码。

The arguments span, cell and iterations here have the same meaning as in loess. span is equivalent to the argument f of lowess and iterations is equivalent to iter+1.
论据span,cell和iterations在loess这里有相同的含义。 span是等价的说法flowess和iterations相当于iter+1的。

The parameter bin is intended to give a uniform interface to the delta argument of lowess and the cell argument of loess. bin translates to delta=bin*diff(range(x)) in a call to lowess or to cell=bin/span in a call to loess. This is an attempt to put the delta and cell arguments on comparable scales.
参数bin旨在提供一个统一的接口delta参数lowesscellloess参数的。 bin翻译delta=bin*diff(range(x))在通话lowess或cell=bin/span调用loess在。这是企图把delta和cell参数可比尺度。

Unlike lowess, loessFit returns values in original rather than sorted order. Also unlike lowess, loessFit allows missing values, the treatment being analogous to na.exclude. Unlike loess, loessFit returns a linear regression fit if there are insufficient observations to estimate the loess curve.
lowess与,loessFit在原来的返回值,而不是排列顺序。也不像lowess,loessFit允许缺失值,类似于na.exclude治疗。不像loess,loessFit返回线性回归拟合,如果有足够的观测估计黄土曲线。


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

A list with components
与组件列表


参数:fitted
numeric vector of same length as y giving the loess fit
y黄土适合数字相同长度的矢量


参数:residuals
numeric vector of same length as x giving residuals from the fit
数值向量相同长度的x从拟合的残差


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


Gordon Smyth, based on code from <code>lowess</code> and <code>loess</code> by BD Ripley



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

See lowess and loess in the stats package.
看到lowess和loess在统计包。

See 05.Normalization for an outline of the limma package normalization functions.
见的limma包标准化功能的大纲05.Normalization。


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


y <- rnorm(1000)
x <- rnorm(1000)
w <- rep(1,1000)
# The following are equivalent apart from execution time[以下是等价除了执行时间]
# and interpolation inaccuracies[插值误差]
system.time(fit <- loessFit(y,x)$fitted)
system.time(fit <- loessFit(y,x,w)$fitted)
system.time(fit <- fitted(loess(y~x,weights=w,span=0.3,family="symmetric",iterations=4)))
# The same but with sorted x-values[x值相同,但与排序]
system.time(fit <- lowess(x,y,f=0.3)$y)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-5 00:42 , Processed in 0.028525 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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