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 nn subjects with kk repeated measurement for each subject. Let YijY_{ij} be the measurement for the iith subject at each time point jj(1in,1jk1\leq i \leq n, 1\leq j \leq k) .We use a mm-dimensional vector GijG_{ij} to denote the genetics factors, where Gij=(Gij1,...,Gijm)TG_{ij} = (G_{ij1},...,G_{ijm})^{T}. Also, we use pp-dimensional vector EijE_{ij} to denote the environment factors, where Eij=(Eij1,...,Eijp)TE_{ij} = (E_{ij1},...,E_{ijp})^{T}. Xij=(1,Tij)TX_{ij} = (1, T_{ij})^{T}, where TijTT_{ij}^{T} is a vector of time effects . ZijZ_{ij} is a h×1h \times 1 covariate associated with random effects and αi\alpha_{i} is a h×1h\times 1 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:

Yij=XijTγ0+EijTγ1+GijTγ2+(GijEij)Tγ3+ZijTαi+ϵij.Y_{ij} = X_{ij}^{T}\gamma_{0}+E_{ij}^{T}\gamma_{1}+G_{ij}^{T}\gamma_{2}+(G_{ij}\bigotimes E_{ij})^{T}\gamma_{3}+Z_{ij}^{T}\alpha_{i}+\epsilon_{ij}.

where γ1\gamma_{1},γ2\gamma_{2},γ3\gamma_{3} are pp,mm and mpmp dimensional vectors that represent the coefficients of the environment effects, the genetics effects and interactions effects, respectively. Accommodating the Kronecker product of the mm - dimensional vector GijG_{ij} and the pp-dimensional vector EijE_{ij}, the interactions between genetics and environment factors can be expressed as a mpmp-dimensional vector, denoted as the following form:

GijEij=[Eij1Eij1,Eij2Eij2,...,Eij1Eijp,Eij2Eij1,...,EijmEijp]T.G_{ij}\bigotimes E_{ij} = [E_{ij1}E_{ij1},E_{ij2}E_{ij2},...,E_{ij1}E_{ijp},E_{ij2}E_{ij1},...,E_{ijm}E_{ijp}]^{T}.

For random intercept and slope model, ZijT=(1,j)Z_{ij}^{T} = (1,j) and αi=(αi1,αi2)T\alpha_{i} = (\alpha_{i1},\alpha_{i2})^{T}. For random intercept model, ZijT=1Z_{ij}^{T} = 1 and αi=αi1\alpha_{i} = \alpha_{i1}.

See Also

mixedBayes

Examples

data(data)
dim(y)
dim(g)
dim(e)
dim(w)
print(k)
print(X)
print(coeff)


[Package mixedBayes version 0.1.2 Index]