[R] lsmeans in R

2009-03-11 Thread suman Duvvuru
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.


Re: [R] lsmeans in R

2009-03-11 Thread Chuck Cleland
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@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

__
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.


Re: [R] lsmeans in R

2009-03-11 Thread John Fox
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.