Description Usage Arguments Details Value References See Also Examples
This function compares the survival distributions (i.e. hazard functions) of dynamic treatment regimes (DTRs) from sequentially randomized clinical trials after adjustment for covariates as proposed in Tang and Wahed (2011).
1 | contrast_ph(fit)
|
fit |
the result of a call to the |
Four different comparisons are performed:
1) An overall comparison H0: A1B1=A1B2=A2B1=A2B2
2) First-stage comparison H0: A1=A2
3) Second-stage comparison H0: B1=B2
4) Pairwise comparisons including H0: A1B1=A1B2, H0: A1B1=A2B1, H0: A1B1=A2B2, H0: A1B2=A2B1, H0: A1B2=A2B2, and H0: A2B1=A2B2
The function returns a data frame with four columns: H0, test statistic, df, and p.
H0 |
the null hypotheses being tested, for example, H0 (t=3) if the comparisons are made at t=3 |
test statistic |
the calculated chi-square test statistic |
df |
the degree of freedom |
p |
the resulting p-value |
Tang X, Wahed AS: Comparison of treatment regimes with adjustment for auxiliary variables. Journal of Applied Statistics 38(12):2925-2938, 2011
1 2 3 4 5 | ## Not run:
data("PHdata")
f <- PHfit(data=PHdata, covar="V")
contrast_ph(f)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.