Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduction #36

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 175 additions & 0 deletions book/Figures/introduction/censoring.drawio

Large diffs are not rendered by default.

Binary file added book/Figures/introduction/censoring.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added book/Figures/introduction/gompertz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added book/Figures/introduction/immortal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
212 changes: 146 additions & 66 deletions book/P0C1_intro.qmd

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion book/P1C2_preview.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ abstract: TODO (150-200 WORDS)
{{< include _macros.tex >}}
:::

# MLSA From Start to Finish
# MLSA From Start to Finish {#sec-mlsa}

{{< include _soon.qmd >}}
3 changes: 1 addition & 2 deletions book/P1C4_survival.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ In practice the differences are often blurred as time-measurement will naturally
Also discrete-time methods are often applied to continuous time data and vice versa.
It is nevertheless important to make the distinction as it informs mathematical treatment and definition of the different quantities introduced below.


### Continuos Time {#sec-distributions-continuous}
### Continuous Time {#sec-distributions-continuous}

For now, assume a continuous, positive, random variable $Y$ taking values in (t.v.i.) $\NNReals$.
A standard representation of the distribution of $Y$ is given by the probability density function (pdf), $f_Y: \NNReals \rightarrow \NNReals$, and cumulative distribution function (cdf), $F_Y: \NNReals \rightarrow [0,1]; (\tau) \mapsto P(Y \leq \tau)$.
Expand Down
Binary file modified book/_book/Machine-Learning-in-Survival-Analysis.pdf
Binary file not shown.
13 changes: 13 additions & 0 deletions book/experiments/code.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ remotes::install_github("mlr-org/paradox", ref = 'v0.11.1', upgrade = "never")
library(ggplot2)
theme_set(theme_bw())

library(distr6)
library(ggplot2)
g = dstr("Gompertz", shape = 2, decorators = "ExoticStatistics")
t = seq.int(0, 1.5, length.out = 100)
d = data.frame(t = t, fun = factor(rep(c("Density", "Hazard", "Cumulative Density", "Survival"), each = 100), levels = c("Density", "Hazard", "Cumulative Density", "Survival")), y = c(g$pdf(t), g$hazard(t), g$cdf(t), g$survival(t)))
g = ggplot(d, aes(x = t, y = y, color = fun)) +
geom_line() +
facet_wrap(~fun, scales = "free", nrow = 2) +
theme_bw() +
theme(legend.position = "n")
ggsave("book/Figures/introduction/gompertz.png", g, height = 3, units = "in",
dpi = 600)

## Ranking
rm(list = ls())
library(dplyr)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added book/meas_rank_files/figure-html/fig-ipcw-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.