Skip to content
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

added flag to output non normalized pci values #37

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ecjackson1821
Copy link

this is for the atlas cleaning process. The original stata code uses the non normalized pci value (kp1d).

The atlas cleaning first calculates complexity values from a set of more reliable countries and excluding least traded products. Next it needs to impute complexity values to all countries. The methodology uses the pci value from the reliable country set to then calculate the eci value for all countries.

`mata eci2 = mcp :* pci1'

The pci value used for this calculation is not the pci value normalized using eci. Instead it is normalized against the mean and standard deviation of itself.

mata pci1 = kp1d rename pci pci1 egen byte tagp = tag(commoditycode) qui sum pci1 if tagp replace pci1 = (pci1 - r(mean))/r(sd)

This is why a flag retrieving the non normalized pci value is needed for running the atlas cleaning process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant