Sender: [EMAIL PROTECTED]
On-Behalf-Of: [EMAIL PROTECTED]
Subject: Re: [R] Calculating confidence limits for the difference between       
means
Message-Id: <[EMAIL PROTECTED]>
Recipient: [EMAIL PROTECTED]
--------------------------------------------------------



This information is being sent at the recipient's request or with their 
specific understanding. The recipient acknowledges that by sending this 
information via electronic means, there is no absolute assurance that the 
information will be free from third party access, use, or further 
dissemination. This e-mail contains information that is privileged and/or 
confidential and may be subject to legal restrictions and penalties regarding 
its unauthorized disclosure or other use. You are prohibited from copying, 
distributing or otherwise using this information if you are not the intended 
recipient. Past performance is not necessarily indicative of future results. 
This is not an offer of or the solicitation for any security which will be made 
only by private placement memorandum that may be obtained from the applicable 
hedge fund. If you have received this e-mail in error, please notify us 
immediately by return e-mail and delete this e-mail and all attachments from 
your system. Thank You.
--- Begin Message ---
On Wed, Oct 22, 2008 at 11:09 AM, Dennis Fisher <[EMAIL PROTECTED]> wrote:
> Colleagues,
>
> I am working on a problem at the edge of my knowledge of statistics.
>
> Basically, I have values for two groups - I am trying to calculate the
> 90% confidence limits for the difference between means.  I can
> implement this without difficulty based on standard equations that are
> available in stat textbooks: (difference between means) / (pooled
> standard error)
>
> My problem arises when I try to correct for the value of a covariate.
> I can do the ANOVA with the covariate as a factor.  But, I don't know
> how to use the output to obtain the confidence limits of the difference.


Generally 'factor' refers to qualitative variables and 'covariate' to
quantitative, but if you are looking to estimate the difference in two
means using an ANCOVA perhaps something like...

fit <- lm(y ~ trt + covar) # trt is a 2-level factor and covar is quantitative
confint(fit, level = .90)

hth,

Kingsford Jones


>
> I suspect that several participants in this board have implemented
> code to so this.  I hope that someone is willing to share the code.
>
> Thanks in advance.
>
> Dennis
>
>
> Dennis Fisher MD
> P < (The "P Less Than" Company)
> Phone: 1-866-PLessThan (1-866-753-7784)
> Fax: 1-415-564-2220
> www.PLessThan.com
>
>
>        [[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.

--- End Message ---
______________________________________________
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.

Reply via email to