Learn R Programming

ezCutoffs (version 1.0.2)

compareFit: Compare two Fit Measure Distributions Using the Wilcoxon-test

Description

Significane test of the difference between two randomly generated fit index distributions using the Wilcoxon rank sum test.

Usage

compareFit(x, y, ...)

Value

An object of the class wilc_result, inspectable via summary.

Arguments

x

An object of the class ezCutoffs to use in comparison.

y

A second ezCutoffs object to compare x to.

...

Additional arguments to pass to wilcox.test.

Details

Non-overlapping fit measures will be disregarded by the funciton.

See Also

ezCutoffs

Examples

Run this code
## model specification examples

# simple uni-factorial model
model <- "F1 =~ a1 + a2 + a3 + a4 + a5"

## two function calls
a <- ezCutoffs(model = model, n_obs = 1000, n_rep = 10, n_cores = 1, normality = "assumed")
b <- ezCutoffs(model = model, n_obs = 1000, n_rep = 10, n_cores = 1, normality = "empirical")

## comparison of the fit measure distributions yielded by the simulations
w <- compareFit(a, b)
summary(w)

Run the code above in your browser using DataLab