讲解:Quantitative Methods、R、Politics、RPython|Java

Cologne Center for Comparative PoliticsIntroduction to Quantitative Methods -- Fall 2018Bruno Castanho SilvaAssignment 3Please complete this assignment in R Markdown, including your code and results. Uploadonly the “.rmd” file. Make sure it knits into a pdf of no more than 3 pages before uploading.This assignment will count 15% towards your final grade. The deadline to upload it isNovember 13, at 23:55 Central European Time. Do upload your work even if you were notable to complete one or a few of the tasks, so you can still receive partial credit.Each student must write and submit their own individual answers.This time we are using data from the World Values Survey, wave 6 (data attached, in the filewvs6.dta). The WVS codebook is attached, as “WV6_Codebook_v_2014_11_07.xls”.Tip: use the following command to read the data:wvsTasks:1) For the entire assignment, you will work with only a subset of the data. Select thecountry according to your date of birth, following the table at the end of thisdocument. Example: if you were born on the 17th of the month, subset the data toinclude only respondents from Kazakhstan, following the country codes in variableV2.2) Provide descriptive statistics for basic demographic characteristics of this sample.For example (but not necessarily) in terms of levels of education, male/female ratio,or age.3) Pick any continuous (numerical) variable in which you are interested. This will beyour dependent variable for the rest of the assignment.a) What are its mean, median, and standard deviation?b) How is it distributed? Is it close to normal?c) Select a binary variable that divides respondents into two groups and run atwo-samples t-test, where the DV is the continuous variable you were justworking with. Is there a significant difference between the two groups? Give aquick substantive (social scientific) interpretation in 2-3 sentences.d) Produce a graph to convey this result (options include, but are not limited to,a density plot or a bar plot).4) Now select another continuous variable you might be interested. How much does itcorrelate with the previous? Is there a reasonable theoretical explanation for thecorrelation (or lack thereof)? Show their correlation with a scatterplot that containsalso a linear regression line between the two and 95% confidence intervals.5) Now, build a regression model to explain that continuous dependent variable. Includeas independent variables the binary variable used in question 3, the continuousvariable used in question 4, and any other controls that may be relevant. In oneparagraph, interpret the results.Table for countries:Birthday Country Birthday Country1 Taiwan 17 Kazakhstan2 Algeria 18 Jordan3 Colombia 19 Brazil4 Ecuador 20 South Korea5 Azerbaijan 21 Kuwait6 Argentina 22 Kyrgyztan7 Australia 23 Lebanon8 Estonia 24 Belarus9 Bahrain 25 Libya10 Palestine 26 Malaysia11 Armenia 27 Mexico12 Germany 28 Morocco13 Hong Kong 29 Netherlands14 India 30 Chile15 Iraq 31 China16 Japan转自:http://ass.3daixie.com/2018111035049991.html

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容