Metadata-Version: 2.1
Name: babino2020masks
Version: 0.0.2
Summary: Code used in https://arxiv.org/abs/2006.05532
Home-page: https://github.com/ababino/babino2020masks/tree/master/
Author: Andres Babino
Author-email: ababino@rockefeller.edu
License: Apache Software License 2.0
Keywords: coronavirus counterfactual causality masks covid19
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: pandas
Requires-Dist: requests
Requires-Dist: matplotlib
Requires-Dist: fastcore
Requires-Dist: seaborn
Requires-Dist: scikit-learn

# Masks and COVID-19: a causal framework for imputing value to public-health interventions
> Code to reproduce <a href='https://arxiv.org/abs/2006.05532'>Masks and COVID-19</a>.


This is a refactored version of the original [code](https://github.com/ababino/corona). 

## Install

`pip install babino2020masks`

## Positivity Odds in NYS

```python
ny = NYSAPI()
df = ny.get_all_data_statewide()
```

```python
lics = LassoICSelector(df['Odds'], 'bic')
lics.fit_best_alpha()
df['Odds_hat'], df['Odds_l'], df['Odds_u'] = lics.odds_hat_l_u()
```

```python
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}');
```


![png](docs/images/output_6_0.png)



