Question
## Keep your work organized: use hashtag headings, space out your code ## Write concise code (no redundant, unnecessary code) ## All of your calculations
## Keep your work organized: use hashtag headings, space out your code
## Write concise code (no redundant, unnecessary code) ## All of your calculations must be done manually, the "slow way".
## ## You are encouraged to double check your work using verifications discussed in lectures ##
## All of your answers must be supported by calculations for full points.
## Do not hard code final answers (i.e., do not type out values) ## Partial points can be achieved even with errors so do not panic if your code produces an error.
## Answer conceptual questions as a hashtag comment. For full marks include lecture discussions
## Clear all variables in your environment rm(list = ls()) ################################################################################# ################################################################################# ## DATASET ## Data Description: The dataset contains the data of a large heterogeneous sample of participants who completed the
## Hebrew version of the Disgust Scale Revised (DS_R), and provided various demographic variables.
## Participants were chosen from the general population, using a convenience sampling method. They were approached
## at various locations (e.g., shopping centres, transport hubs, and government buildings) during the period of ## 2011- 2012. ## Source: https://raw.githubusercontent.com/orban-classroom/Statistics-with-R/master/2019%20Spring/data/disgustscale/Berger%20and%20Anaki%20disgust%20scale%202014_1%20comma%20delimited.csv
## Load the data into a data frame (5 points)
## Remove NA values and save it as a new variable (5 points)
## Make to vectors for each sex that contains that mean disgust sensitivity column, called "Mean_general_ds"
## What is the sample size? (5 points)
## What is the sum of all scores for both males and females? (5 points)
## Generate a histogram of the mean disgust scale for each sex (5 points)
## Describe both histograms' shape (5 points)
## Based on your reading of the histogram, what is the mode of each variable? (5 points)
## What is the mean disgust sensitivity for each sex? (5 points)
## What is the median disgust sensitivity for each sex? (5 points)
## What is the range of scores each sex? (5 points)
## Create a boxplot and comment on the appearance of the graphs & compare the variables (eyeball it) (5 points)
## Compute the variance for each variable (5 points)
## Compute the standard deviation for each variable (5 points)
## For the following calculations, you will use the "Education" variable and the mean disgust scale "Mean_general_ds"
## Do not filter by sex
## Create the necessary filtered vectors for the subsequent calculations (5 points)
## Create a scatterplot between the two variables. (5 points)
## Eyeball the type of relationship they have, add describe it (5 points)
## Compute the covariance between the two variables. (5 points)
## What is the direction of the relationship? (5 points)
## What is the magnitude of the relationship? (5 points) ## Compute the correlation between the two variables. (5 points)
## What is the direction of the relationship? (5 points)
## What is the magnitude of the relationship? (5 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started