APIM_sem: APIM Actor-Partner Interdependence Model (SEM)

View source: R/apim_sem.R

APIM_semR Documentation

APIM Actor-Partner Interdependence Model (SEM)

Description

[Stable]

Usage

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
)

Arguments

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 lavaan::parameterestimates(). Default is FALSE

quite

suppress printing output. Default is FALSE

Details

Actor-partner interdependence model using SEM approach (with lavaan). Indistinguishable dyads only. Results should be the same as those from Kenny (2015a, 2015b).

Value

data.frame from lavaan::parameterestimates()

References

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.

Examples

APIM_sem(data = acitelli,
        predictor_a = 'Tension_A',
        predictor_p = 'Tension_P',
        outcome_a = 'Satisfaction_A',
        outcome_p = 'Satisfaction_P',
        mod_type = 'simple')
        

jasonmoy28/psycModel documentation built on Sept. 6, 2024, 11:45 a.m.