Question: using R programming You collected the following data for 100 dogs and stored them in a data frame called dogs : 1. The concentration of
using R programming
You collected the following data for 100 dogs and stored them in a data frame calleddogs:
1. The concentration of "protein X" in each dog's blood, which you have stored in a column indogslabelledproteinX;
2. A "sociability score" for each dog, which you have stored in a column in dogs labelledsociability.
You want to use a linear model to test the hypothesis thatdoublingthe concentration of protein X results in alinearincrease in sociability. Which one of the following R commands would you use?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
