logit.pycreate and fit a Plackett-Luce logit model. Written by Kiran Tomlinson.data_utils.pyutility functions to read and process the state narcissism data.calculate_bounds.pygenerate baseline and tightened consideration probability bounds.state_bounds_demo.pyreplicates the calculations of consideration probability bounds for the 50 U.S. states from the Putnam dataset.
- Copy
State Narcissism Scrubbed Data.csvfrom Putnam et al, 2018 intodata/ - Run
state_bounds_demo.pyto display initial and tightened lower and upper bounds on consideration probabilities for each state, sorted in descending order of final upper bound.
Adam L Putnam, Morgan Q Ross, Laura K Soter, and Henry L Roediger III. Collective narcissism: Americans exaggerate the role of their home state in appraising us history. Psychological Science, 29(9):1414–1422, 2018