Question
Below is data on the length and weight of a sample of 10 low birth weight infants (Table B.23 in the textbook): Length (cm) Weight
Below is data on the length and weight of a sample of 10 low birth weight infants (Table B.23 in the textbook): Length (cm) Weight (g) 32 880 39 1130 38 1140 39 1350 37 950 39 1220 38 980 42 1480 39 1250 38 1250 (a) (Not marked.) Enter the data as two vectors in R. Then, save them to a single dataframe. (b) Use R to create a scatterplot of the data, with weight as the response variable. (c) Use R to calculate the correlation between the two variables. What does this value tell us about the relationship between length and weight of low birth weight infants? (d) What is the correlation between length and weight, when weight is measured in kilograms (instead of grams)? Show your work, or explain your reasoning
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