Skip to content

Commit

Permalink
fix space for lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Jan 12, 2024
1 parent 8fc0f77 commit 22eef3b
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 @@ -284,7 +284,7 @@ estimate_truncation <- function(obs, max_truncation, trunc_max = 10,
params_sd <- unname(round(
rstan::summary(fit, pars = "delay_params")$summary[, 3], 3
))
parameters <- lapply(seq_along(params_mean), function (id) {
parameters <- purrr::map(seq_along(params_mean), function(id) {
Normal(params_mean[id], params_sd[id])
})
names(parameters) <- natural_params(truncation[[1]]$distribution)
Expand Down

0 comments on commit 22eef3b

Please sign in to comment.