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

Quick fix for #211 #401

Merged
merged 3 commits into from
Mar 29, 2023
Merged

Quick fix for #211 #401

merged 3 commits into from
Mar 29, 2023

Conversation

fweber144
Copy link
Collaborator

This fixes #211, at least in a quick way. Later, we may implement more of the suggestions from #211 (comment).

In the tests, datafits will now have project()$p_type = FALSE because for datafits, we have nclusters = S = 1, meaning that get_refdist() will call itself with ndraws = 1 and nclusters = NULL. The new behavior also means that for datafits, proj_predict() will not draw nresample_clusters (default: 1000) times from the predictive distribution based on the same single projected draw.

@fweber144 fweber144 merged commit 567f9ac into stan-dev:master Mar 29, 2023
@fweber144 fweber144 deleted the quickfix211 branch March 29, 2023 17:47
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

Successfully merging this pull request may close these issues.

Bug in project()$p_type
1 participant