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

plot_regime_model won't work if n regimes = 1 #4

Open
seananderson opened this issue Mar 16, 2018 · 0 comments
Open

plot_regime_model won't work if n regimes = 1 #4

seananderson opened this issue Mar 16, 2018 · 0 comments

Comments

@seananderson
Copy link
Member

To start with, it looks for rstan::extract(model$model, pars = "gamma_tk")[[1]] but gamma_tk isn't in the 1 regime model.

E.g.

data(Nile)
m <- fit_regimes(log(Nile), n_regimes = 1, chains = 1, iter = 800)
plot_regime_model(m)
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