Hello,
I performed a principal component analysis on my database (T=2010). My database is composed of 8 different financial indicators for 9 countries for the year 2010
I performed a PCA and kept only two factors, one for debt and the other one for profitability.
Principal components/correlation
Number of obs = 9
Number of comp. = 7
Trace = 8
Rotation: (unrotated = principal) Rho = 1.0000
--------------------------------------------------------------------------
Component | Eigenvalue Difference Proportion Cumulative
-------------+------------------------------------------------------------
Comp1 | 3.90452 2.02562 0.4881 0.4881
Comp2 | 1.8789 .610633 0.2349 0.7229
Comp3 | 1.26827 .761312 0.1585 0.8815
Comp4 | .506957 .183429 0.0634 0.9448
Comp5 | .323528 .234112 0.0404 0.9853
Comp6 | .0894166 .06101 0.0112 0.9964
Comp7 | .0284067 .0284061 0.0036 1.0000
Comp8 | 6.01525e-07 . 0.0000 1.0000
--------------------------------------------------------------------------
Principal components (eigenvectors)
--------------------------------------------------------------------------------------------------
Variable | Comp1 Comp2 Comp3 Comp4 Comp5 Comp6 Comp7 | Unexplained
-------------+----------------------------------------------------------------------+-------------
Investment | 0.1941 -0.2343 0.6841 0.5303 -0.1490 -0.2530 -0.1667 | 0
Profit | -0.4123 0.4029 -0.1143 0.0721 -0.1736 0.0448 -0.2658 | 0
Income | -0.3790 0.3527 0.2719 0.4050 -0.0737 0.5081 0.3570 | 0
Tax | 0.2978 -0.4402 -0.3934 0.3676 -0.0311 0.5105 0.2128 | 0
Repayment | -0.4026 -0.2626 0.1072 0.0552 0.8240 -0.0996 0.1709 | 0
Leverage | 0.4117 0.3513 0.0802 0.0697 0.4771 0.3848 -0.5616 | 0
Interest | 0.2801 0.4558 -0.3523 0.4692 0.1748 -0.4921 0.3109 | 0
Liquidity | 0.3872 0.2541 0.3851 -0.4316 0.0647 0.1227 0.5363 | 0
--------------------------------------------------------------------------------------------------
I want to use the coefficients of the matrix of weighs and apply it to a new database in the year 2011.
I saw in this previous chat (https://www.statalist.org/forums/for...pal-components) that the command pcacoefsave could work. But, I can't manage to find the command that comes after pcacoefsave. Do I have to clear ? then import the new database. If so, What do I have to do after then?
Thank you for your answer
I performed a principal component analysis on my database (T=2010). My database is composed of 8 different financial indicators for 9 countries for the year 2010
Code:
<code snipped for confidentiality>
Principal components/correlation
Number of obs = 9
Number of comp. = 7
Trace = 8
Rotation: (unrotated = principal) Rho = 1.0000
--------------------------------------------------------------------------
Component | Eigenvalue Difference Proportion Cumulative
-------------+------------------------------------------------------------
Comp1 | 3.90452 2.02562 0.4881 0.4881
Comp2 | 1.8789 .610633 0.2349 0.7229
Comp3 | 1.26827 .761312 0.1585 0.8815
Comp4 | .506957 .183429 0.0634 0.9448
Comp5 | .323528 .234112 0.0404 0.9853
Comp6 | .0894166 .06101 0.0112 0.9964
Comp7 | .0284067 .0284061 0.0036 1.0000
Comp8 | 6.01525e-07 . 0.0000 1.0000
--------------------------------------------------------------------------
Principal components (eigenvectors)
--------------------------------------------------------------------------------------------------
Variable | Comp1 Comp2 Comp3 Comp4 Comp5 Comp6 Comp7 | Unexplained
-------------+----------------------------------------------------------------------+-------------
Investment | 0.1941 -0.2343 0.6841 0.5303 -0.1490 -0.2530 -0.1667 | 0
Profit | -0.4123 0.4029 -0.1143 0.0721 -0.1736 0.0448 -0.2658 | 0
Income | -0.3790 0.3527 0.2719 0.4050 -0.0737 0.5081 0.3570 | 0
Tax | 0.2978 -0.4402 -0.3934 0.3676 -0.0311 0.5105 0.2128 | 0
Repayment | -0.4026 -0.2626 0.1072 0.0552 0.8240 -0.0996 0.1709 | 0
Leverage | 0.4117 0.3513 0.0802 0.0697 0.4771 0.3848 -0.5616 | 0
Interest | 0.2801 0.4558 -0.3523 0.4692 0.1748 -0.4921 0.3109 | 0
Liquidity | 0.3872 0.2541 0.3851 -0.4316 0.0647 0.1227 0.5363 | 0
--------------------------------------------------------------------------------------------------
I want to use the coefficients of the matrix of weighs and apply it to a new database in the year 2011.
I saw in this previous chat (https://www.statalist.org/forums/for...pal-components) that the command pcacoefsave could work. But, I can't manage to find the command that comes after pcacoefsave. Do I have to clear ? then import the new database. If so, What do I have to do after then?
Thank you for your answer
Comment