Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
2701 views
1
2
3
4
<<coxph>>=
5
6
## reported by Terry Therneau
7
coxph <- function(formula, data, weights, subset, na.action,
8
init, control, ties= c("efron", "breslow", "exact"),
9
singular.ok =TRUE, robust=FALSE,
10
model=FALSE, x=FALSE, y=TRUE, tt, method=ties, ...) {
11
12
ties <- match.arg(ties)
13
Call <- match.call()
14
15
... (20 lines omitted)
16
17
timetrans <- attr(Terms, "specials")$tt
18
if (length(timetrans)) {
19
<<coxph-transform>>
20
}
21
22
## next lines should not be ofsetted
23
<<coxph-setup>>
24
<<coxph-penal>>
25
<<coxph-compute>>
26
<<coxph-finish>>
27
}
28
@
29
30
31
32
33