Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

PairsBootRefFreeEwasModel

Bootstrap for Reference-Free EWAS Model, Accounting for Paired Data


Description

Bootstrap procedure for reference-free method for conducting EWAS while deconvoluting DNA methylation arising as mixtures of cell types. This version accounts for paired data (e.g. twin data)

Usage

PairsBootRefFreeEwasModel(mod, nboot, pairID)

Arguments

mod

model object of class RefFreeEwasModel (generated with smallOutput=FALSE).

nboot

Number of bootstrap samples to generate.

pairID

Pair IDs (one unique value per pair).

Details

Generates the bootstrap samples for the reference-free method for conducting EWAS while deconvoluting DNA methylation arising as mixtures of cell types. This paired version facilitates the estimation of robust standard errors to account for paired data (e.g. twin data) using a strategy similar to that employed by Generalized Estimating Equations (GEEs). Specifically, in bootstrapping the errors, the pairs are sampled rather than individual arrays. An error will be generated unless each cluster has exactly two members (i.e. exactly two observations correspond to the same unique ID given in pairID).

Value

An array object of class “BootRefFreeEwasModel”. Bootstraps are generated for both Beta and Bstar.

Author(s)

E. Andres Houseman

References

Houseman EA, Molitor J, and Marsit CJ (Bioinformatics, 2014), Reference-Free Cell Mixture Adjustments in Analysis of DNA Methylation Data. Bioinformatics, doi: 10.1093/bioinformatics/btu029.

See Also

Examples

data(RefFreeEWAS)

## Not run: 
  tmpDesign <- cbind(1, rfEwasExampleCovariate)
  tmpBstar <- (rfEwasExampleBetaValues 

  EstDimRMT(rfEwasExampleBetaValues-tmpBstar 

## End(Not run)

test <- RefFreeEwasModel(
  rfEwasExampleBetaValues,
  cbind(1,rfEwasExampleCovariate),
  4)

testBoot <- BootRefFreeEwasModel(test,10)
summary(testBoot)

RefFreeEWAS

EWAS using Reference-Free DNA Methylation Mixture Deconvolution

v2.2
GPL (>= 2)
Authors
E. Andres Houseman, Sc.D.
Initial release
2018-12-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.