经管之家App
让优质教育人人可得
立即打开
全部版块
我的主页
›
论坛
›
数据科学与人工智能
›
数据分析与数据科学
›
R语言论坛
Using the R Environment for Statistical Computing
楼主
zbwang729
2552
4
收藏
2009-11-02
Using the R Environment for Statistical Computing An example with the Mercer & Hall wheat yield dataset
Contents
1 Introduction 1
2 R basics 1
2.1 Leaving R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 Loading and examining a data set 7
3.1 Reading a CSV file into an R object . . . . . . . . . . . . . . . 7
3.2 Examining a dataset . . . . . . . . . . . . . . . . . . . . . . . . 8
3.3 Saving a dataset in R format . . . . . . . . . . . . . . . . . . . 11
3.4 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4 Exploratory graphics 12
4.1 Univariate exploratory graphics . . . . . . . . . . . . . . . . . . 13
4.1.1 Enhancing the histogram* . . . . . . . . . . . . . . . . . 14
4.1.2 Kernel density* . . . . . . . . . . . . . . . . . . . . . . . 15
4.1.3 Another histogram enhancement: colour-coding rela-
tive frequency* . . . . . . . . . . . . . . . . . . . . . . . 17
4.2 Bivariate exploratory graphics . . . . . . . . . . . . . . . . . . . 18
4.3 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5 Descriptive statistics 22
5.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6 Editing a data frame 25
6.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
7 Introduction to modelling 27
8 Univariate modelling 27
8.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
9 Bivariate modelling: continuous variables 33
9.1 Correlation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
9.2 Univariate linear regression . . . . . . . . . . . . . . . . . . . . 40
9.2.1 Fitting a regression line . . . . . . . . . . . . . . . . . . 41
9.2.2 Regression diagnostics . . . . . . . . . . . . . . . . . . . 44
9.3 Structural Analysis* . . . . . . . . . . . . . . . . . . . . . . . . 49
9.4 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
10 Bivariate modelling: continuous vs. classified variables 57
10.1 Exploratory data analysis . . . . . . . . . . . . . . . . . . . . . 59
10.2 Two-sample t-test . . . . . . . . . . . . . . . . . . . . . . . . . . 61
10.3 One-way ANOVA . . . . . . . . . . . . . . . . . . . . . . . . . . 62
10.4 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
11 Multivariate modelling 64
11.1 Additive model: parallel regression . . . . . . . . . . . . . . . . 66
11.2 Comparing models . . . . . . . . . . . . . . . . . . . . . . . . . 67
11.3 Interaction model . . . . . . . . . . . . . . . . . . . . . . . . . . 69
11.4 Regression diagnostics . . . . . . . . . . . . . . . . . . . . . . . 71
11.5 Analysis of covariance: a nested model . . . . . . . . . . . . . . 75
11.6 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
12 Spatial analysis 79
12.1 Geographic visualisation . . . . . . . . . . . . . . . . . . . . . . 79
12.2 Setting up a co¨ ordinate system . . . . . . . . . . . . . . . . . . 83
12.3 Loading add-in packages . . . . . . . . . . . . . . . . . . . . . . 84
12.4 Creating a spatially-explicit object . . . . . . . . . . . . . . . . 85
12.5 More geographic visualisation . . . . . . . . . . . . . . . . . . . 86
12.6 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
13 Spatial structure 88
13.1 Spatial structure: trend . . . . . . . . . . . . . . . . . . . . . . . 88
13.2 Spatial structure: local . . . . . . . . . . . . . . . . . . . . . . . 91
13.3 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
14 Spatial structure of field halves 94
14.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
15 The effect of plot size 97
15.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
16 Wrapup 108
References 109
Index of R concepts 112
A Example Data Set 114
B Colours 115
附件列表
1.PDF
大小:2.34 MB
只需: 2 个论坛币
马上下载
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
全部回复
沙发
yinjj
2009-11-4 09:28:59
thanks a lot!
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
藤椅
陈紫瑄
2010-8-22 10:14:03
谢谢楼主了。。
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
板凳
cjczm
2010-8-31 22:11:33
没金币了,能发给我一个吗?谢谢!!!!!!!!!!!
cjc_1977@sina.com
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
报纸
潭生.经济学笔记
2014-12-1 18:09:04
Contents
1 Introduction 1
2 R basics 1
2.1 Leaving R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 Loading and examining a data set 7
3.1 Reading a CSV file into an R object . . . . . . . . . . . . . . . 7
3.2 Examining a dataset . . . . . . . . .
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
相关推荐
Statistical Data Analysis Explained Applied Environmental Statistics with R
R: A Language and Environment for Statistical Computing
[下载] Statistical Analysis of Environmental Space-Time Processes
Statistical Data Analysis Explained: Applied Environmental Statistics with R
Stat-JR
Statistical Data Analysis Explained Applied Environmental Statistics with R
springgerbook2006:Statistical Analysis of Environmental Space-Time Processes
Statistical Data Analysis Explained: Applied Environmental Statistics with R
分享:R: A Language and Environment for Statistical Computing Reference Index
Accounting for Environmental Effects and Statistical Noise
栏目导航
R语言论坛
经管文库(原现金交易版)
金融工程(数量金融)与金融衍生品
金融实务版
真实世界经济学(含财经时事)
求助成功区
热门文章
CDA 数据分析师:主成分分析(PCA)实战指南 ...
Business Research Methods 14th Edition b ...
Probabilistic Data-Driven Modeling by To ...
2025设计行业AI应用趋势报告
共同基金常识
中国城市建设统计年鉴2002-2024 中国城乡建 ...
【华泰证券】游戏出海坚韧,融合中谋发展
Introduction to Analysis-William R·Wade
旅游行业:中国赴日游趋势洞察报告2025
Real Algebraic Geometry- Jacek Bochnak
推荐文章
AI狂潮席卷学术圈,不会编程也能打造专属智 ...
最快1年拿证,学费不足5W!热门美国人工智能 ...
关于如何利用文献的若干建议
关于学术研究和论文发表的一些建议
关于科研中如何学习基础知识的一些建议 (一 ...
一个自编的经济学建模小案例 --写给授课本科 ...
AI智能体赋能教学改革: 全国AI教育教学应用 ...
2025中国AIoT产业全景图谱报告-406页
关于文献求助的一些建议
几种免费下载文献的方法----我的文献应助经
说点什么
分享
微信
QQ空间
QQ
微博
扫码加好友,拉您进群
各岗位、行业、专业交流群