Code used in https://arxiv.org/abs/2006.05532
Project description
Masks and COVID-19: a causal framework for imputing value to public-health interventions
Code to reproduce Masks and COVID-19.
This is a refactored version of the original code.
Install
pip install babino2020masks
Positivity Odds in NYS
ny = NYSAPI()
df = ny.get_all_data_statewide()
lics = LassoICSelector(df['Odds'], 'bic')
lics.fit_best_alpha()
df['Odds_hat'], df['Odds_l'], df['Odds_u'] = lics.odds_hat_l_u()
ax = plot_data_and_fit(df, 'Date', 'Odds', 'Odds_hat', 'Odds_l', 'Odds_u', figsize=(10, 7))
ax.set_title(f'{df.tail(1).Date[0]:%B %d, %Y}, Positivity Odds:{df.tail(1).Odds[0]:2.3}');
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
babino2020masks-0.0.2.tar.gz
(11.0 kB
view hashes)
Built Distribution
Close
Hashes for babino2020masks-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3edd88cb1f39ae3e1fee16755d0700ee236c1008353ceb4c89a8f4e4d3ff66f |
|
MD5 | a4f61a8ca5416c14d2eecd568cf23811 |
|
BLAKE2b-256 | 710841b58d7b076691352732d8745cf55a95272a3c8ce9c1fb007d0681ce5741 |