Skip to content

added flag to output non normalized pci values#37

Open
ecjackson1821 wants to merge 2 commits intodevelopfrom
not_normalized_pci
Open

added flag to output non normalized pci values#37
ecjackson1821 wants to merge 2 commits intodevelopfrom
not_normalized_pci

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