APIM_sem | R Documentation |
APIM_sem(
data,
mod_type,
predictor_a,
predictor_p,
outcome_a,
outcome_p,
med_a = NULL,
med_p = NULL,
mod_a = NULL,
mod_p = NULL,
bootstrap = NULL,
standardized = FALSE,
return_result = FALSE,
quite = FALSE
)
data |
data frame object |
mod_type |
options are "simple" (main effect), "med" (mediation), and "mod" (moderation) |
predictor_a |
predictor variable name for actor |
predictor_p |
predictor variable name for partner |
outcome_a |
dependent variable name for actor |
outcome_p |
dependent variable name for partner |
med_a |
mediation variable name for actor |
med_p |
mediation variable name for partner |
mod_a |
moderation variable name for actor |
mod_p |
moderation variable name for partner |
bootstrap |
number of bootstrapping (e.g., 5000). Default is not using bootstrap |
standardized |
standardized coefficient |
return_result |
return |
quite |
suppress printing output. Default is |
Actor-partner interdependence model using SEM approach (with lavaan). Indistinguishable dyads only. Results should be the same as those from Kenny (2015a, 2015b).
data.frame from lavaan::parameterestimates()
Kenny, D. A. (2015, October). An interactive tool for the estimation and testing mediation in the Actor-Partner Interdependence Model using structural equation modeling. Computer software. Available from https://davidakenny.shinyapps.io/APIMeM/. Kenny, D. A. (2015, October). An interactive tool for the estimation and testing moderation in the Actor-Partner Interdependence Model using structural equation modeling. Computer software. Available from https://davidakenny.shinyapps.io/APIMoM/. Stas, L, Kenny, D. A., Mayer, A., & Loeys, T. (2018). Giving Dyadic Data Analysis Away: A User-Friendly App for Actor-Partner Interdependence Models. Personal Relationships, 25 (1), 103-119. https://doi.org/10.1111/pere.12230.
APIM_sem(data = acitelli,
predictor_a = 'Tension_A',
predictor_p = 'Tension_P',
outcome_a = 'Satisfaction_A',
outcome_p = 'Satisfaction_P',
mod_type = 'simple')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.