Skip to content

Commit

Permalink
set max when constructing truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed May 2, 2024
1 parent c5763e5 commit 21ffdc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/estimate_truncation.R
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ estimate_truncation <- function(data, max_truncation, trunc_max = 10,
Normal(params_mean[id], params_sd[id])
})
names(parameters) <- natural_params(get_distribution(truncation))
parameters$max <- max(truncation)
out$dist <- new_dist_spec(
params = parameters,
distribution = get_distribution(truncation)
Expand Down

0 comments on commit 21ffdc7

Please sign in to comment.