Skip to content

Commit

Permalink
update family call in .epiparameter_df_to_epiparameter
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlambert committed Oct 21, 2024
1 parent a2cfcb8 commit 91c2950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/coercion.R
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ is_epiparameter_df <- function(x) {
distributional::parameters(x$prob_distribution[[1]])
)
}
if (identical(stats::family(prob_dist), "truncated")) {
if (identical(family(prob_dist), "truncated")) {
truncation <- distributional::parameters(x$prob_distribution)$upper
} else {
truncation <- NA_real_
Expand Down

0 comments on commit 91c2950

Please sign in to comment.