0
$\begingroup$

I need to explore the determinants of wheat yield using multiple regression. There are 120 observations. Do I need to use ANOVA? I am using R studio. My results need to include a consideration of more than one functional form, one or more interaction terms for a select set of variables, and the use of dummy variables.

Variable Descriptions:

yld wheat yield in kg/ha  
R Growing season rainfall (mm)  
N nitrogen fertilization rate (kg/ha)  
PrevCereal 1 if precious crop was a cereal, 0 otherwise  
RegionCode Location code (0/1)  
$\endgroup$
4
  • 1
    $\begingroup$ It's all just multiple regression, but some people might refer to this kind of thing as ANCOVA I guess. ... Is this homework? $\endgroup$
    – Glen_b
    Oct 13, 2012 at 7:12
  • $\begingroup$ Thanks for your reply. I thought I would need to use a two way ANOVA? It's an assignment for university. $\endgroup$
    – Sarah
    Oct 13, 2012 at 7:46
  • 2
    $\begingroup$ The use of dummy variables doesn't change the method of analysis, really. ANOVA and ANCOVA and multiple regression are all the same model; in matrix algebra form $Y = XB + e$ $\endgroup$
    – Peter Flom
    Oct 13, 2012 at 12:35
  • $\begingroup$ You should first read up on what ANOVA/ANCOVA really is before going further. There's a number of documents that wheel-train you through regression using R, this one being only one of them: cran.r-project.org/doc/contrib/Faraway-PRA.pdf $\endgroup$ Oct 26, 2012 at 7:58

1 Answer 1

3
$\begingroup$

Just a simple guide as it's an assignment - don't want to ruin all the fun.

I often use the rms package.

  1. Enter your model with splines for the continuous variables (use the rcs() spline as it works best with the rms package) and any possible interactions.
  2. Check the general model assumptions - if you have issues try bootstrapping with the bootcov() function
  3. Check overall ANOVA with the anova() function in the rms package, it has very nice built-in tests for non-linearity that are very useful.
  4. Rebuild your model depending on the ANOVA results

Hope this helps!

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.