m6thu / indiv_abxduration

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

gen_StartBact should use a single value prob_StartBact_R instead of a vector #2

Closed m6thu closed 6 years ago

m6thu commented 6 years ago

prob_abxprior, prob_StartBact_R are new parameters instead of prob_StartBact

model_simple.R

model_binary.R prob of having had antibiotics prior to admission = 0.2 (prob_abxprior) prob_start of S+s = 1 - gen_StartBact_R prob_start of sR+Sr+sr = gen_Startbact_R prob S = (1-prob_abxprior)(1-gen_StartBact_R) prob s = prob_abxprior(1-gen_StartBact_R) prob sR = (prob_abxprior/2)gen_StartBact_R prob Sr = (1-prob_abxprior)gen_StartBact_R prob sr = (prob_abxprior/2)*gen_StartBact_R

model_frequency.R same as in model_binary.R

m6thu commented 6 years ago

Closed model_binary and model_simple based on updated equations. Frequency gen is based on gut data and is another issue instead