pllk: Partial likelihood for proportional hazards

Description Usage Arguments Value Examples

View source: R/pllk.R

Description

Partial likelihood for proportional hazards

Usage

1
pllk(beta, xmat, ind, cc = NULL)

Arguments

beta

parameter vector

xmat

regression matrix

ind

censoring indicator, 1 for event and any other value otherwise.

cc

Continuity correction for sum of x vectors with multiple occurrences in risk set. For binary covariates is half. Default a vector of zeros.

Value

a list with components

Examples

1
2
3
4
5
6
#Uses data set breast from package coxphf.
data(breast)
 xmat<-as.matrix(breast)[order(breast$TIME),c("T","N")]
 ind<-breast$CENS[order(breast$TIME)]
 short<-coxph(Surv(TIME,CENS)~ T+ N,data=breast)
 pllk(as.vector(coef(short)),xmat,ind)

PHInfiniteEstimates documentation built on July 24, 2021, 1:07 a.m.