[R] lsmeans in R

John Fox jfox at mcmaster.ca
Wed Mar 11 13:46:43 CET 2009

Dear Suman,

Chuck Cleland has already pointed you toward a reasonably complete
discussion of the topic (thank you Chuck). To update my contribution to that
discussion, the effects package now uses t-intervals for models with an
estimated dispersion parameter (such as linear models) and will create
displays for multinomial and proportional-odds logit models. (The latter
isn't relevant to your intended application, of course.)

Beyond that, I don't quite understand your question. Adjusted means are
fitted values, and this is what the effects package gives you for linear
models. Maybe you could explain in more detail what it is that you want and
why you think that you're not getting it.


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
> Behalf Of suman Duvvuru
> Sent: March-11-09 2:45 AM
> To: r-help at r-project.org
> Subject: [R] lsmeans in R
> I need help with calculating lsmeans (adjusted means) of different terms
> a linear model including the main effect and the interaction effect terms.
> 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
> give an example of how to get lsmeans using lm object, that will very
> helpful.
> 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
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list