Skip to contents

Build composites from wide dyadic data, reshape to long format, and fit a one-way random effects model to estimate the intraclass correlation (ICC). Used internally when model = "ICC_LMM" in fit_dyadic_model.

Usage

fit_icc_model(dat, dvn)

Arguments

dat

Data frame with indicator variables (e.g., x1_A, x2_A, x1_B, x2_B).

dvn

Dvn from dySEM::build_dvn() or dySEM::scrapeVarCross() with p1xvarnames and p2xvarnames.

Value

Fitted lmerMod object from dyLMM::fitICC, or NULL on failure.

See also

Other analysis: fit_dyadic_model()