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

Implement util function to sample model parameters from population #212

Open
9 tasks
DavAug opened this issue May 15, 2021 · 0 comments
Open
9 tasks

Implement util function to sample model parameters from population #212

DavAug opened this issue May 15, 2021 · 0 comments

Comments

@DavAug
Copy link
Owner

DavAug commented May 15, 2021

  • Create a Utilities module
  • Move compute_pointwise_loglikelihood to Utilities module
  • Implement a function called sample_population
  • Takes posterior_samples in form a xarray.Dataset
  • Takes list of erlo.PopulationModel
  • Names of the modelled parameters
  • Returns a xarray.Dataset with samples from the population model of the same size as samples in the posterior_samples.
  • The individual coordinate is 'population'
  • For pooled and heterogeneous models the samples can just be copied.
@DavAug DavAug self-assigned this May 17, 2021
@DavAug DavAug removed their assignment May 20, 2021
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