potential_interactions: Potential cross-level interactions

potential_interactionsR Documentation

Potential cross-level interactions

Description

Refits lmer model with given 'random terms' and correlates the predicted random effects with aggregated at group level variable mentioned at 'group.level.terms'

Usage

potential_interactions(
  random.terms,
  group.level.terms,
  lmer.fit,
  measure = c("correlation", "interaction")
)

Arguments

random.terms

Individual predictors that should be made random and associated with predictors (mediators) at group level

group.level.terms

Predictors (mediators) at the group level

lmer.fit

Model fitted with lmer.

measure

Character. correlation or interaction


MaksimRudnev/LittleHelpers documentation built on Nov. 5, 2024, 10:16 p.m.