Description Usage Arguments Examples

Display the predicted values of threshold regression coefficients, density probability, survival probability, and hazard rate at the desired time and specified scenario; or, display the predicted values for all subjects corresponding to subjects scenario values at the desired time.

1 2 |

`object` |
a thregI object. |

`timevalue` |
specifies the desired time at which the predicted values of threshold regression coefficients, density probability, survival probability, and hazard rate. |

`scenario` |
specifies the values of all predictors considered in the thregI() and the dummy of the categorical variable of var. The predicted values at a specified time value for all subjects are calculated by the covariate values for each subject are used as their corresponding scenario values if ignore this argument. |

`...` |
for future methods |

1 2 3 4 5 6 7 8 9 10 11 12 | ```
#load the data "bcos"
data("bcos", package="thregI")
# transform the treatment variable into factor variable f.treatment
bcos$f.treatment=factor(bcos$treatment)
# fit the threshold regression model on the factor variable f.treatment
fit<-thregI(Surv(left, right, type='interval2')~f.treatment|f.treatment,data=bcos)
# calculate the predicted values for y0, mu, f, s and h
# for the specified scenario that the treatment classification is 1 at time fifth month.
predict.thregI(fit, timevalue = 5, scenario=f.treatmentRadiation(1))
``` |

thregI documentation built on May 2, 2019, 6:27 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.