results from the model fit returned by the icweib function.
times
the vector of times at which the hazard ratio is estimated.
NumStra
the strata of the subject in the numerator. If the model is
unstratified, then set it to be the constant that is used for
strata argument in icweib function, e.g. "ALL".
NumZ
the vector of values of the explanatory variables for
the subject in the numerator. The order and length should match
the estimated coefficients as shown in x$coef. The default is NULL,
corresponding to all 0 or baseline.
DemStra
the strata of the subject in the denominator. If the
model is unstratified, then set it to be the constant that is used
for strata argument in icweib function, e.g. "ALL".
DemZ
the vector of values of the explanatory variables for the
subject in the denominator. The order and length should match the
estimated coefficients as shown in x$coef. The default is NULL,
corresponding to all 0 or baseline.
Value
A data frame of estimated hazard ratios and confidence intervals for
two subjects at each time point is returned.
Details
The hazard ratio between two subjects is obtained from the
maximum likelihood estimates from the stratified Weibull regression
model, along with the corresponding 95% confidence interval.