| 所在主题: | |
| 文件名: gini.txt | |
| 资料下载链接地址: https://bbs.pinggu.org/a-775137.html | |
| 附件大小: | |
|
主要是第二问的解答,用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. |
|
熟悉论坛请点击新手指南
|
|
| 下载说明 | |
|
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。 2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。 3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。 (如有侵权,欢迎举报) |
|
京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明