楼主: mymashen
1440 0

解题有奖 [推广有奖]

  • 0关注
  • 0粉丝

已卖:1份资源

硕士生

28%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
2 点
经验
1950 点
帖子
132
精华
0
在线时间
176 小时
注册时间
2010-7-29
最后登录
2013-5-29

楼主
mymashen 发表于 2010-10-18 15:27:18 |AI写论文
10论坛币
主要是第二问的解答,用R或者Matlab都可。
3. Data Analysis: (40 pts) We want to study the worldwide distribution and temporal
variation of the Gini Index of Diversity. This requires you to do research of your
own on finding map data in R (country names, country outlines etc). Download from
coursework the data in the text file gini.txt into your folder, use the command
gini=read.table("gini.txt",fill=TRUE) to read in the data. Column 3 and 5 represent
dates at which the Gini indices were measured, columns 2 and 4 contain the
indices corresponding to those dates. Column 1 contains the country.
(a) Using the command is.na (and is negation !is.na) take the subset of observations
that have all the information for both dates.
Compare the dates.
Use the subset to visualize the temporal changes of the Gini indices in the
countries where the indices have been measured at two dates. (Hint: You
have to create a non standard plot which shows as much information about the
temporal changes as possible).
(b) Make as good a map of the data as you can.
Hints: Install one of the R packages such as map or maptools. One of the data
sets available with the package will have the outlines for countries with names,
you will need to match most of the names automatically (match function) and
some of the names by hand.
(c) Interpret your output from the two questions above.

关键词:observations distribution information observation Informatio 解题

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-16 07:01