Skip to content

Commit

Permalink
fix handling of logistic distribution (#275)
Browse files Browse the repository at this point in the history
Co-authored-by: tnagler <thomas.nagler@tum.de>
  • Loading branch information
tnagler and tnagler committed May 8, 2024
1 parent 9b66fb6 commit 32e3e03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/tools.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ depth <- function(this) ifelse(is.list(this), 1L + max(sapply(this, depth)), 0L)

supported_distributions <- c(
"beta", "cauchy", "chisq", "exp", "f", "gamma",
"lnorm", "norm", "t", "unif", "weibull"
"logis", "lnorm", "norm", "t", "unif", "weibull"
)

#' @importFrom stats pbeta qbeta qbeta dcauchy pcauchy qcauchy dchisq pchisq
Expand Down Expand Up @@ -209,6 +209,7 @@ get_npars_distr <- function(distr) {
gamma = 2,
lnorm = 2,
norm = 2,
logis = 2,
t = ifelse("ncp" %in% names(distr), 3, 2),
unif = 2,
weibull = ifelse("scale" %in% names(distr), 2, 1)
Expand Down

0 comments on commit 32e3e03

Please sign in to comment.