Learn R Programming

RefFreeEWAS (version 2.2)

EstDimIC: Dimension estimation by AIC and BIC

Description

Method for estimating latent dimension by AIC and BIC.

Usage

EstDimIC(Rmat,Krange=0:25)

Arguments

Rmat

Residual matrix for which to estimate latent dimension.

Krange

Vector of integers representing candidate dimensions to consider

Value

A list containing AIC and BIC for candidate dimensions, as well as the best dimension for each.

Details

Method for estimating latent dimension by AIC and BIC. Inferior to the RMT method in the isva package, but it appears here because it's mentioned in our paper.

References

HOUSEMAN, Eugene Andres, MOLITOR, John, et MARSIT, Carmen J. Reference-free cell mixture adjustments in analysis of DNA methylation data. Bioinformatics, 2014, vol. 30, no 10, p. 1431-1439.

See Also

EstDimRMT

Examples

Run this code
# NOT RUN {
data(RefFreeEWAS)

# }
# NOT RUN {
  tmpDesign <- cbind(1, rfEwasExampleCovariate)
  tmpBstar <- rfEwasExampleBetaValues <!-- %*% tmpDesign %*% solve(t(tmpDesign)%*%tmpDesign) -->

  EstDimIC(rfEwasExampleBetaValues-tmpBstar <!-- %*% t(tmpDesign)) -->
# }

Run the code above in your browser using DataLab