covlevs: A Function to Extract Covariate Levels for DIF Visualization

Description Usage Arguments Value Examples

View source: R/covlevs.R

Description

This function takes the outputted df from prods and generates the lavaan script necessary to fit a RFA model of uniform and non-uniform DIF

Usage

1
covlevs(df, covname, covmin, covmax)

Arguments

df

input data frame consisting of factor indicators and DIF covariate

covname

input character vector name for DIF covariate in df

covmin

input numeric for minimum value of covariate to begin estimating unidimensional factor models

covmax

input numeric for maximum value of covariate to begin estimating unidimensional factor models

Value

a range of values within the covariate

Examples

1
levs <- covlevs(df, covname = "pers.lad", covmin = 3, covmax = 8)

jsakaluk/psyscores documentation built on Dec. 16, 2021, 6:50 p.m.