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

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

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

                                         Maximal smoothing principle (oversmoothing) for bivariate KDE bandwidths
                                         二元KDE带宽的最大平滑的原则(oversmoothing)

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

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

Provides an (isotropic) bandwidth estimate for use in bivariate KDE based on the oversmoothing factor introduced by Terrell (1990).
提供一个(各向同性)带宽预算二元KDE中使用基于因子者特勒尔(1990)引入oversmoothing。


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


OS(data, nstar = NULL, scaler = NA)



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

参数:data
An object of type data.frame, list, matrix, or ppp giving the observed data from which we wish to calculate the OS bandwidth. See "Details" for further information.  
类型的对象,data.frame,list,matrix或ppp给所观察到的数据,从中我们希望计算的OS带宽。的详细信息,请参阅“详细信息”。


参数:nstar
A single numeric, positive value to use in place of the number of observations n in the OS formula. If NULL (default), n will simply be the number of observations in data.  
一个单一的数字,积极的若干意见的OS公式中的n值使用。如果NULL(默认),n将仅仅是在data的若干意见。


参数:scaler
A single numeric, positive value to use for transforming the result with respect to the scale of the recorded data. If NA (default), the scaling value is set as the mean of the interquartile ranges (IQR) of the x and y data values divided by 1.34 (Gaussian IQR). This approach was used in Davies and Hazelton (2010).  
一个单一的数字,正值使用转换结果记录的数据规模。如果NA(默认值),标定值被设置的四分位范围内的平均值(IQR)的x和y的数据值除以1.34(高斯IQR)。采用了这种办法在戴维斯和黑泽尔顿(2010)。


Details

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

This function calculates a smoothing bandwidth for kernel density estimates of bivariate data, following the maximal smoothing priciple of Terrell (1990). If the data argument is a data.frame or a matrix, this must have exactly two columns containing the x ([,1]) and y ([,2]) data values. Should data be a list, this must have two vector components of equal length named x and y. Alternatively, data may be an object of class ppp (see ppp.object).
此函数计算的内核密度估计的二元数据的平滑带宽,最大平滑安全原则的特雷尔(1990)。如果data参数是一个data.frame或matrix,这必须有两列包含x([,1])和y([,2])的数据值。 data是list,这必须有两个长度相等的名为x和y矢量分量。另外,data可能是类的一个对象ppp(见ppp.object)。


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

A single numeric value of the estimated bandwidth.
一个数值的估计带宽。


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



T.M. Davies




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

Terrell, G.R. (1990), The maximal smoothing principle in density estimation, Journal of the American Statistical Association, 85, 470-477.

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



data(PBC)
PBC.casedata <- split(PBC)[[1]]
PBC.controldata <- split(PBC)[[2]]

pbc.h <- OS(PBC, nstar = sqrt(PBC.casedata$n * PBC.controldata$n))


##Scaling bandwidth for case data using standard deviations[#缩放的带宽使用标准偏差的情况下,数据]
sd.x <- sd(PBC.casedata$x)
sd.y <- sd(PBC.casedata$y)

OS(data = PBC.casedata, scaler = mean(sd.x, sd.y))


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-9 20:38 , Processed in 0.031817 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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