how to annova for length weight relation ship
Answers
Answered by
2
Once you've entered weight and length data into corresponding columns in Excel, you'll need to (natural) log transform the data.
In R you can transform the data and fit the regression model in one motion. The code would be "model<-log(weight)~log(length)." The model coefficients (in R, use "coef(model)") will tell you the intercept (alpha) and slope (beta) of the line, where the equation is log(weight) = log(alpha) + beta*log(length). For example's sake, let's say the intercept is -4.0 and the slope 2.8.
Now we need to transform back out of the log world. We know beta is 2.8 but we need to calculate alpha by exponentiating (i.e., e^-4.0 = 0.018).
Finally, if you substitute the hypothetical numbers into the equation, you get the length-weight relationship: weight = 0.018*length^2.8.
Hope it helps u☺☺☺☺
In R you can transform the data and fit the regression model in one motion. The code would be "model<-log(weight)~log(length)." The model coefficients (in R, use "coef(model)") will tell you the intercept (alpha) and slope (beta) of the line, where the equation is log(weight) = log(alpha) + beta*log(length). For example's sake, let's say the intercept is -4.0 and the slope 2.8.
Now we need to transform back out of the log world. We know beta is 2.8 but we need to calculate alpha by exponentiating (i.e., e^-4.0 = 0.018).
Finally, if you substitute the hypothetical numbers into the equation, you get the length-weight relationship: weight = 0.018*length^2.8.
Hope it helps u☺☺☺☺
Similar questions