-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexplained behaviour with prinComp and grid2PCs #15
Labels
Comments
Because you are retaining the first 4 EOFs, you are not capturing the whole variance, but just a large proportion of it. Therefore, when you recover the original field from the PCs, the recovered field is not identical to the original one (it is very similar though...). Try to set the explained variance to 100% and you should obtain exactly the same grid (setting aside minor rounding errors...): orig_princomp <- prinComp(obs, v.exp = 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I was planning to use
prinComp
andgrid2PCs
to implement a sort of cross-validation for the use of PCA with seasonal forecasts.Here the grid test file I have used: https://www.dropbox.com/s/a699e6wq4zae0vm/monthly-erain.rda?dl=0
Here a reproducible example:
If I use
grid2PCs
on the same grid file used to compute theprinComp
I would expect to have the same identical PCs, am I wrong? Instead they are similar but not identical, what happens here?The text was updated successfully, but these errors were encountered: