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

Define linear model for fractional values of linear.years #22

Open
rplzzz opened this issue Apr 25, 2018 · 0 comments
Open

Define linear model for fractional values of linear.years #22

rplzzz opened this issue Apr 25, 2018 · 0 comments

Comments

@rplzzz
Copy link
Contributor

rplzzz commented Apr 25, 2018

Right now when running samples we round our sample values of linear.years to the nearest integer. In the long run that is going to create some problems for doing inference with these samples. We can (relatively) easily define the model for fractional values by interpreting a fractional number of years as a weighted average of the two surrounding integer values. Thus, linear.years==3.4 is a 40% weighting of a 3-year model averaged with a 60% weighting of a 4-year model. This will allow us to avoid having to do inference with a mixture of discrete and continuous parameters.

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

1 participant