m6thu / indiv_abxduration

modelling day project on abx duration (individual model)
0 stars 0 forks source link

p.r redundancy #4

Closed m6thu closed 6 years ago

m6thu commented 6 years ago

In model_binary.R line 174 p.r, probability of starting abx on the first day of stay is different, from line 225 p.r of the subsequent stays

Define new p.rstart for probability of starting abx on the first day of stay and p.r means probability of abx r each day

Might need to make changes to model_simple.R and model_frequency.R too

moyinNUHS commented 6 years ago

redefined probability of starting antibiotic.r p.r.day1 is the probability of starting antibiotics on day 1 of admission p.r.dayafter is the daily probability of starting antibiotics after admission