add_temporal_lag_columns: Add lagged temporal predictor columns

View source: R/data_prep_lags.R

add_temporal_lag_columnsR Documentation

Add lagged temporal predictor columns

Description

Adds eligible lag-1 raw, within-person, and APIM GMC source columns. Values are matched at exactly time - 1; gaps are not bridged. Stable between-person components are not lagged.

Usage

add_temporal_lag_columns(data)

Arguments

data

A dyadMLM_data object returned by prepare_dyad_data().

Value

A dyadMLM_data object with lagged temporal predictor columns and updated predictor metadata.


dyadMLM documentation built on Oct. 28, 2026, 1:06 a.m.