*! version 1.0.0 05Jul2021

Title

stipw postestimation -- Post-estimation tools for stipw

Description

The following standard post-estimation commands are available for outcome models fitted with streg:

Command Description

predict predictions, residuals, influence statistics, and other diagnostic measures

stcurve plot the survivor, hazard, and cumulative hazard functions

The following standard post-estimation commands are available for outcome models fitted with stpm2:

Command Description

estat post estimation statistics

predict predictions, residuals etc

Examples

Setup

webuse brcancer

stset rectime, failure(censrec = 1)

Exposure of interest is hormon.

We wish to adjust for confounders x1, x2, x3, x5, x6 and x7.

Perform an IPW analysis using stipw. Fit a weighted Weibull model

stipw (logit hormon x1 x2 x3 x5 x6 x7) , distribution(weibull)

predict h1, hazard

predict s1, surv

Perform an IPW analysis using stipw. Fit a weighted rp (Royston-Paramr) model

stipw (logit hormon x1 x2 x3 x5 x6 x7) , d(rp) df(3)

predict h2, hazard ci

predict s2, survival ci

Perform an IPW analysis using stipw. Fit a weighted rp model with time-dependent effects

stipw (logit hormon x1 x2 x3 x5 x6 x7) , d(rp) df(3) dftvc(2)

predict hr, hrnumerator(hormon 1) ci

predict survdiff, sdiff1(hormon 1) ci

predict hazarddiff, hdiff1(hormon 1) ci