The fitted baseline-hazard simplex of a cox() fit
Arguments
- fit
A frmtmb_fit with a cox() family.
Value
The Kbhaz M-spline weights, summing to one.
Examples
set.seed(1)
dd <- data.frame(x = rnorm(200))
dd$time <- rexp(200, exp(-0.5 + 0.7 * dd$x))
fit <- frm(bf(time ~ x), family = cox(), data = dd)
cox_baseline(fit)
#> s1 s2 s3 s4 s5
#> 0.01712174 0.21161544 0.11189024 0.06393336 0.59543922