coxLink: Used with 'supcluster' when the outcome data object is a...

View source: R/binary_link.R

coxLinkR Documentation

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 μ+β 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

Author(s)

David A. Schoenfeld

Examples

##---- 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]]))

supcluster documentation built on May 20, 2022, 1:07 a.m.