This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Create a quantile-quantile plot with ggplot2. | |
#' | |
#' Assumptions: | |
#' - Expected P values are uniformly distributed. | |
#' - Confidence intervals assume independence between tests. | |
#' We expect deviations past the confidence intervals if the tests are | |
#' not independent. | |
#' For example, in a genome-wide association study, the genotype at any | |
#' position is correlated to nearby positions. Tests of nearby genotypes | |
#' will result in similar test statistics. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "How to debug Rcpp code in a package" | |
output: html_document | |
author: Alexander Gosdschan | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
``` |