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

R语言 smatr包 slope.test()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 10:15:43 | 显示全部楼层 |阅读模式
slope.test(smatr)
slope.test()所属R语言包:smatr

                                        One-sample test of a (standardised) major axis slope
                                         (标准化)长轴坡的一个样本测试

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

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

Test if the slope of a major axis or standardised
测试,如果长轴或标准化的斜率


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


    slope.test(y, x, test.value = 1, data=NULL, method = SMA,
        alpha = 0.05, V = matrix(0,2,2), intercept = TRUE )




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

参数:y
The Y-variable  
的Y变量


参数:x
The X-variable  
的X-变量


参数:test.value
The hypothesised value of the slope (default value is 1)  
推测的值的斜率(默认值是1)


参数:data
(optional) data frame containing the data  
(可选的)数据框包含的数据


参数:method
The line fitting method:     
该生产线拟合的方法:

'OLS' or 0linear regression  
“OLS或0linear的回归

'SMA' or 1standardised major axis (this is the default)  
“SMA”或1standardised长轴(这是默认设置)

'MA' or 2major axis     
MA或2major轴的


参数:alpha
The desired confidence level for the 100(1-alpha)% confidence interval for the common slope. (Default value is 0.05, which returns a 95% confidence interval.)  
所需的置信水平为100(1-α)%置信区间为共同斜率。 (默认值是0.05,它返回一个95%的置信区间)。


参数:V
The estimated variance matrix of measurement error. Average measurement error for Y is in the first row and column, and average measurement error for X is in the second row and column. The default is that there is no measurement error.  
估计方差矩阵的测量误差。平均测量误差为Y中的第一行和列,和用于X的平均测量误差是在第二行和列。在默认情况下是不存在测量误差。


参数:intercept
(logical) Whether or not the line includes an  intercept.     
(逻辑)是否该系列包括拦截。

FALSE no intercept, so the line is forced through the origin   
FALSE没有拦截,因此被强制通过原点

TRUE an intercept is fitted (this is the default)      
TRUE拦截安装(这是默认的)


Details

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

Tests if the line relating y to x has a slope equal to test.value (which has a default value of 1). The line can be a linear regression line, major axis or standardised major axis (as selected using the input argument choice). The test is carried out by testing for correlation between residual and fitted values, as described in Warton et al (in review).
的测试,如果有关的y对x的线具有斜率等于到test.value(其中有一个默认值1)。该生产线可以是一个线性回归直线,长轴或标准化的长轴(如使用的输入参数的选择选择)。进行试验,沃顿等人(评论)中描述的残差和拟合值之间的相关性通过测试。

A confidence interval for the slope is also returned, which is the primary confidence interval found by inverting the one-sample test statistic.
置信区间的斜率也回来了,这是主要的反相单样本检验统计量的置信区间。

If measurement error is present, it can be corrected for through use of the input argument V, which makes adjustments to the estimated sample variances and covariances then proceeds with the same method of inference. Note, however, that this method is only approximate (see Warton et al in review for more details).
如果测量误差是存在的,它可以通过使用输入的参数V,使具有相同的推理方法的调整的估计的样本方差和协方差然后前进校正。但是,请注意,这种方法只是近似(有关详细信息,沃顿等人在审查)。

The test assumes the following:
测试假设如下:

y and x are linearly related
y和x是线性相关的

residuals independently follow a normal distribution with equal variance at all points along the line
残差独立遵循正态分布,等方差沿线的所有点

The assumptions can be visually checked by plotting residual scores against fitted axis scores, and by constructing a Q-Q plot of residuals against a normal distribution, available using the plot.sma function.
假设可以肉眼检查剩余的分数对装轴的分数,并通过构建的残留物对正常的分布,可使用plot.sma功能的QQ图的绘制。


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


参数:r
The test statistic - the sample correlation between residuals and fitted values
残差和拟合值之间的样本相关系数检验统计量 -


参数:p
The P-value, taken from the F-distribution. This is an exact test if residuals are normally distributed.
P-值,从F-分布。这是一个正确的测试,如果是正态分布的残差。


参数:test.value
The hypothesised value of the slope
推测的值的斜坡


参数:b
The estimated slope
估计斜率


参数:ci
A 100(1-alpha)% CI for the slope.
A 100(1-α)%CI为斜坡。


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


Warton, D. <a href="mailtoavid.Warton@unsw.edu.au">David.Warton@unsw.edu.au</a>, translated to R by Ormerod, J. 2005-12-08



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




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

sma, line.cis, elev.test
sma,line.cis,elev.test


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


#load the leaflife dataset:[加载leaflife的数据集:]
data(leaflife)

#consider only the low rainfall sites:[考虑只有低降雨网站:]
leaf.low.rain=leaflife[leaflife$rain=='low',]

#test if the SMA slope amongst species at low rainfall sites is 1,[测试,如果SMA斜率在低降雨网站之间的物种是1,]
#for log (base 10) transformed data:[log(基数为10)转换后的数据:]
slope.test(log10(longev), log10(lma), data=leaf.low.rain)
   
#test if the MA slope is 2/3[测试如果MA斜率为2/3]
slope.test(log10(longev), log10(lma), data=leaf.low.rain,
   test.value = 2/3, method = 'MA')

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-26 10:49 , Processed in 0.021231 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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