parameters(x, ...)
# S3 method for class 'distribution'
parameters(x, ...)
dist <- c(
dist_normal(1:2),
dist_poisson(3),
dist_multinomial(size = c(4, 3),
prob = list(c(0.3, 0.5, 0.2), c(0.1, 0.5, 0.4)))
)
parameters(dist)
#> mu sigma l s p
#> 1 1 1 NA NA NULL
#> 2 2 1 NA NA NULL
#> 3 NA NA 3 NA NULL
#> 4 NA NA NA 4 0.3, 0.5, 0.2
#> 5 NA NA NA 3 0.1, 0.5, 0.4