Description Usage Arguments Value
View source: R/pca_functions.R
A function that predicts an annual aggregate growth rate by using a PCA decomposition of individual growth rates, using a given number of common factors (estimated elsewhere).
1 | predict_using_factors(hatr, X, W, pca = prcomp(X))
|
hatr |
The number of common factors (estimated by some other means) |
X |
A matrix of data |
W |
A matrix of weights |
pca |
The PCA decomposition of X |
A tbl of predictions of aggregate growth by year, using the number of common factors given by hatr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.