Learn R Programming

supcluster (version 1.0.1)

coxLink: Used with supcluster when the outcome data object is a censored survival variable.

Description

Calculates the log-partial likelihood for a proportional hazards model with log-hazard \(\mu+\beta x\) where \(x\) is a frailty

Usage

coxLink(data)

Arguments

data

A two variable data frame where the first variable is the survival time and the second variable is a censoring indicator 1-event happened 0-censored

Examples

Run this code
# NOT RUN {
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.
generatedData=generate.cluster.data(.25,npats=25,clusts=c(12,8),beta=c(-5,5),
                                    outcomeModel=survivalOutcome(0,1,1,1))
usBinary=supcluster(generatedData[[1]],outcome="outcome",
maxclusters=5,nstart=100,n=200,fbeta=FALSE,
linkLikelihood=coxLink(generatedData[[2]]))
# }

Run the code above in your browser using DataLab