0
$\begingroup$

I am trying to find the p-value to test a null hypothesis using a Standard Two-Sample t-Test. Usually I would use

tsum.test(mu1, sd1, n1, mu2, sd2, n2, 
          conf.level=0.95, var.equal=TRUE)

but I am not given mu1 or mu2 or sd1 or sd2. Instead, I am given mean difference d=2.7 and standard deviation sdd=15.9 and n is 171 matched pairs. What code do I use to find the Standard Two-Sample t-Test?

$\endgroup$
5
  • $\begingroup$ Welcome to Cross Validated! Do you mean that this is a paired test? A paired test is not the same as a two-sample test, despite there seeming to be two groups. A paired test is a one-sample test on the differences between pairs. The distinction will affect your results. $\endgroup$
    – Dave
    Commented Oct 31, 2023 at 18:54
  • $\begingroup$ It is not clear to me which I am supposed to do, which I know doesn't help for context. We can assume I am looking for a paired one sample test $\endgroup$
    – user399677
    Commented Oct 31, 2023 at 19:50
  • $\begingroup$ Splendid, so then what are the equations for such a test? (Remember that a paired test turns out to be, at least in some sense, a one-sample test, so if you have the one-sample test equations, you have what you need.) $\endgroup$
    – Dave
    Commented Oct 31, 2023 at 20:09
  • $\begingroup$ tsum.test(2.7,15.9,171,var.equal = TRUE, conf.level = 0.95) is the code I think I would use $\endgroup$
    – user399677
    Commented Oct 31, 2023 at 20:42
  • 1
    $\begingroup$ But what are the equations? $\endgroup$
    – Dave
    Commented Oct 31, 2023 at 20:43

0

Browse other questions tagged or ask your own question.