Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for option to simulate new data when NAs exist in Y #21

Open
Cole-Monnahan-NOAA opened this issue May 20, 2024 · 1 comment
Open

Comments

@Cole-Monnahan-NOAA
Copy link

Currently the package will not simulate new data when the original data point is NA. In some cases it could be useful to simulate new data based on the underlying estimate of x_tj so that a full time series of data could be generated. E.g., to do self-test simulation off a real data set.

If there is a way to do that currently please let me know.

Otherwise, would it be possible to add an option like ignore_NA (defaults to TRUE) in the simulate.dsem function that replaces NAs with dummy values when rebuilding the object here. This won't affect estimation but would give the user the option to get full simulated data sets. It looks like it would be needed to do rebuild the obj when resimulate_gmrf=FALSE as well.

If there is interest I could do a pull request with an example.

@James-Thorson-NOAA
Copy link
Owner

If you think it's important for our collaborations, I would definitely welcome a PR :) Hmm. You willing to it off of "add_priors" and I could merge those in at the same time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants