dat {marble}R Documentation

simulated data for demonstrating the features of marble.

Description

Simulated gene expression data for demonstrating the features of marble.

Usage

data("dat")

Format

dat consists of four components: X, Y, E, clin.

Details

The data model for generating Y

Use subscript ii to denote the iith subject. Let (Yi,Xi,Ei,clini)(Y_{i}, X_{i}, E_{i}, clin_{i}) (i=1,,ni=1,\ldots,n) be independent and identically distributed random vectors. YiY_{i} is a continuous response variable representing the phenotype. XiX_{i} is the pp–dimensional vector of genetic factors. The environmental factors and clinical factors are denoted as the qq-dimensional vector EiE_{i} and the mm-dimensional vector cliniclin_{i}, respectively. The ϵ\epsilon follows some heavy-tailed distribution. For XijX_{ij} (j=1,,pj = 1,\ldots,p), the measurement of the jjth genetic factor on the jjth subject, considering the following model:

Yi=α0+k=1qαkEik+t=1mγtclinit+βjXij+k=1qηjkXijEik+ϵi,Y_{i} = \alpha_{0} + \sum_{k=1}^{q}\alpha_{k}E_{ik}+\sum_{t=1}^{m}\gamma_{t}clin_{it}+\beta_{j}X_{ij}+\sum_{k=1}^{q}\eta_{jk}X_{ij}E_{ik}+\epsilon_{i},

where α0\alpha_{0} is the intercept, αk\alpha_{k}'s and γt\gamma_{t}'s are the regression coefficients corresponding to effects of environmental and clinical factors, respectively. The βj\beta_{j}'s and ηjk\eta_{jk}'s are the regression coefficients of the genetic variants and G×\timesE interactions effects, correspondingly. The G×\timesE interactions effects are defined with Wj=(XjE1,,XjEq).W_{j} = (X_{j}E_{1},\ldots,X_{j}E_{q}). With a slight abuse of notation, denote W~=Wj.\tilde{W} = W_{j}. Denote α=(α1,,αq)T\alpha=(\alpha_{1}, \ldots, \alpha_{q})^{T}, γ=(γ1,,γm)T\gamma=(\gamma_{1}, \ldots, \gamma_{m})^{T}, β=(β1,,βp)T\beta=(\beta_{1}, \ldots, \beta_{p})^{T}, η=(η1T,,ηpT)T\eta=(\eta_{1}^{T}, \ldots, \eta_{p}^{T})^{T}, W~=(W1~,,Wp~)\tilde{W} = (\tilde{W_{1}}, \dots, \tilde{W_{p}}). Then model can be written as

Yi=Eiα+cliniγ+Xijβj+W~iηj+ϵi.Y_{i} = E_{i}\alpha + clin_{i}\gamma + X_{ij}\beta_{j} + \tilde{W}_{i}\eta_{j} + \epsilon_{i}.

See Also

marble

Examples

data(dat)
dim(X)

[Package marble version 0.0.3 Index]