Skip to content

Commit

Permalink
avoid very narrow initial truncation distributions (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk authored Sep 15, 2023
1 parent 20975ba commit 266c088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/estimate_truncation.R
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ estimate_truncation <- function(obs, max_truncation, trunc_max = 10,
init_fn <- function() {
data <- list(
delay_mean = array(rnorm(1, 0, 1)),
delay_sd = array(abs(rnorm(1, 0, 1))),
delay_sd = array(abs(rnorm(1, 0, 1))) + 1,
phi = abs(rnorm(1, 0, 1)),
sigma = abs(rnorm(1, 0, 1))
)
Expand Down

0 comments on commit 266c088

Please sign in to comment.