# example code
data("data_penlaptop1")
estimate <- esci::estimate_mdiff_two(
data = data_penlaptop1,
outcome_variable = transcription,
grouping_variable = condition,
switch_comparison_order = TRUE,
assume_equal_variance = TRUE
)
# Test mean difference against point null of 0
esci::test_mdiff(
estimate,
effect_size = "mean"
)
# Test median difference against point null of 0
# Note that t, df, p return NA because test is completed
# by interval.
esci::test_mdiff(
estimate,
effect_size = "median"
)
# Test mean difference against interval null of -10 to 10
esci::test_mdiff(
estimate,
effect_size = "mean",
rope = c(-10, 10)
)
# Test mean difference against interval null of d (-0.20, 0.20) d = 0.2 is often
# thought of as a small effect, so this test examines if the effect is
# negligible (clearly between negligble and small), substantive (clearly more
# than small), or unclear. The d boundaries provided are converted to raw scores
# and then the CI of the observed effect is compared to the raw-score boundaries
esci::test_mdiff(
estimate,
effect_size = "mean",
rope = c(-0.2, 0.2),
rope_units = "sd"
)
Run the code above in your browser using DataLab