seattleflu / incidence-mapper

R interface to database, map model training, and model data API Server
MIT License
5 stars 1 forks source link

make selectFromDB and smoothModel understand flu_shot = (yes,no, dontknow) #105

Closed famulare closed 4 years ago

famulare commented 4 years ago

For modeling vaccine efficacy across all strata with random effects, despite only have flu-shot data for some subjects, we need to make the model understand flu_shot == NaN as flu_shot=="dontknow". The in modeling, we make no the reference state, so the log-odds of efficacy is given by the factor flu_shot == yes and we can provide an averaged prediction for don't knows.

famulare commented 4 years ago

addressed up front in selectFromDb on inla-latent branch https://github.com/seattleflu/incidence-mapper/blob/fe621c4d7bbc6a3412a9adfd659e9cda7309636a/dbViewR/R/selectFromDB.R#L158