blavaan icon indicating copy to clipboard operation
blavaan copied to clipboard

parameterEstimates() credible interval

Open davidp6 opened this issue 8 years ago • 3 comments

Dear creators,

I noticed that there are differences between summary(fit) and parameterEstimates(fit).

The parameterEstimates() function seems to be identical to its lavaan counterpart, and thus assumes Gaussian priors for all parameters. It would be very useful to convert the ci.lower and ci.upper output from this function to HPD.

Thanks, David

davidp6 avatar Jan 17 '17 23:01 davidp6

Thanks for the report. I think this is a side-effect of using lavaan code and will look at it soon. Also, I think the assumption there is that the posteriors are normal, as opposed to the priors.

In the meantime, blavInspect() can be used to extract HPD intervals of any percentage, i.e.,

blavInspect(fit, "hpd", level=.8)

where level can be changed as desired.

Ed


From: David Phillips [[email protected]] Sent: Tuesday, January 17, 2017 5:20 PM To: ecmerkle/blavaan Cc: Subscribed Subject: [ecmerkle/blavaan] parameterEstimates() credible interval (#2)

Dear creators,

I noticed that there are differences between summary(fit) and parameterEstimates(fit).

The parameterEstimates() function seems to be identical to its lavaan counterpart, and thus assumes Gaussian priors for all parameters. It would be very useful to convert the ci.lower and ci.upper output from this function to HPD.

Thanks, David

� You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ecmerkle/blavaan/issues/2, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEmGwsHPsuZYwQKxhgHGYnvh36D_HLvyks5rTUyigaJpZM4LmSeV.

ecmerkle avatar Jan 19 '17 03:01 ecmerkle

Yves has recently set "se" to FALSE when passing non-lavaan objects to parameterEstimates(). While the Bayesian results are not (yet) included here, this at least removes the issue of somewhat-confusing results being displayed by default.

Ed

ecmerkle avatar Feb 23 '17 17:02 ecmerkle

Lost track of this one, but two possibilities here (more for myself than anyone else): see the boot.ci.type argument of parameterEstimates() for alternative ways of handling SEs and intervals. Alternatively, maybe change fit@Options$se to "mcmc", but it might break other lavaan commands.

ecmerkle avatar Sep 05 '19 19:09 ecmerkle