-
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
Sensitivity analysis - plotting dsa #354
Comments
Hi! |
Hi, Thanks for responding. This is my first model for HE. I don't know what a small version is but I have pasted the full version in case it makes it easy to understand. 😄 Vennela 1. define transitions ----mat_aad <- define_transition( mat_ca <- define_transition( mat_sa <- define_transition( plot(mat_aad) aad_sr_af_km <- read_excel("aad_sr_af_km.xlsx") p_aad_sr_af_surv <- flexsurv::flexsurvreg( plot(p_aad_sr_af_surv) ca_sr_af_km <- read_excel("ca_sr_af_km.xlsx") p_ca_sr_af_surv <- flexsurv::flexsurvreg( plot(p_ca_sr_af_surv) par_mod <- define_parameters( base_case = 0.30, rrCA = 1.84, p_af_sr_aad = ifelse(markov_cycle ==1, base_case, 0), p_af_sr_ca = ifelse(markov_cycle==1, base_caserrCA, 0), p_af_hf = 0.027, hf_dead <- read_excel("hf_death_km.xlsx") p_hf_dead_surv <- flexsurv::flexsurvreg( plot(p_hf_dead_surv) par_mod <- modify(par_mod, par_mod <- modify(par_mod,
state_af <- define_state( cost_med = 0, state_sr <- define_state( state_stroke <- define_state( state_hf <- define_state( state_death <- define_state( strat_aad <- define_strategy( strat_ca <- define_strategy( strat_sa <- define_strategy( res_mod <- run_model( res_mod summary(res_mod, threshold = c(10000, 20000, 30000, 40000)) plot(res_mod) def_dsa <- define_dsa( res_dsa <- run_dsa(model =res_mod, dsa = def_dsa) res_dsa plot(res_dsa, strategy = "ca", |
It worked after not working all night and all morning! I am not sure how it was fixed, as not changed code. Thank you for looking at my query though. Vennela |
Github's magic ;) |
This is my model
![Screenshot 2022-03-28 at 10 38 26 (2)](https://user-images.githubusercontent.com/102517066/160371380-fb1b1509-f44b-4b6c-a16b-fb786dde6b94.png)
I keep getting this error and I am not sure where the problem is?
![Screenshot 2022-03-28 at 10 38 10 (2)](https://user-images.githubusercontent.com/102517066/160371428-a87f7887-b52e-4b2b-a777-4f16dd5543e5.png)
Can someone please help me?
The text was updated successfully, but these errors were encountered: