0
$\begingroup$

Here I described my general situation. How to calculate 95%CI between means in R?

$\endgroup$
6
  • $\begingroup$ You may want to reiterate the details of your design on this question. Is your design repeated measures or between subjects? Are you going to assume normally distributed errors? $\endgroup$ Commented Sep 26, 2011 at 0:40
  • $\begingroup$ @Jeromy Anglim: thanks for your questions :)! Here I was answered that my design is one way RM ANOVA. And it is within-subject as far as I understand... And I want to calculate 95%CI instead of post hoc tests... $\endgroup$
    – abc
    Commented Sep 26, 2011 at 3:11
  • $\begingroup$ ...as here @John advised me to "report the standard confidence intervals of the effects in question". Jeromy, I have a counter-question: the term within (and/or between)-subject design is more general than, for instance, ANOVA or RM ANOVA and so on, isn't it? $\endgroup$
    – abc
    Commented Sep 26, 2011 at 3:11
  • $\begingroup$ I guess I'm trying to set the question title and the text of this question to stand alone for future readers. Thus, I think the title of this question and the content should make it clear what kind of confidence interval you are interested in. The two most common confidence interval scenarios for comparing means are probably those for repeated measures t-test and independent groups t-test, hence my question. $\endgroup$ Commented Sep 26, 2011 at 3:31
  • $\begingroup$ @Jeromy: please suspend the question. I have to think about the modification... $\endgroup$
    – abc
    Commented Sep 26, 2011 at 4:05

1 Answer 1

2
$\begingroup$

That depends on a bunch of things. One easy way to do it might be just to calculate t-tests for each one. Part of the output is the confidence interval of the effect.

t1 <- t.test( A, B, paired = TRUE )
t1$estimate # the effect in question
t1$conf.int # the confidence interval of the effect
$\endgroup$
0

Not the answer you're looking for? Browse other questions tagged or ask your own question.