Re: [R] relationship between t-test CI and SEM?

From: Daniel Nordlund <res90sx5_at_verizon.net>
Date: Sun, 09 Mar 2008 22:10:23 -0700

> -----Original Message-----
> From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf
> Of Rob Campbell
> Sent: Sunday, March 09, 2008 9:19 PM
> To: r-help_at_r-project.org
> Subject: [R] relationship between t-test CI and SEM?
>
> Hi,
>
> I have what is probably a stupid question but I'm confused so here goes:
>
> - I have a distribution (n=100) and want to determine if the mean is
> significantly different from 0.5.
> - When I plot the 2-tailed 95% confidence limits for the standard error
> of the mean I find that the upper one just overlaps with 0.5. I was
> under the impression that this would lead me to conclude that there was
> no significant difference between the sample mean and 0.5.
> - However, when I perform a t-test it tells me that my mean /is/
> significantly different from 0.5. The confidence intervals returned by
> the t-test don't seem to match with the SEM I calculated (lm does return
> the same intervals).
>
> I have tried this in both R and matlab with the same results. So I think
> I'm calculating things right. Am I misinformed about the interpretation
> of the SEM? What are the confidence limits returned by the t-test (they
> bear no relationship to the SEM)?
>
>
> Thanks!
>
> Rob
>
Rob,

It would help if you showed how you were computing the SEM, rather than telling us you are doing it correctly (the posting guide does ask you to provide commented, minimal, self-contained, reproducible code). When I calculate the SEM I get the same value produced by t.test().

Dan

Daniel Nordlund
Bothell, WA



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. Received on Mon 10 Mar 2008 - 05:16:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 10 Mar 2008 - 14:00:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive