Description Usage Arguments Value Author(s) See Also
Constructs fixed and random design matrices compromised of either or both growth curve (time-based) components and user-defined nuisance fixed or random effects (input via a formula). Used to conduct Bayesian mixed effects modeling and to produce growth curve output.
1 2 3 |
time |
A vector of lengthN (number of subject-time cases) providing times for associated subject-measure observations.
Identical to |
trt |
The treatment group membership vector of length |
trt.lab |
Associated labels for the numeric treatment groups. Each distinct treatment group assumed to have a unique label. |
subject |
Vector of length |
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 |
random.only |
A boolean scalar used in the case that either fixed or random effects
are entered in |
data |
Associated data.frame containing names variables in |
A list object containing composed fixed and random effect design matrices, X
and Z
, with column names
and subsets: c(X.n, Z.n)
nuisance and c(X.c, Z.c)
growth curve design matrices. Also returns
data output, y, if included with formula; otherwise returns y = NULL.
Terrance Savitsky tds151@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.