washingtonpost / elex-live-model

a model to generate estimates of the number of outstanding votes on an election night based on the current results of the race
48 stars 5 forks source link

Fit separate model for contest #117

Closed lennybronner closed 5 days ago

lennybronner commented 1 week ago

Description

We add a parameter where we can pass in states for which we fit a separate intercept and separate params. ie. this would be useful if a specific state is swinging in a different direction than all the others (ie. Florida in 2022) but don't want to blocklist the entire state because we still want to fit a model for it.

Jira Ticket

Test Steps

elexmodel 2020-11-03_USA_G --estimands=margin --office_id=P --geographic_unit_type=county --pi_method bootstrap --features baseline_normalized_margin --percent_reporting 20 --model_parameters "{'contests_for_separate_model': ['FL', 'GA']}"