Part 1: install.packages ("poliscidata") The two variables you will use are: `gender and authoritarianism`. **Question 1:** Outside of code chunks, write down the null hypothesis: HO: It is likely that there is NO difference between the level of authoritarianism between men and women. **Question 2:** Complete the following codes to create two subsets of the nes data: one subset with all female respondents and one subset with all male respondent. Hint: the gender variable has two values: Female and Male. I have included codes for creating the female group. You only need to complete the codes for the male group. ***{r} library(poliscidata) female_nes <- subset(nes, gender== "Female") male_nes <- subset(nes, gender == "Male") **Question 3:** I included a summary statistic for the dependent variable `authoritarianism below. It is an ordered variable and larger number meaning more authoritarian. Outside of the code chunks, explain which is an appropriate test for the hypothesis (one-sample t-test, two-sample t-test, and paired t-test.) {r} summary(nes$authoritarianism) Mean 3rd Qu. Min. 1st Qu. Median Max. 0.000 2.000 3.000 2.391 3.000 4.000 NA's 437 ^ **Question 4:** Based on your answer in Question 3, conduct the test in R in a new code chunk. Check the lecture notes for example codes for each of the tests. **Question 5:** Based on the test results in Question 4, draw a conclusion outside of th code chunks. Can you reject the null and why? Answer in one to two sentences. Remember t mention the p-value and the level of significance.
Part 1: install.packages ("poliscidata") The two variables you will use are: `gender and authoritarianism`. **Question 1:** Outside of code chunks, write down the null hypothesis: HO: It is likely that there is NO difference between the level of authoritarianism between men and women. **Question 2:** Complete the following codes to create two subsets of the nes data: one subset with all female respondents and one subset with all male respondent. Hint: the gender variable has two values: Female and Male. I have included codes for creating the female group. You only need to complete the codes for the male group. ***{r} library(poliscidata) female_nes <- subset(nes, gender== "Female") male_nes <- subset(nes, gender == "Male") **Question 3:** I included a summary statistic for the dependent variable `authoritarianism below. It is an ordered variable and larger number meaning more authoritarian. Outside of the code chunks, explain which is an appropriate test for the hypothesis (one-sample t-test, two-sample t-test, and paired t-test.) {r} summary(nes$authoritarianism) Mean 3rd Qu. Min. 1st Qu. Median Max. 0.000 2.000 3.000 2.391 3.000 4.000 NA's 437 ^ **Question 4:** Based on your answer in Question 3, conduct the test in R in a new code chunk. Check the lecture notes for example codes for each of the tests. **Question 5:** Based on the test results in Question 4, draw a conclusion outside of th code chunks. Can you reject the null and why? Answer in one to two sentences. Remember t mention the p-value and the level of significance.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Please written by computer source
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education