Re: [R] linearHypothesis and factors

2012-07-09 Thread Waikato_alex
Dear John, Thank you very much for your help - I really appreciate it. Sorry the questions was obviously rather basic, I did consult the ?linearHypothesis file but haven't worked with matchCoefs() before so didn't quite see how I could use it. Anyway, many thanks and much appreciated, Alex -- V

[R] linearHypothesis and factors

2012-07-09 Thread Waikato_alex
Hi everyone, I'm sure this is pretty basic but I couldn't find a clear example of how to do this. I'm running a regression, say: reg <- lm(Y ~ x1 + year) where x1 is a continuous variable and year is a factor with various year levels. Individually, each year factor variable is not significant, b