k-sys / covid-19

A collection of work related to COVID-19

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adjusted onset not being used for sampling

perone opened this issue · comments

Great notebooks. I was reviewing the notebook because I'm planning to use for some modelling and I found that block of code:

def create_and_run_model(name, state):
    confirmed = state.positive.diff().dropna()
    onset = confirmed_to_onset(confirmed, p_delay)
    adjusted, cumulative_p_delay = adjust_onset_for_right_censorship(onset, p_delay)
    return MCMCModel(name, onset, cumulative_p_delay).run()

The adjusted series, which is the onset with the right censorship adjusted is being computed but it is not the one used on the MCMCModel later, is there a reason for this or is it a typo ?

commented

Thanks for the quick answer @k-sys !