Replies: 4 comments
-
Hi Hoshea,
|
Beta Was this translation helpful? Give feedback.
-
Thanks Raphael I'll take a look at your paper. When I run |
Beta Was this translation helpful? Give feedback.
-
Yes. To identify an 'improper' distribution you can do something like library(mlr3proba)
library(distr6)
d = lrn("surv.kaplan")$train(tsk("rats"))$predict(tsk("rats"))$distr[1]
# Improper distribution (F(Inf) < 1) -> Infinite mean
d$cdf(Inf)
#> [1] 0.1871857
d$mean()
#> [1] Inf
# Proper distribution (F(Inf) = 1) -> Finite mean
Exponential$new()$cdf(Inf)
#> [1] 1
Exponential$new()$mean()
#> [1] 1
Binomial$new()$cdf(Inf)
#> [1] 1
Binomial$new()$mean()
#> [1] 5 Created on 2022-08-02 by the reprex package (v2.0.1) |
Beta Was this translation helpful? Give feedback.
-
Future reference for question (2): we now use by default the |
Beta Was this translation helpful? Give feedback.
-
I very much appreciate all of the effort you have put into mlr3proba, and I understand there are some issues to be fixed. That being said, I’m hoping you can help me with something.
Just some simple code to learn some basics:
Thank you in advance,
Beta Was this translation helpful? Give feedback.
All reactions