- formula
Symbolic formula of the model to be tested or an lm object.
- pred
A character indicating the variable name of the predictor which serves as the outcome in the alternative model.
- mod
A character indicating the variable name of the moderator.
- modval
Characters or a numeric sequence specifying the moderator
values used in post-hoc probing. Possible characters include
c("mean", "median", "JN").modval = "mean"
tests the interaction effect at the moderator values
M – 1SD, M, and M + 1SD;
modval = "median" uses Q1, Md,
and Q3. The Johnson-Neyman approach is applied
when modval = "JN" with conditional effects being
evaluated at the boundary values of the significance
regions. When a numeric sequence is specified,the
pick-a-point approach is used for the selected numeric values.
- data
A required data frame containing the variables in the model.
- hetero
A logical value indicating whether separate homoscedasticity tests should be returned when using summary, default is FALSE.
- diff
A logical value indicating whether differences in HSIC, dCor, and MI values should be computed. Bootstrap confidence intervals are computed using B bootstrap samples.
- nlfun
Determines handling of non-linear correlation tests depending on the function used:
For cdda.indep: Either a numeric value or a function of .Primitive type used for non-linear correlation tests. When numeric, the value is used in a power transformation.
For summary: A logical value indicating whether non-linear correlation tests should be returned in the output. Default is FALSE.
- hsic.method
A character indicating the inference method for the Hilbert-Schmidt Independence Criterion. Must be one of the four specifications c("gamma", "eigenvalue", "boot", "permutation").hsic.method = "gamma" is the default.
- B
Number of permutations for separate dCor tests and number of resamples when hsic.method = c("boot", "permutation") or diff = TRUE.
- boot.type
A character indicating the type of bootstrap confidence intervals. Must be one of the two specifications c("perc", "bca"). boot.type = "perc" is the default.
- conf.level
Confidence level for bootstrap confidence intervals.
- parallelize
A logical value indicating whether bootstrapping is performed on multiple cores. Only used if diff = TRUE.
- cores
A numeric value indicating the number of cores. Only used if parallelize = TRUE.
- ...
Additional arguments to be passed to the function.
- x
An object of class cdda.indep when using print or plot.
- stat
A character indicating the CDDA statistic to be plotted with the options c("hsic.diff", "dcor.diff", "mi.diff").
- ylim
A numeric vector of length 2 indicating the y-axis limits if NULL, the function will set the limits automatically.
- object
An object of class cdda.indep when using summary.
- hsic
A logical value indicating whether deparate HSIC tests should be returned when using summary, default is TRUE.
- hsic.diff
A logical value indicating whether HSIC difference statistics should be returned when using summary, default is FALSE.
- dcor
A logical value indicating whether separate Distance Correlation (dCor) tests should be returned when using summary, default is TRUE.
- dcor.diff
A logical value indicating whether dCor difference statistics should be returned when using summary, default is FALSE.
- mi.diff
A logical value indicating whether Mutual Information (MI) difference statistics should be returned when using summary, default is FALSE.