survivalOutcome | R Documentation |
generate.cluster.data
Given a vector of frailties, say x_1,..., this function generates a censored exponentially distributed random variable with rate equal to μ+β x_i. The censoring distribution is uniform with from f to f+a.
survivalOutcome(mu, beta, accrual, followUp)
mu |
The constant term μ |
beta |
The frailty effect β |
accrual |
The accrual time a, in a clinical study |
followUp |
The follow up time f in a clinical study |
A data frame is returned with two columns survival
and censor
David A. Schoenfeld
coxLink
,binaryOutcome
,binaryLink
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.