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

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

[复制链接]
发表于 2012-9-30 09:57:27 | 显示全部楼层 |阅读模式
case1502(Sleuth2)
case1502()所属R语言包:Sleuth2

                                        Global Warming
                                         全球变暖

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

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

The data are the temperatures (in degrees Celsius) averaged for the northern hemisphere over a full year, for years 1880 to 1987. The 108-year average temperature has been subtracted, so each observation is the temperature difference from the series average.
数据是北半球的温度(摄氏度)平均过了整整一年,1880至1987年多年。 108年平均气温已被减掉,所以每个观测系列平均的温度差。


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


case1502



格式----------Format----------

A data frame with 108 observations on the following 2 variables.   
一个数据框有108个观察以下2个变量。

Yearyear in which yearly average temperature was computed, from 1880 to 1987  
Year年中,年平均气温计算,从1880年到1987年

Tempnorthern hemisphere temperature minus the 108-year average (degrees Celsius)   
Temp北半球气温零下108年的平均水平(摄氏度)


源----------Source----------

Ramsey, F.L. and Schafer, D.W. (2002). The Statistical Sleuth: A Course in Methods of Data Analysis (2nd ed), Duxbury.
拉姆齐,F.L.和Schafer,D.W. (2002年)。的统计的猎犬:A课程方法的数据分析(第二版),达克斯伯里。


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

Jones, P.D. (1988). Hemispheric Surface Air Temperature Variations—Recent Trends Plus an Update to 1987, Journal of Climatology 1: 654–660.

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


str(case1502)

# Residuals from regression fit, ignoring autocorrelation[残差自回归拟合,忽略自相关]
resids <- lm(Temp ~ Year, case1502)$res
# PACF plot shows evidence of 1st order auto correlation[PACF图中显示的一阶自相关的证据]
acf(resids,type="partial")
# 1st autocorrelation coef.[第1个自相关系数。]
acorr1 <- acf(resids,type="correlation",plot=FALSE)$acf[2]

# Fit regression with filtered response and explanatory variables:[适合与滤波响应和解释变量的回归:]
n <- length(case1502$Temp)
y <- with(case1502, Temp [2:n] - acorr1* Temp [1n-1)])
x <- with(case1502, Year [2:n] - acorr1* Year [1n-1)])
fit <- lm(y ~ x)
summary(fit)  # Interpret coefficient of x as coefficient of Year[解释x的系数,系数的年份]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-26 06:03 , Processed in 0.020385 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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