avgLagR: Average Lag Correlation over Over Measurement Interval, r_|d|

View source: R/avgLagR.R

avgLagRR Documentation

Average Lag Correlation over Over Measurement Interval, r_|d|

Description

Estimate the average correlation between the variables within the set over a two-wave interval (d; generally a period of time, or number of items apart). Diagonals will be retest correlations over that interval.

Note: Can be converted to a sort of 'reliability-adjusted matrix' by cov2cor(rd), which will index the degree to which correlations between variables over measurement interval (d; generally a period of time, or number of items apart) are smaller than the retest correlations of the variables over that interval (see Wood, Lowman, Armstrong, Harms, 2022)

For instance: phat_xy(d) = .80 indicates that the correlation between x and y over measurement interval t is 80% of the retest correlations of X and Y (i.e., their correlations with themselves) over the same measurement interval.

Importantly: x1 and x2 should be the same set of variables, given in the same order, but rated at different times. For instance, x1 and x2 may be the first and second administrations of the items in some personality inventory a year apart (or: a month, a day, etc).

Usage

avgLagR(x1, x2)
phat.t(x1, x2, posdef = "Higham")

Arguments

x1

first matrix to be used to estimate correlations

x2

second matrix to be used (all variables should be the same as x1, and in the same order!!)

posdef

adjust correlations to make the matrix positive definite? ("Bock", "Higham", and default = FALSE)


funfield-lab/fancyr documentation built on Nov. 21, 2023, 2:42 p.m.