# The following example is derived from the "indt_data" dataset in MOTE.
hyp <- t.test(correctq ~ group, data = indt_data)
# Direct entry of the t-statistic and sample sizes:
d_ind_t_t(t = -2.6599, n1 = 4, n2 = 4, a = .05)
# Using the t-statistic from the model object:
d_ind_t_t(hyp$statistic, length(indt_data$group[indt_data$group == 1]),
length(indt_data$group[indt_data$group == 2]), .05)
Run the code above in your browser using DataLab