GxESelection {marble} | R Documentation |
Variable selection for a marble object
Description
Variable selection for a marble object
Usage
GxESelection(obj, sparse)
Arguments
obj |
marble object. |
sparse |
logical flag. If TRUE, spike-and-slab priors will be used to shrink coefficients of irrelevant covariates to zero exactly. |
Details
For class ‘Sparse’, the inclusion probability is used to indicate the importance of predictors.
Here we use a binary indicator to denote that the membership of the non-spike distribution.
Take the main effect of the
th genetic factor,
, as an example.
Suppose we have collected H posterior samples from MCMC after burn-ins. The
th G factor is included
in the marginal G
E model at the
th MCMC iteration if the corresponding indicator is 1, i.e.,
.
Subsequently, the posterior probability of retaining the
th genetic main effect in the final marginal model is defined as the average of all the indicators for the
th G factor among the H posterior samples.
That is,
A larger posterior inclusion probability of
th indicates a stronger empirical evidence that the
th genetic main effect has a non-zero coefficient, i.e., a stronger association with the phenotypic trait.
Here, we use 0.5 as a cutting-off point. If
, then the
th genetic main effect is included in the final model. Otherwise, the
th genetic main effect is excluded in the final model.
For class ‘NonSparse’, variable selection is based on 95% credible interval.
Please check the references for more details about the variable selection.
Value
an object of class ‘GxESelection’ is returned, which is a list with components:
method |
method used for identifying important effects. |
effects |
a list of indicators of selected effects. |
References
Lu, X., Fan, K., Ren, J., and Wu, C. (2021). Identifying Gene–Environment Interactions With Robust Marginal Bayesian Variable Selection. Frontiers in Genetics, 12:667074 doi:10.3389/fgene.2021.667074
See Also
Examples
data(dat)
max.steps=5000
## sparse
fit=marble(X, Y, E, clin, max.steps=max.steps)
selected=GxESelection(fit,sparse=TRUE)
selected
## non-sparse
fit=marble(X, Y, E, clin, max.steps=max.steps, sparse=FALSE)
selected=GxESelection(fit,sparse=FALSE)
selected