NSAPH-Projects / school_gun_incidents

Estimate causal and associative effects of firearm-dealer-to-school proximity on school gun incidents in U.S. census tracts
MIT License
0 stars 0 forks source link

convert exposure to half-miles in `get_analysis_df` #11

Closed m-qin closed 1 year ago

m-qin commented 1 year ago

Currently, multiple scripts have lines like:

data_with_state <- na.omit(data_with_state)
data_with_state$a <- data_with_state$a / 0.5

Adding these lines to the function get_analysis_df will make the code more concise.