-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vaccination Markov Model - issue with initial cost #345
Comments
Hi, |
Hi Kevin, thanks for the help, the full code is here
|
It's not a bug, heemod uses a first-cycle correction named "life-table" by default. You can read more on https://journals.sagepub.com/doi/10.1177/0272989X09340585 If you want the transition to occur at the beginning of the cycle, you can choose method = "beginning". |
'beginning' and 'end' may be inversed in heemod. Per the article 'beginning' should yield an overestimate and 'end' should yield an underestimate. This is not reflected in the model.
|
OK thanks for your input, I will change it in the next heemod version. |
Thank you. |
@KZARCA, I am facing another issue with the run_dsa function. It works well when I define only 1 sensitivity analyses to be done (i.e., cost_vacc, discount_rate [dr]); however, when I define multipe, I get the following error: Running DSA on strategy 'vaccination'... Code is below:
|
Hi, all your variables should be encapsulated within the function params <- define_parameters( |
Hi There. I am using heemod for a simulation and I realized that the update related to this issue has changed the results. I checked (by looking at the counts -numebr of people in each state- in each cycle) and realized that the update has changed the package such that with the "beginning" method, transitions happen at the end of the cycle, and with the "end" method, transitions happened at the beginning of the cycle. I think this is probably incorrect though. Maybe there is an error in calculating costs and effects related to the method chosen, but the counts were correct, and now incorrect with this update. Thanks for your consideration. |
I'm running a simple time-homogeneous Markov model. It's unclear why the final cost of drugs is $3,960 rather than $4,000. The cost of vaccination is $4 and the initial state count for A == 1,000 (i.e., healthy children). Could this be a bug?
My abridged code is below:
The text was updated successfully, but these errors were encountered: