Description Usage Arguments Value Author(s) Examples
Estimated log-likelihood.
1 | ell(s, y, delta)
|
s |
Integer vector. Parsonnet Score values within a range of |
y |
Double. Binary ( |
delta |
Double. Box-Cox transformation parameter. |
Returns a single value which is estimated log-likelihood.
Philipp Wittenberg
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
## load data
data("cardiacsurgery", package = "spcadjust")
## preprocess data to 30 day mortality and subset data to
## phase I (In-control) and phase II (monitoring)
SALL <- cardiacsurgery %>% rename(s = Parsonnet) %>%
mutate(y = ifelse(status == 1 & time <= 30, 1, 0),
phase = factor(ifelse(date < 2*365, "I", "II")))
## subset phase I (In-control)
SI <- filter(SALL, phase == "I") %>% select(s, y)
dML <- search_delta(SI$s, SI$y, type = "ML")
ell(SI$s, SI$y, dML)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.