chisq_sb: Satorra-Bentler corrected chi-square test

Description Usage Arguments Details Value Author(s) Examples

View source: R/motley_functions.R

Description

Computes Satorra-Bentler corrected chi-square test.

Usage

1
chisq_sb(chisq1, df1, scf1 = 1, chisq2, df2, scf2 = 1)

Arguments

chisq1

An object for which a method exists; e.g., a chi-square value, or a data.frame.

df1

Degrees of freedom of model 1.

scf1

Scale correction factor of model 1.

chisq2

Chi square value of model 2.

df2

Degrees of freedom of model 2.

scf2

Scale correction factor of model 2.

Details

Reference: Satorra, A., & Bentler, P. M. (2001). A scaled difference chi-square test statistic for moment structure analysis. Psychometrika, 66(4), 507-514. <doi:10.1007/BF02296192>

Value

Chi-square difference value with corresponding degrees of freedom and p-value.

Author(s)

Caspar J. van Lissa

Examples

1
2
df <- data.frame(chi2 = c(23, 44, 65), df = c(78, 74, 70), scf = c(1.02, 1.12, 1.28))
chisq_sb(24, 78, 1.02, 65, 70, 1.28)

Example output

Registered S3 methods overwritten by 'tidySEM':
  method              from           
  print.mplus.model   MplusAutomation
  print.mplusObject   MplusAutomation
  summary.mplus.model MplusAutomation
chisq    df     p 
46.79 -8.00  1.00 

tidySEM documentation built on Nov. 17, 2021, 1:07 a.m.