[R] lsmeans in R

Chuck Cleland ccleland at optonline.net
Wed Mar 11 09:39:20 CET 2009


On 3/11/2009 2:45 AM, suman Duvvuru wrote:
> I need help with calculating lsmeans (adjusted means) of different terms in
> a linear model including the main effect and the interaction effect terms. I
> use lm to run the linear models...I previously noted from literature that
> that "effects" package can be used to generate lsmeans. But I tried to use
> it but could not figure out which option to use to get means. If anyone can
> give an example of how to get lsmeans using lm object, that will very
> helpful.

  This R-help thread from March 2007 should help:

http://finzi.psych.upenn.edu/R/Rhelp02/archive/95809.html

> Thanks,
> SUman
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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. 

-- 
Chuck Cleland, Ph.D.
NDRI, Inc. (www.ndri.org)
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894




More information about the R-help mailing list