-
Notifications
You must be signed in to change notification settings - Fork 0
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
Updating charts with new npm scores #77
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one issue with the unweighted shares. We can chat tomorrow if unclear
ahl_targets/notebooks/npm_annex.py
Outdated
/ store_data_hfss["weight_prod"].sum() | ||
) | ||
|
||
hfss_shares_none = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is not very interpretable as it's just giving the sample average (rather than the population). By unweighted we normally mean the share calculated on the unique set of products and I think this is actually what the figure in the appendix refers to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ElenaMariani I think I just need to remove this variable as its not used in the document I think I had created it previously just to sense check the values against some in a spreadsheet and so copied it over to this file.
Its a good point on what the appendix is referring to (I think I did have the unweighted mean also in another script but didn't copy it over here). Lets discuss on our call later.
Updated
npm_annex
to create charts B, C and Y again with new NPM scores (names based on previous naming conventions). I have saved the outputs here. To note, for chart C, I have created two versions of the data and a png output. This is because Lauren wasn't able to produce the chart type in flourish and I think had to trace based on the png in the end. Have therefore added the image, the original data file format (products with NPM scores) and one grouped as percent share per NPM score (incase that might be easier for Husain to work with).