Linear transformation model g{S(t | Z)} = h(t) + Z'beta with censored data: stage 1 estimates the censoring survival G by Kaplan-Meier (left limit, validated against the paper's printed Freireich anchor), stage 2 solves estimating equation (2.3) with unit weights. Sandwich variance of Section 2 / Appendix 1.
Examples
Twostg(time = c(1, 2, 3, 4, 5, 6, 7, 8), event = c(0, 1, 0, 1, 1, 0, 1, 0),
X = c(1, 2, 3, 4, 5, 6, 7, 8))
#> $estimate
#> [1] -0.5469466
#>
#> $se
#> [1] 0.1938127
#>
#> $cov
#> [,1]
#> [1,] 0.03756335
#>
#> $n_iter
#> [1] 6
#>
#> $error
#> [1] "ph"
#>
#> $method
#> [1] "Cheng-Wei-Ying (1995) two-stage transformation-model estimator, eq. (2.3)"
#>
