tcctomat(ccov, names=NULL, oldccov=NULL)
ccov
| A vector or matrix containing time-constant baseline covariates with one row per individual, a model formula using vectors of the same size, or an object of class, tccov. |
names
| The names of the covariates (if the matrix does not have column names). |
oldccov
| An object of class, tccov, to which ccov is to be added. |
tcctomat
transforms a vector or matrix containing time-constant
baseline covariates or a model formula into an object of class, tccov,
or combines two such objects.
Such objects can be printed. Methods are available for extracting the covariates, their names, and the formula.
To obtain the indexing to expand time-constant covariates to the size
of a repeated measurements response, use covind
.
read.list
, restovec
, rmna
,
tvctomat
.x1 <- gl(4,1) tcctomat(~x1) x2 <- c(0,0,1,1) tcctomat(~x2)