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

Other cause mortality #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RobertASmith
Copy link

Hi @n8thangreen,

Was just going through this paper. Very useful addition to the literature.

Had two complaints (because I'm a miserable sod).

  1. The cycles going across columns. Will ignore this.
  2. The lookup for other cause mortality occurring within the function creating transition probabilities.

This pull request has a suggestion for 2 - creating the age specific other cause mortality in a vector outside the function. This should speed things up a bit.

Kind regards,

Rob

@n8thangreen
Copy link
Contributor

n8thangreen commented Nov 14, 2022

Hi @RobertASmith
Thanks for this.

  1. I remember Paul didn't like this either. I think we decided to structure like this so that the print statement looked the nicest.
  2. So this is precomputing the table and passing this in? Run time was not a problem for our model and hiding the lookup in the function means we pass one less thing around. I agree yours is more generalisable and no doubt faster. If say there were different life table for different countries I can see this advantage. We could also partially execute the trans prob function for a given lookup e.g. purrr::partial().

@RobertASmith
Copy link
Author

The pull request is basically an excuse to say "nice paper".

Don't worry about (1), I won't tell Paul :)

I saw you are working on a decision tree package, quite interested to see where that goes, TreeAge is unnecessarily expensive.

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

Successfully merging this pull request may close these issues.

2 participants