Description Usage Arguments Details Value References Examples
A two-step function to select informative mediators for the outcome of interest from a DNA methylation pool. The first step is a preliminary screening process that tests all engaged DNA methylation sites by using linear regression model or logistic regression model for continuous outcome and binary outcome, respectively. This step filters out the DNA methylation sites without significant effect on the response. Based on the selected sites from the first step, the second step identifies the informative mediators by performing testings for the divided traning samples and testing samples.
1 | EMscreening(Phenotype,DNAm,Continuous=TRUE,Cutoff.Joint=0.1,Iterations=100,Train.Pvalue=0.05,Test.Pvalue=0.05,Percentage=0.5)
|
Phenotype |
Data matrix of phenotype data with dimension of n by 2. The rows are n subjects. The first column represents the data for the exposure variable, and the second column represents the data for the outcome variable. |
DNAm |
Data matrix of DNA methylation data with dimension of m by n, where m is the number of DNA methylation sites and n is the number of subjects. Each row represents DNA methylation measures of one CpG sites for all the subjects. Row names are the CpG names. |
Continuous |
Logical, TRUE if the outcome variable is continuous, and FALSE if the outcome is binary. |
Cutoff.Joint |
The significance level to select DNA methylation sites when testing their effects on the response in step 1. The default is 0.01, and user can choose from 0 to 1. |
Iterations |
Total iterations needed in testing the training data and testing data in step 2. The default is 100. |
Train.Pvalue |
The significance level to select DNA methylation sites when testing the training data in step 2. The default is 0.05. |
Test.Pvalue |
The significance level to select DNA methylation sites when testing the testing data in step 2. The default is 0.05. |
Percentage |
The cutoff of the selected times of a mediator in step 2 over the defined iterations. The default is 50%. |
The whole screening process consists of two dependent steps.
In the first step, every potential mediator is screened and selected based on its indirect joint effect with a exposure on the outcome.
In the second step, samples for each DNA methylation sites selected from step 1 are split to traning part and testing part at a ratio of 2/3: 1/3. For one site, its effect on the outcome is evaluated again by using the two seperate data. If the tested effects pass the significance levels in both traning data and testing data, the tested site is selected. This process is called one iteration. Every DNA methylation site needs to be tested for a number of iterations. Once the percentage of being selected of the measured site pass the set cutoff, it is eventually screened out as a mediator for the interested outcome.
Final_results |
The data matrix containing statistics for the selected mediators. If no mediators selected, "No mediators identified from the joint screening method" will be shown. If there are mediators selected, in the output, the column 1 represents the mediators' names; The column 2 shows the relative frequency of pass the screening; The column 3-6 are the estimated parameters, standard errors, z-values, and p-values for the indirect effect of the tested DNA methylation site and exposure on outcome; The column 7-10 are the estimated parameters, standard errors, z-values, and p-values for the effect of the tested exposure on the tested DNA methylation site;. The column 11-14 are the estimated parameters, standard errors, z-values, and p-values for the direct effect of the tested DNA methylation site on outcome; The column 15-18 are the estimated parameters, standard errors, z-values, and p-values for the total effect (indirect+ direct) of the tested DNA methylation site and exposure on outcome. |
Lu Xie, A joint approach to screen high dimensional mediators in epigenetic data, technical report. Division of Epidemiology, Biostatistics, and Environmental Health, University of Memphis, Memphis, TN.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #example of four true mediators
library(EMscreening)
#Simulate data
n=200 # sample size
p <- 500 # the number of mediators
alpha <- rep(0, p)
beta <- rep(0, p)
alpha[1:8]=c(0.65,0.50, 0.60, 0.70, 0, 0, 0.5, 0.5)
beta[1:8]=c(0.95,0.6,0.65,0.7,0.8,0.8,0,0)
set.seed(1234)
DNAmdataExample=matrix(nrow=p,ncol=n)
X <- rnorm(n, mean = 0, sd = 1.5)
for (j in 1:p){
set.seed(1000*j)
ck <- runif(1, 0, 2)
e <- rnorm(n, 0, 1)
M<- ck + X * alpha[j] + e
DNAmdataExample[j,]=M
}
E <- rnorm(n, 0, 1)
Y <- 0.5 + 0.5*X+ t(DNAmdataExample)
X<-as.matrix(X)
PHENOTYPEdataExample=cbind(X,Y)
colnames(PHENOTYPEdataExample)=c("Exposure","Response")
rownames(DNAmdataExample)=paste("M",seq(1,p),sep="")
#Response is continuous
continous2=EMscreening(PHENOTYPEdataExample,DNAmdataExample,Continuous=TRUE,Cutoff.Joint=0.1,Iterations=100,Train.Pvalue=0.05,Test.Pvalue=0.05,Percentage=0.01)
continous2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.