getcov {lgtdl} | R Documentation |
The covariate component of the lgtdl
object is returned.
getcov(x, ...) getcov.lgtdl(x, cov, ...)
x |
The lgtdl object. |
cov |
The name of the covariate to be extracted. |
... |
Ignored, there for potential future use. |
The covariate, as either a matrix or vector, is returned.
Robert Gentleman
x1<-data.frame(time=c(1,3,5), cov=c(4,6,8)) x2<-data.frame(time=c(11,13,15), interest=c(66,45,88)) x1<-as.lgtdl(x1) x2<-as.lgtdl(x2) getcov(x1) getcov(x2)