powered by
Find the discrepancy value between two means and covariance matrices. See the definition of each index at summaryMisspec.
summaryMisspec
popDiscrepancy(paramM, paramCM, misspecM, misspecCM)
The discrepancy between two means and covariance matrices
The model-implied mean from the real parameters
The model-implied covariance matrix from the real parameters
The model-implied mean from the real and misspecified parameters
The model-implied covariance matrix from the real and misspecified parameters
Sunthud Pornprasertmanit (psunthud@gmail.com)
Browne, M. W., & Cudeck, R. (1992). Alternative ways of assessing model fit. Sociological Methods & Research, 21, 230-258.
m1 <- rep(0, 3) m2 <- c(0.1, -0.1, 0.05) S1 <- matrix(c(1, 0.6, 0.5, 0.6, 1, 0.4, 0.5, 0.4, 1), 3, 3) S2 <- matrix(c(1, 0.55, 0.55, 0.55, 1, 0.55, 0.55, 0.55, 1), 3, 3) popDiscrepancy(m1, S1, m2, S2)
Run the code above in your browser using DataLab