coxphlb: Fit Cox Model to Right-Censored Length-Biased Data

Description Usage Arguments Details Value References See Also Examples

Description

Fits a Cox model to right-censored length-biased data.

Usage

1
2
coxphlb(formula, data, method = c("Bootstrap","EE"),
boot.iter = 500, seed.n = round(runif(1,1,1e09)), digits = 3L)

Arguments

formula

A formula object with the form response ~ predictors. For response, use Surv object.

data

A data frame containing the variables in the model.

method

A character string specifying the method for variance estimation. The bootstrap resampling method ("Bootstrap") is used as the default. The estimating equation method ("EE") uses the asymptotic variance estimation.

boot.iter

The number of bootstrap iterations. Default is 500.

seed.n

An integer specifying seed number.

digits

An integer controlling the number of digits to print.

Details

This function uses the weighted estimating equation proposed by Qin and Shen (2010). It returns coefficient estimates and the corresponding variance estimates based on either the asymptotic variance or the bootstrap resampling method. It also tests the null hypothesis that the coefficients are equal to 0.

Value

A list containing the following components:

coefficients

The vector of coefficients.

var

The variance matrix of the coefficients.

std.err

The standard error of the coefficients.

z.score

z scores for the coefficients.

p.value

p-values for the coefficients.

lower.95

Lower 95% confidence intervals of the coefficients.

upper.95

Upper 95% confidence intervals of the coefficients.

method

The approach used to obtain the standard error of the coefficients.

The list is returned as an object of the coxphlb class to represent a fitted proportional hazards model. Objects of this class have methods for the functions coef, print, summary, and vcov. The object also contains the following: formula; varnames, the variables used in the model; result, the table output.

References

Qin J. and Shen Y. (2010). Statistical Methods for Analyzing Right-Censored Length-Biased Data under Cox Model. Biometrics 66(2), 382-392.

See Also

coxphlb.ftest, coxphlb.phtest, station.test, station.test.plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# Fit a Cox model using model based variance estimation
fit.ee <- coxphlb(Surv(a, y, delta) ~ x1 + x2, data = ExampleData1,
                 method = "EE")
summary(fit.ee)			# display the results

# Fit a Cox model using bootstrap resampling method
fit.bs <- coxphlb(Surv(a, y, delta) ~ x1 + x2, data = ExampleData1,
                 method = "Bootstrap", seed.n = 1234)
summary(fit.bs)			# display the results

## End(Not run)

CoxPhLb documentation built on May 2, 2019, 12:21 p.m.

Related to coxphlb in CoxPhLb...