R/CmpRsk.R

Defines functions CmpRsk

Documented in CmpRsk

CmpRsk <-
function(time, index) {
# Verify Arugments
if(any(time<0)) stop("Invalid time")
if(any(index<0, diff(sort(unique(index)))!=1)) stop("Invalid index")
# Create object
temp <- cbind(time, index)
class(temp) = "CmpRsk"
return(temp)
}

Try the frailtyHL package in your browser

Any scripts or data that you put into this service are public.

frailtyHL documentation built on Dec. 1, 2019, 1:25 a.m.