powered by
Compute mean differences by various quantiles
qtile_mean_diffs(formula, data, qtiles = seq(0, 1, 0.33))
A formula of the type out ~ group where out is the outcome variable and group is the grouping variable. Note the grouping variable must only include only two groups.
out ~ group
out
group
The data frame that the data in the formula come from.
Quantile bins for calculating mean differences
# NOT RUN { qtile_mean_diffs(reading ~ condition, star) qtile_mean_diffs(reading ~ condition, star, qtiles = seq(0, 1, .2)) # }
Run the code above in your browser using DataLab