[R] Testing year effect in lm() ***failed first time, sending again

Mark Difford mark_difford at yahoo.co.uk
Wed Aug 5 18:52:26 CEST 2009


Emmanuel,

>> somewhat incomplete  help pages : what in h*ll are valid arguments to
>> mcp() beyond "Tukey" ??? Curently, you'll have to dig in the source to
>> learn that...).

Not so: they are clearly stated in ?contrMat.

Regards, Mark.


Emmanuel Charpentier-3 wrote:
> 
> Le jeudi 30 juillet 2009 à 16:41 -0600, Mark Na a écrit :
>> Dear R-helpers,
>> 
>> I have a linear model with a year effect (year is coded as a factor),
>> i.e.
>> the parameter estimates for each level of my year variable have
>> significant
>> P values (see some output below) and I am interested in testing:
>> 
>> a) the overall effect of year;
>> b) the significance of each year vis-a-vis every other year (the model
>> output only tests each year against the baseline year).
> 
> install.packges("multcomp")
> help.start()
> 
> and use the vignettes ! They're good (and are a good complement to
> somewhat incomplete  help pages : what in h*ll are valid arguments to
> mcp() beyond "Tukey" ??? Curently, you'll have to dig in the source to
> learn that...).
> 
> HTH
> 
> 					Emmanuel Charpentier
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> 

-- 
View this message in context: http://www.nabble.com/Testing-year-effect-in-lm%28%29-***failed-first-time%2C-sending-again-tp24748526p24832337.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list