mpa(formula, data, moderator, k = 100, na.action = "na.fail",
stage2 = FALSE)
formula
of the form response ~ terms
.critpat
is returned, listing the following components:
r2_full
- the proportion of variability attributed to the full modelr2_red
- the proportion of variability attributed to the reduced modelftable
- the associated F-statistic tableF-statistic
- the F-statisticsdf
- the dfs used in the testpvalue
- the p-values for the testna.action = "na.omit"
, which performs listwise deletion and na.action = "na.fail"
, the default, which causes the function to fail. The following S3 generic functions are not yet available but will be in future implementations. summary()
,anova()
, print()
, and plot()
. These functions provide a summary of the analysis (namely, R2 and the level and pattern components); perform ANOVA of the R2 for the pattern, the level, and the overall model; provide output similar to lm()
, and plots the pattern effect.cpa
data(mod_data)
mod <- mpa(dv ~ pred1 * mod + pred2 * mod, moderator = "mod", data = mod_data)
Run the code above in your browser using DataLab