Skip to content

χ²(0) = 1e08, p < .0001 for saturated model (should be p = 1) #131

@tbates

Description

@tbates

pchisq(2.855847e-08,0) = 1, but we report p of 0 for a saturated model

repro

library(umx)
m1 = umxRAM("tim", data = mtcars,
	umxPath(c("wt",  "disp"), to = "mpg"),
	umxPath("wt", with = "disp"),
	umxPath(v.m. = c("wt",  "disp",  "mpg"))
)
summary(m1, refModels= mxRefModels(m1, run= TRUE))
# chi-square:  χ² ( df=0 ) = 2.855847e-08,  p = 0

tmp = summary(m1, refModels= mxRefModels(m1, run= TRUE))
tmp$ChiDoF   # =  0
tmp$Chi      # =  2.855847e-08
tmp$p        # = 0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions