Prior sensitivity for Bayesian SEM model - #140
Open
AngeDakouri wants to merge 5 commits into
Open
AngeDakouri wants to merge 5 commits into
AngeDakouri wants to merge 5 commits into
Conversation
Version 1.3.0
fix affiliation in paper
citation and codemeta updates
version 1.3.1
Here the stan file related to the SEM model (I add the prior calculations in the section generated quantities) and a pipeline to apply the prior sensitivity.
Collaborator
|
Thank you for looking into this. It would be great to have priorsense compatible with blavaan. I am thinking about the best way to get this to work. It seems that you have provided new Stan code for blavaan models? So would this need to be changed in the the blavaan package to save the |
Author
|
Yes, ideally when the blavaan model is generated the associated stan file should save the log prior in generated quantities section. But this is not happening. So to use priorsense I modified the stan model and the refitted the model with stan interface and thankfully the results were Identical. So if possible to save the log prior in generated quantities automatically is a great step. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I fixed the incompatibility between the blavaan and priorsense libraries.
In this way is possible to do sensitivity analyisis also for blavaan object