Displaying 2 results from an estimated 2 matches for "ttparament".
Did you mean:
parament
2018 Jan 17
1
Assessing calibration of Cox model with time-dependent coefficients
...-
glm(status ~ lp + offset(logbase), family = poisson, data = data1) group <-
cut(lp, c(-Inf, quantile(lp, (1:9) / 10), Inf)) fit3 <- glm(status ~ -1 +
group + offset(p), family = poisson, data = data1)
*Is this replacing correct?*
Second, I try to introduce the time-transform use coxph with ttparament.
My code is: fit0 <- coxph(Surv(time, status) ~ x1 + x2 + x3 + tt(x3), data
= data0, function(x, t, ...) x * t) p <- log(predict(fit0, newdata = data1,
type = "expected")) lp <- predict(fit0, newdata = data1, type = "lp")
logbase <- p - lp fit1 <- glm(status ~ o...
2018 Jan 18
1
Time-dependent coefficients in a Cox model with categorical variants
...;- glm(status ~ lp + offset(logbase), family = poisson, data = data1) group <- cut(lp, c(-Inf, quantile(lp, (1:9) / 10), Inf)) fit3 <- glm(status ~ -1 + group + offset(p), family = poisson, data = data1)
Is this replacing correct?
Second, I try to introduce the time-transform use coxph with ttparament.
My code is: fit0 <- coxph(Surv(time, status) ~ x1 + x2 + x3 + tt(x3), data = data0, function(x, t, ...) x * t) p <- log(predict(fit0, newdata = data1, type = "expected")) lp <- predict(fit0, newdata = data1, type = "lp") logbase <- p - lp fit1 <- glm(status ~ o...