Hello,
I have estimated my SEM model in OpenMx. For two days I was looking for answer but I haven't solved it.
How can I obtain p-values for coefficients to check significance of my variables?
Unfortunately, I can't attach my data due to confidentiality agreement.
Thank you,
You could divide your estimates by there standard errors and use lookup tables or R to determine the p-values.
I think these are the p-values given by Mplus, AMOS, etc. But this is rather strongly recommended against. A MUCH better option is to use confidence intervals with the mxCI function. If the confidence interval for a parameter spans zero, then it is probably not different from zero.
You could also construct nested models that evaluate various hypotheses of interest and compare the nested models via likelihood ratio test, AIC, and BIC using mxCompare.
Thank you for answer.
I think that for p-values I should use:
2 * (1-pnorm(abs(Estimate/Std.Error)))
In my summary output I do not receive any values in lbound ubound columns, despite I put intervals=TRUE in mxRun. I can not execute mxCI function. I will try with nested models.
1-pnorm gives you the lower.tail
Getting a CI is a two-stage thing, a bit like adding a path. You use mxCI() to add a list of things you want CIs for to the model, then you run the model, with intervals = T.
see ?mxCI for more examples. the strings in mxCI can be anything with a name: A matrix (all cells get run), a specific label name, or an address like "A[1,1]"
PS: The CIs do not appear in ubound/lbound in the summary (that is where actual bounds will be shown). Instead, the summary will contain a little CI table, listing each CI and the estimate in the middle.
PPS: You have to set intervals= T as well as just mxRun() because they can take a long time, and during development of a model, the default of intervals= F makes running much faster