data {mixedBayes} | R Documentation |
simulated data for demonstrating the features of mixedBayes
Description
Simulated gene expression data for demonstrating the features of mixedBayes.
Format
The data object consists of seven components: y, e, X, g, w ,k and coeff. coeff contains the true values of parameters used for generating Y.
Details
The data and model setting
Consider a longitudinal study on subjects with
repeated measurement for each subject. Let
be the measurement for the
th subject at each time point
(
) .We use a
-dimensional vector
to denote the genetics factors, where
. Also, we use
-dimensional vector
to denote the environment factors, where
.
, where
is a vector of time effects .
is a
covariate associated with random effects and
is a
vector of random effects. At the beginning, the interaction effects is modeled as the product of genomics features and environment factors with 4 different levels. After representing the environment factors as three dummy variables, the identification of the gene by environment interaction needs to be performed as group level. Combing the genetics factors, environment factors and their interactions that associated with the longitudinal phenotype, we have the following mixed-effects model:
where ,
,
are
,
and
dimensional vectors that represent the coefficients of the environment effects, the genetics effects and interactions effects, respectively. Accommodating the Kronecker product of the
- dimensional vector
and the
-dimensional vector
, the interactions between genetics and environment factors can be expressed as a
-dimensional vector, denoted as the following form:
For random intercept and slope model, and
. For random intercept model,
and
.
See Also
Examples
data(data)
dim(y)
dim(g)
dim(e)
dim(w)
print(k)
print(X)
print(coeff)