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
讲解:Quantitative Methods、R、Politics、RPython|Java
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 闹也闹了,醉也醉了…… 人生如戏,我们都是演员,在生活的这本故事里扮演着自己的角色,在自己的故事里出演一号,却可能...