-
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
Starting_values incorrectly calculated in the ICER calculation #343
Comments
Hi, s3 <- define_state(
x = 987,
y = 1726,
z = 963,
starting_values = define_starting_values(
y = 10
) That way, y is incremented only when entering the s3 state. |
Thank you, @KZARCA |
Hello, A B C D B 0.50 0 0.25 0.25 C 0 0 0.80 0.20 D 0 0 0 1 A <-define_state( B <-define_state(...) C <- define_state( model <- run.model(strategy, arm1, arm2, parameters, cycles, cost=total.cost, effect, init=c(100,0,0,0)) |
Hi, |
Here is the summary of one of my models, if helps, where you can see the "total.cost" does not include "Cost_startingvalues" that was added in one state as starting_values. And neither in the calculation of cost difference betn. two strategies. Thank you.
|
For now, you can only use starting values that way: A <- define_state(
cost_x=130,
cost_y=150,
cost_z=0,
total_cost = cost_x+cost_y+cost_z
starting_values=define_starting_values(
total_cost=500
) |
You first need to use the development version ( |
It is not working still. It seems it's assigning some part of starting values to the very first cycle (not sure in which proportion), even if the first cycle have 0 transition for the state with starting values. Cannot find the exact bug. |
Hope it's addressed to another developer from the mailing list! It will take a tremendous amount of time for me if I have to pull request as I am not a developer. Thanks, |
Don't worry, you just have to write devtools::install_github("pierucci/heemod") in your R console. |
Now, seems that it counts starting_values of the cost for new entrant in that stage in the current cycle; however, it does not add the stable cost for the stage. For e.g., in the above example, costs are calculated for the new entering numbers (in current cycle) only 500. But it does not assign them the stable cost, i.e. 130+150. Any help will be super great. I am, at the moment, forced to use only excel even if I very much would like to use this package, especially it will be helpful for further sensitivity analysis. |
It would be very helpful if you could write a working minimal reproducible example with the result you would expect, so that I can easily check what is going on. |
Is it possible that I can send you the code to your mail instead of sharing it here? Otherwise I will create some dummy code as I cannot share the full code in open forum right now. |
Please, create a dummy code, the simplest as possible, it will be much easier for me. |
dummycode.txt
Stage A in the code is semi-absorbing stage where newly entering counts have some first time cost that do not apply to the carried over counts from the same stage of the previous cycle. I have already checked the counts for all the stages and cycles and they are alright. Same for the utility values. Only a problem with the cost because I am adding a starting cost (1000) to only new entering counts in stage A. Please let me know if not clear. Thank you very much. |
I think I fixed the issue, it was due to a conflict between "end" method and starting values. You can install the new development version of heemod : |
Thanks a lot, @KZARCA ! I've now tried it in different strategies and it works alright for calculating starting values of new entering counts in the cycle. Hopefully, only will come back with other feedback/questions. |
You're very welcome ! |
Hello,
I have a 'semi-absorbing' state in the model, meaning a portion of patients alive from the previous cycle remains in the same state. In addition, anoter portion of patients from the other states enters into this state in the current cycle.
E.g. C state in the transition matrix
A 0 0.50 0.25 0.25
B 0.50 0 0.25 0.25
C 0 0 0.80 0.30
D 0 0 0 1
I'd like to add an intervention cost only to the portion that enters into this state in the current cycle, i.e., 0.25 from state A and 0.25 from state B.
Because the portion carrying forward from the previous cycle, i.e., 0.80 from state C itself, already had the intervention cost in the previous cycle. Is there a possibility to do it in heemod?
Thanks,
The text was updated successfully, but these errors were encountered: