YPmodel.estimate {YPmodel} | R Documentation |
YPmodel Estimate Parameters.
Description
The main function to fit the short-term and long-term hazard ration model.
Usage
## S3 method for class 'estimate'
YPmodel(data, startPoint, nm, maxIter1, maxIter2, interval, Internal, ...)
## S3 method for class 'YPmodel.estimate'
summary(object,...)
## S3 method for class 'YPmodel.survivor'
plot(x, Internal, ...)
Arguments
... |
For S4 method only. |
data |
A properly qualified filename where text data is to be saved, or a dataframe of input data set with three vectors: the event / censoring time (unite: year), the censoring indicator, and the group membership indicator. See the structure of sample data set |
startPoint |
Start point for estimating |
nm |
The upper boundary for the absolute value of |
maxIter1 |
Parameter of out-cycle iteration numbers. |
maxIter2 |
Parameter of inner-cycle iteration numbers. |
interval |
A binary parameter to control whether or not to perform interval estimation of |
Internal |
A dataframe of internal parameters, used only to perform hypothesis tests and plot (and to accelerate the speed). |
x |
A dataframe of estimation results, including estimation of |
object |
A dataframe of estimation results, including estimation of |
Value
beta |
Value of |
r |
Value of |
variance.beta1 |
Variance of the first variable of |
variance.beta2 |
Variance of the second variable of |
Author(s)
Junlong Sun and Song Yang
References
YANG, S. AND PRENTICE, R. L. (2005). Semiparametric analysis of short-term and long-term hazard ratios with two-sample survival data. Biometrika 92, 1-17.
See Also
Examples
library(YPmodel)
data(gastric)
Estimate <- YPmodel.estimate(data=gastric, interval=1)
Estimate <- YPmodel.estimate(data=gastric, startPoint=c(0,0), nm=log(100))
Estimate <- YPmodel.estimate(data=gastric, maxIter1=50, maxIter2=20)
summary(Estimate)
plot(Estimate)