Introduction to Rvoterdistance
Overview | Installation | Included Data | Basic Usage: Nearest Location | k-Nearest Locations | Distance Threshold | Using sf Objects | Convenience Functions | Distance to a Geographic Boundary | Simple boundary line | Polygon boundary | Using sf POINT voters | Supported units | Performance | Application: Geographic Regression Discontinuity | Step 1: Define the reservation boundary | Step 2: Simulate 50,000 voters | Step 3: Compute the score variable | Step 4: Generate voter turnout | Step 5: Histogram of the score variable | Step 6: Map of voters and reservation | Step 7: RD estimation with rdrobust | Step 8: RD plot