This function computes dMod
function may be used
as a wrapper to this function so that the regression equations and descriptive statistics can
be computed automatically within the program.
compute_dmod_par(
referent_int,
referent_slope,
focal_int,
focal_slope,
focal_mean_x,
focal_sd_x,
referent_sd_y,
focal_min_x,
focal_max_x,
focal_names = NULL,
rescale_cdf = TRUE
)
A matrix of effect sizes (
focal_min_x
and focal_max_x
values were
specified, the extrema will be defined using the scores 3 focal-group SDs above and below the corresponding focal-group means.
Referent group's intercept.
Referent group's slope.
Focal groups' intercepts.
Focal groups' slopes.
Focal groups' predictor-score means.
Focal groups' predictor-score standard deviations.
Referent group's criterion standard deviation.
Focal groups' minimum predictor scores.
Focal groups' maximum predictor scores.
Focal-group names. If NULL
(the default), the focal groups will be given numeric labels ranging from 1 through the number of groups.
Logical argument that indicates whether parametric TRUE
; default) or not (FALSE
).
The
the integral spans all
The
The
The
The
If rescale_cdf
argument), the result of each
effect size involving integration will be divided by the ratio of the cumulative density of the observed range of scores (i.e., the range bounded by the focal_min_x
and focal_max_x
arguments) to the cumulative density of scores bounded by -Inf
and Inf
.
Nye, C. D., & Sackett, P. R. (2017). New effect sizes for tests of categorical moderation and differential prediction. Organizational Research Methods, 20(4), 639–664. tools:::Rd_expr_doi("10.1177/1094428116644505")
compute_dmod_par(referent_int = -.05, referent_slope = .5,
focal_int = c(.05, 0, -.05), focal_slope = c(.5, .3, .3),
focal_mean_x = c(-.5, 0, -.5), focal_sd_x = rep(1, 3),
referent_sd_y = 1,
focal_min_x = rep(-Inf, 3), focal_max_x = rep(Inf, 3),
focal_names = NULL, rescale_cdf = TRUE)
Run the code above in your browser using DataLab