Comments (2)
Just some follow-ups, involving commit b0c191e from earlier today:
- I have turned off
blavFitIndices()
for ordinal models because I think some underlying code is assuming continuous data, and it will take some extra research to ensure this works on the ordinal side (the continuous metrics are based on recent publications, and I don't think the analogous publications exist for ordinal). This was an oversight on my part: in 0.4-1, I was focused on getting the Stan model working and did not test the fit indices as much as I should have. ppmc()
should now be working better with the ordinal models. But there is still some unresolved ambiguity. For example, the default argument to that isfit.measures = c("srmr", "chisq")
. This creates a lavaan object using each posterior sample, then computes the usual frequentist metrics of srmr and chisq. But chisq is ambiguous for ordinal models. Under the defaultppmc()
arguments, it computes the DWLS chi square statistic using lavaan. If you change the argument to justfit.measures="chisq"
(leaving outsrmr
and any others), then it approximates the multinomial likelihood underlying the Bayesian model and does the usual likelihood ratio statistic. This is clearly not the best situation, and I need to find an intuitive way to distinguish between them.
from blavaan.
Hi Zezhen, thanks for the questions. I think that these issues are mostly due to the fact that ordinal models are very new to blavaan. I will have to look at 1 some more... it might well be that these metrics do not work well for ordinal data (they were developed for continuous data), but I cannot rule out a bug right now. I will let you know if I find something.
For 2, this is a bug and should be fixed soon.
For 3, the "MargLogLik" is the likelihood used for Bayes factors (marginal over all parameters, as opposed to marginal over only the latent variables... the llnsamp
setting is only used to compute a likelihood that is marginal over latent variables). In the continuous case, blavaan uses a Lagrange approximation here that does not immediately work for ordinal. The ordinal models return NA for now because I have not gotten around to implementing it.
And I would recommend upgrading blavaan to 0.4-1, or to the github version.
from blavaan.
Related Issues (20)
- blav_object_methods.R summary back compatibility HOT 1
- Dealing with missing data in blavaan HOT 18
- 'newdata' argument in blavPredict function HOT 2
- modeling with ordered categorical variables in blavaan HOT 3
- Add keyword arguments to blavFitIndices HOT 9
- not saving object because of delta parameterization HOT 2
- model results become different when save.lvs = TRUE HOT 5
- problem with translation from lavaan to MCMC syntax HOT 3
- Latent variable names missing from blavPredict(type = "lv") HOT 2
- lavoptions$categorical HOT 2
- Growth Mrxture Modelling in blavaan HOT 1
- adjBGammaHat > 1 and BRMSEA is NA HOT 12
- avoid nested lists
- blavFitIndices & multiple groups HOT 1
- blavaan failed to compile (Mac M1) HOT 4
- Bug with multiple groups HOT 1
- `blavCompare` errors HOT 2
- Problem with translation from lavaan to MCMC syntax HOT 9
- blavaan ERROR: problem with translation from lavaan to MCMC syntax HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blavaan.