PHSKC-APDE / claims_data

Process and analyze WA State Medicaid, Medicare, and All-Payer Claims Database eligibility and claims data
21 stars 4 forks source link

cov_time_day missing 1 day #106

Closed elikern-kc closed 4 years ago

elikern-kc commented 4 years ago

looking at the mcaid_mcare_elig_timevar table, it appears to me that the cov_time_day variable is short by 1 day. look at id_apde = 2390. shouldn't the value be 5 days instead of 4? because we include the last day in the calculation. note that the claims_elig function of the claims package appears to be calculating this correctly, but just wanted to flag it for correction in the table itself.

dcolombara commented 4 years ago

@preason66 … good catch! Thanks for pointing this out. I'll fix this momentarily.