经管之家App
让优质教育人人可得
立即打开
全部版块
我的主页
›
论坛
›
数据科学与人工智能
›
数据分析与数据科学
›
R语言论坛
Using the R Environment for Statistical Computing
楼主
zbwang729
2610
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语言论坛
世界经济与国际贸易
经管高考
爱问频道
金融学(理论版)
金融实务版
热门文章
科研时间70%耗在“下载-复制-粘贴”?零代码 ...
精准匹配,菁英相伴--经管之家单身俱乐部, ...
CDA 认证考试大纲 2025 重磅更新:一二级考 ...
我该如何记住你?智能体记忆系统的演化之路
2026年Agent领域十大趋势判断
低空经济发展报告(2025-2026)
202601-中国智能驾驶行业趋势白皮书
油罐车加油系统,全球前10强生产商排名及市 ...
现代数学基础 现代极限理论及其在随机结构中 ...
无上高明的“无为”“无住”哲学在传统中国
推荐文章
2026JG学术冬训营:从Stata初高到Python机器 ...
【必看】【本版版规,欢迎发悬赏贴求助】
26年寒假天津站|Gemini论文写作&数据分析 ...
关于如何利用文献的若干建议
关于学术研究和论文发表的一些建议
关于科研中如何学习基础知识的一些建议 (一 ...
一个自编的经济学建模小案例 --写给授课本科 ...
AI智能体赋能教学改革: 全国AI教育教学应用 ...
2025中国AIoT产业全景图谱报告-406页
关于文献求助的一些建议
说点什么
分享
微信
QQ空间
QQ
微博
扫码加好友,拉您进群
各岗位、行业、专业交流群