...

/

Solution: Perform Analysis of Covariance (ANCOVA) and Plot

Solution: Perform Analysis of Covariance (ANCOVA) and Plot

Let's look at the solution of the previous exercise.

Solution

As we mentioned while giving the exercise, the assignment consists of two steps:

  1. We need to pick a pair of continuous variables.
  2. We need to use predict() to plot it.

This lesson provides one example of a possible answer we might get, and hopefully, that’ll give us an idea as to how we can make a figure like this.

We’re using the effect of resources on final mass at metamorphosis, controlling for variation in age at metamorphosis.

Perhaps the simplest thing we could do is change the response variable. Instead of looking at SVL, let’s examine mass. To make the example a little more interesting, let’s use Res ...