Manipulating Data Elements in R

profilemsweetpea_17

  

Using R, 

1. Create a linear model to represent the coefficients for the objects fw2 and fwe data. Use the Summary command to show the results of the simple regression analysis.

2. Obtain the confidence intervals for the linear models created in step 3 for the for the fw2 and fwe data.

3. Use the fitted() command to extract the model fitted values for the linear models created in step 3 for the for the fw2 and fwe data. 

4. Using the resid() command, obtain the residuals for the linear models created in step 3 for the for the fw2 and fwe data.

  • 4 years ago
  • 16
Answer(0)