Description Usage Arguments Details Value Examples
Fit a semiparametric transformation model
1 2 3 4 5 6 7 8 |
formula |
formula. Regression model of interest |
dat |
data frame. |
strata.formula |
formula. |
phase2.ind |
Boolean vector. If TRUE, phase II samples; if FALSE, phase I samples. If NULL, will try to infer from which subjects have phase II variables. Should not be 0/1 |
imputation.formula |
formula. If not NULL, calibration weighting is done |
family |
string. |
ee |
string. Type of design matrix used in estimating equation |
var.est.type |
string. 1: one-stage estimator, 2: two-stage estimator |
t0 |
numeric. Should be close to the end of study time |
init |
numerical vector. |
maxit |
integer. Maximum number of iterations in the optimization process |
intermediate |
Boolean. |
verbose |
Boolean. |
show.time.elapsed |
Boolean. |
object |
an object of type stm |
... |
additional arguments |
Fit stm both with and without calibration. Calls stm.internal.
An object of type stm
1 2 3 4 5 6 7 8 | n=100
beta= c(log(.5), log(.7), log(1.2))
t0=2.9999
init = c(log(0.0373*t0),beta)
dat = sim.fong(n, family="PH", beta, random.censoring="0", design="CC", auxiliary="weak", seed=1)
est = stm(formula=Surv(X,d) ~ z + s + z:s, dat, strata.formula=~d, family="PH", t0=t0, init=init,
var.est.type="1", verbose=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.