Replies: 1 comment
-
|
The answer is yes, the GPS matching algorithm selects the first row. A useful enhancement to this package would be if the GPS matching algorithm randomly selects a winner of the tie instead of always selecting the first option. Another solution would be to add random noise to the fitted GPS values. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
During GPS matching, when several rows are tied for being the closest match to a desired template unit (because these rows have the same exposure and same covariates, so they have the same estimated GPS value), does the GPS matching algorithm deterministically select the first row? The answer to this question has implications on our ESS and number of observations matched (
sum(counter_weight > 0)).One might ask, why would your dataset contain rows with the same exposure and covariates but presumably different outcomes? This happens in my ADRD project with Dan and Naeem, where several patients live in the same ZIP code, so they have the same ZIP-level exposure and ZIP-level covariates (which go into the GPS model) but different outcomes and different individual-level covariates (which go into the outcome model but not the GPS model).
Beta Was this translation helpful? Give feedback.
All reactions