1. 学习
  2. /
  3. 课程
  4. /
  5. Inference for Numerical Data in R

Connected

练习

Evaluating the effectiveness of stem cell treatment (cont.)

Conduct the hypothesis test and compute the p-value for evaluating whether there is a difference between the mean heart pumping capacities of sheep's hearts in the control and treatment groups.

Since we're testing for a difference, the order in which we subtract matters. We can specify it using the order argument in the calculate() function. For example, to achieve group1 - group2 use order = c("group1", "group2").

说明 1 / 共 2 个

undefined XP
    1
    2

Generate 1000 differences in means via randomization.

  • Specify change versus treatment group.
  • Use an independence hypothesis.
  • Generate 1000 replicates via permutation.
  • Calculate the difference in means (esc first, then ctrl).