Skip to content
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

Combining models into total model #353

Closed
gilaiwy opened this issue Nov 18, 2021 · 4 comments
Closed

Combining models into total model #353

gilaiwy opened this issue Nov 18, 2021 · 4 comments

Comments

@gilaiwy
Copy link

gilaiwy commented Nov 18, 2021

Hello!

I have been trying to combine submodels to run as one model into the total model like this:

total_model<-run_model(
soc=soc,
H6=H6,
parameters = model_parameters,
method = "beginning",
cycles=21,
cost=cost,
effect=utility
)
total_model

starting from:
total_model<-run_model(
soc_tp=soc_tp,
soc_fp=soc_fp,
H6-tp=H6_tp,
H6_fp=H6_fp,
parameters = model_parameters,
method = "beginning",
cycles=21,
cost=cost,
effect=utility
)
total_model

the thing is, 'soc' model is the sum of 2 submodels based on having a false positive vs true positive test results which leads to different transition matrices: 'soc_fp' and 'soc_tp' models
same goes for the H6 model.

If I entered every submodel separately into the total model they will run as separate strategies instead of 2 subcomponents of the same strategy. Is there a way to combine the 'soc_fp' and 'soc_tp' into an soc model?

@KZARCA
Copy link
Collaborator

KZARCA commented May 2, 2022

Hi, did you find a solution to your problem or do you still need help?

@gilaiwy
Copy link
Author

gilaiwy commented May 4, 2022

Hi! Unfortunately I have not found a solution to this problem. Help would be greatly appreciated.

@KZARCA
Copy link
Collaborator

KZARCA commented May 4, 2022

I think one way to solve this problem is to use variables in the transition matrix, previously defined with define_parameters.

@gilaiwy
Copy link
Author

gilaiwy commented May 4, 2022

Will give it a try, thank you very much for the suggestion

@KZARCA KZARCA closed this as completed May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants