GithubHelp home page GithubHelp logo

michaelgreenacre / pca Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 7.0 2.84 MB

The data files and R scripts for the Nature Reviews Methods Primer: Principal Component analysis, by MIchael Greenacre et al. (2022). The three video animations from the supplementary material are also included here

R 100.00%

pca's Introduction

PCA

The data files, R scripts and videos for the Nature Reviews Methods Primer: Principal Component analysis, by Michael Greenacre, Trevor Hastie, Patrick Groenen, Alfonso Iodice d'Enza, Angelos Markos and Elena Tuzhilina (2022)

Data files

world-happiness-report-2021.csv: CSV file of the World Happiness data

(The Khan cancer data is provided in package ISLR2)

BarentsFish.csv: CSV file of the Barents Sea fish data

R scripts

Nature_PCA_happy.R: script for analysing (PCA) the World Happiness data

Nature_PCA_cancer.R: script for analysing (PCA and sparse PCA) the Khan cancer data

Nature_PCA_fish.R: script for analysing (CA) the Barents Sea fish data

Nature_happy_missing.R: script for missing value imputation exercise

Videos

Video1_PCA_Centroid_3D.gif: A three-dimensional animation of the centroid analysis of the four tumour groups.

Video2_PCA_Regular_To_Centroid.gif: A dynamic transition from the regular PCA to the PCA of the four tumour group centroids, as weight is transferred from the individual tumours to the tumour group centroids. This shows how the centroid analysis separates the groups better in the two-dimensional PCA solution, as well as how the highly contributing genes change.

Video3_PCA_Centroid_Regular_To_Sparse.gif: A dynamic transition from the PCA of the group centroids to the corresponding sparse PCA solution. This shows how most genes are shrunk to the origin, and are thus eliminated, while the others are generally shrunk to the axes, which means they are contributing to only one PC. A few genes still contribute to both PCs.

pca's People

Contributors

michaelgreenacre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.