get_wsdi: Calculates weighted signed difference in expected indicator...

Description Usage Arguments Examples

View source: R/get_wsdi.R

Description

Calculates weighted signed difference in expected indicator scores

Usage

1
get_wsdi(dat, fit, model, nodewidth = 0.01, lowerLV = -5, upperLV = 5)

Arguments

dat

data frame of indicators

fit

outputted multi-group cfa lavaan object

model

inputted lavaan model syntax

nodewidth

space between nodes during quadrature approximation (default = .01)

lowerLV

lowest latent variable value evaluated (default = -5)

upperLV

greatest latent variable value evaluated (default = 5)

Examples

1
2
3
4
5
#' dat <- HolzingerSwineford1939
dat$group[dat$school=="Pasteur"] = "Pasteur"
dat$group[dat$school=="Grant-White"] = "Grant-White"
HS.model <- '  visual =~ x1 + x2 + x3'
fit <- lavaan::cfa(HS.model, data = dat, group = "group")

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