Reanalysis of "A functional genomic perspective on well-being"

downloadRR53Data | Download the data from PNAS and save it locally as a file |

generateVCMatrix | Generate variance-covariance matrix for gene expression data |

getGeneResids | Compute the residual gene expression values |

meanAbsCor | Compute the mean absolute correlation for a correlation... |

oneSampTest | Perform a one sample t-test on the beta values |

readData | Read in the data from Fredrickson et al. |

readTidyData | Read in and tidy the data from Fredrickson et al. |

rr53 | Run 53 repeated regressions as in Fredrickson et al. |

rr53Resids | Run the RR53 analysis on the gene expression residuals |

runLM | Fit a linear model to expression data for a single gene |

shuffleAndRecomputeMAC | Compute MAC after randomly shuffling columns |

shuffleSubjects | Shuffle subject identifiers |

simulateGeneData | Generate simulated gene expresion data |

simulatePsychometricData | Randomly generate psychometric/demographic data |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.