Skip to content

Commit

Permalink
Update find_regimes.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabry committed Feb 1, 2024
1 parent 26457e4 commit f673db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/find_regimes.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ find_regimes <- function(y,
)
looic <- loo.bayesdfa(fit)
k_table <- loo::pareto_k_table(looic)
if (utils::packageVersion("loo") <= "2.6.0") {
if (nrow(k_table) == 4) {
loo_bad <- k_table["(0.7, 1]", "Count"]
loo_very_bad <- k_table["(1, Inf)", "Count"]
} else {
Expand Down

0 comments on commit f673db3

Please sign in to comment.