withinParTable: Within-Person N Adjustment for ParTable

View source: R/withinParTable.R

withinParTableR Documentation

Within-Person N Adjustment for ParTable

Description

The standard 'parTable' in lavaan does not provide correct degrees of freedom when working with a deviation-score data file; this corrects that

Usage

withinParTable(fit, data)

Arguments

fit

standard output from an sem(...) statement in lavaan

data

original 'long' format data frame that was used in sem(...) statement

Details

(This may become outdated as procedures for doing multilevel analyses with field models become further developed. It should also substantially underestimate significance, I believe if 3 or more observations are within-person)

Value

parTable in which se, z, and p statistics are adjusted to person level


Dustin-Wood/funfield documentation built on July 20, 2023, 7:10 a.m.