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. Regards, John > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of suman Duvvuru > Sent: March-11-09 2:45 AM > To: r-help@r-project.org > Subject: [R] lsmeans in R > > 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. > > Thanks, > SUman > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. ______________________________________________ R-help@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.