coxLink | R Documentation |
supcluster
when the outcome data object is a censored survival variable.
Calculates the log-partial likelihood for a proportional hazards model with log-hazard μ+β x where x is a frailty
coxLink(data)
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 |
David A. Schoenfeld
##---- 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]]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.