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

Add in error or warning if region and time_point not complete #28

Open
sempwn opened this issue Sep 28, 2023 · 0 comments
Open

Add in error or warning if region and time_point not complete #28

sempwn opened this issue Sep 28, 2023 · 0 comments

Comments

@sempwn
Copy link
Owner

sempwn commented Sep 28, 2023

Unhelpful error generated when using data that has missing region and time_point pairs

fit <- bennu::est_naloxone(THN_data)
Error in FUN(X[[i]], ...) : Stan does not support NA (in Orders) in data
failed to preprocess the data; sampling not done

Should have some data check before model fitting to ensure that data formatted correctly. Question whether better to do this by filling in missing values or by generating error and allowing user to check their data first.

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

1 participant