Description Usage Arguments Value Author(s)

Principal component analysis

1 | ```
PCA(mx, num = 1)
``` |

`mx` |
matrix of variables, rows are observations and columns are variables. |

`num` |
number of factors that you need. |

a list of the results.

`factors` |
matrix of the factors found in PCA, rows are observations, columns are factors. |

`weights` |
weights that produce the factors from the variables. |

`explained` |
how much do the factors explain the variation of the variables, in percentage. |

Yukai Yang, [email protected]

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.