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

Inconsistency in summary table #44

Closed
giabaio opened this issue Jan 19, 2023 · 4 comments
Closed

Inconsistency in summary table #44

giabaio opened this issue Jan 19, 2023 · 4 comments

Comments

@giabaio
Copy link
Owner

giabaio commented Jan 19, 2023

@n8thangreen I think there's a slight inconsistency in the way you've refactored the summary method. You have coded rownames(EU_tab) <- he$interventions[c(he$ref, he$comp)] which implies that the first row of the table must be the reference intervention. But this doesn't propagate to the full table, so in the examples I was checking, you actually have data in the order provided by the eff, cost matrices (so: first column=intervention1, second column=intervention2 and so, with no reference to the choice of the reference intervention), but then the row names are not matching that.

The drawback is that you'd get blatant inconsistencies, such as with the most cost-effective intervention not being associated with the highest expected utility (simply because of reordering of the row labels...).

I've fixed it temporarily by simply changing the code above to rownames(EU_tab) <- he$interventions --- but I'm not sure this breaks something else down the line...

Can you please when you have a moment have a look?

Thanks!

@n8thangreen
Copy link
Contributor

Hi @giabaio I'm not quite sure what to do. Could you send me a reprex, please?
what is the example you're looking at? whats the error and what should it be?
Thanks!

@n8thangreen
Copy link
Contributor

closed with 6a006e3

@n8thangreen
Copy link
Contributor

@giabaio could you close this please (I don't seem to have rights)

@giabaio giabaio closed this as completed Jan 27, 2023
@giabaio
Copy link
Owner Author

giabaio commented Jan 27, 2023 via email

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