flip: Reflect Latent Variable Estimates

View source: R/flip.r

flipR Documentation

Reflect Latent Variable Estimates

Description

Identifies reflections that minimize the distance of adjacent time-points on the same latent variable

Usage

flip(data, id = "name", vars, time, ...)

Arguments

data

A data frame or tibble produced with gather_data.

id

Character string giving the name(s) of the ID variable(s) in the data.

vars

Variables to be evaluated for reflection. Generally, these would be all of the DimX variables.

time

Character string giving the time variable in the data set.

...

Other arguments to be passed down, currently not implemented.

Value

A data frame with time and a flip indicator for each evaluated dimension. This can be merged with the original data and can be used to make the appropriate reflections of the latent variables.


davidaarmstrong/legR documentation built on Oct. 13, 2023, 1:08 p.m.