YPmodel.estimate: YPmodel Estimate Parameters.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/YPmodel.estimate.R

Description

The main function to fit the short-term and long-term hazard ration model.

Usage

1
2
3
4
5
6
## 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 gastric for instance.

startPoint

Start point for estimating \hat{β}.

nm

The upper boundary for the absolute value of \hat{β}, and the default value is \log(100).

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 \hat{β}, when it is set as 1, the interval estimation will be performed.

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 \hat{β} and and its confidential intervals and \hat{R}(t,\hat{β}), generated by YPmodel.estimate.

object

A dataframe of estimation results, including estimation of \hat{β} and and its confidential intervals and \hat{R}(t,\hat{β}), generated by YPmodel.estimate, equally to x (different symbol for S4 method only).

Value

beta

Value of \hat{β}.

r

Value of \hat{R}(t,\hat{β}).

variance.beta1

Variance of the first variable of \hat{β}.

variance.beta2

Variance of the second variable of \hat{β}.

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

YPmodel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    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)

junlongsun/YPmodel documentation built on Oct. 25, 2020, 2:26 a.m.