Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Week 2 R Exercises INSERT YOUR NAME HERE! Below are questions to answer using R , based on the documents you just read. Enter your
Week R Exercises
INSERT YOUR NAME HERE!
Below are questions to answer using R based on the documents you just read. Enter your answers in the
Rmd file, using the space provided below each question! When you are done, you should be able to click the
Knit button and see a pretty version of your assignment.
Answer the following questions using the cdc data that we used in the Intro to Data document.
If you run the command below, you will see a graph of peoples weights xaxis versus their desired
weights yaxis Describe the relationship between these two variables.
ENTER TEXT FOR YOUR ANSWER HERE.
## run this command:
plotcdc$weight, cdc$wtdesire, xlab"Weight", ylab"Desired weight"
Lets consider a new variable: the difference between desired weight wtdesire and current weight
weight Create this new variable by subtracting the two columns in the data frame and assigning
them to a new object called wdiff.
ENTER TEXT FOR YOUR ANSWER HERE.
# ENTER YOUR R COMMANDS HERE
# YOU CAN ADD LINES IF NEEDED
What type of data is wdiff? If an observation wdiff is what does this mean about the persons
weight and desired weight. What if wdiff is positive or negative?
ENTER TEXT FOR YOUR ANSWER HERE.
# ENTER YOUR R COMMANDS HERE
# YOU CAN ADD LINES IF NEEDED
Describe the wdiff variable, using commands from the Intro to Data document. What does this tell
us about how people feel about their current weight?
ENTER TEXT FOR YOUR ANSWER HERE.
# ENTER YOUR R COMMANDS HERE
# YOU CAN ADD LINES IF NEEDED
Using numerical summaries and a sidebyside box plot, determine if men tend to view their weight
differently than women.
ENTER TEXT FOR YOUR ANSWER HERE.
# ENTER YOUR R COMMANDS HERE
# YOU CAN ADD LINES IF NEEDED
Now its time to get creative. Find the mean and standard deviation of weight and determine what
percentage of the weights are within one standard deviation o
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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