Usage
XZcov(time = NULL, trt = NULL, trt.lab = NULL, subject = NULL,
n.random = NULL, n.fix_degree = NULL, formula = NULL,
random.only = NULL, data = NULL)
Arguments
time
A vector of length{N} (number of subject-time
cases) providing times for associated subject-measure
observations. Identical to time from
dpgrowmm. trt
The treatment group membership vector of
length N. Assumed numeric and sequential. (e.g.
(0,0,1,1,1,2,2,...).
trt.lab
Associated labels for the numeric
treatment groups. Each distinct treatment group assumed
to have a unique label.
subject
Vector of length N providing
subject-measure cases. Identical to subject from
dpgrowmm. P = number of subjects,
q = number of random effect pa n.random
A scalar input providing the number of
by-subject time-based random effect parameters.
n.fix_degree
The highest polynomial degree to
employ for constructing time-based fixed effects
covariates.
formula
A formula of format y ~ x_1 +
x_2*x_3 | z_1*z_2 where | separates fixed (to
the left of |) and random effects.
random.only
A boolean scalar used in the case that
either fixed or random effects are entered in
formula, but not both, which case the | is
not entered (e.g. y ~ x_1 + x_2*x_3. Then, if
random.only == TRUE
data
Associated data.frame containing names
variables in formula