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

Export LFMCMC #25

Closed
3 tasks done
gvegayon opened this issue Oct 10, 2024 · 0 comments · Fixed by #27
Closed
3 tasks done

Export LFMCMC #25

gvegayon opened this issue Oct 10, 2024 · 0 comments · Fixed by #27
Assignees
Milestone

Comments

@gvegayon
Copy link
Member

gvegayon commented Oct 10, 2024

We need the following:

  • Create a wrapper that exports LFMCMC<> object to R (under src/ and the corresponding wrapper in R under R/ that should be exported with #' @export).
  • Create wrapper methods that allow calling the methods in LFMCMC<> from within R.
  • Create an example using the SIR model as featured here as a Vignette.

Ideal usage in R:

library(epiworldR)

observed_cases <- read.csv(...)

model <- ModelSIR(...)

mycalib <- LFMCMC() |>
  set_kernel_fun() |> # is using a default, for now
  set_model(model) |> # This is mimicking set_simulation_fun and set_summary_fun in one step
  set_proposal_fun() |> # Use default for now
  set_observed_data(observed_cases)

calibrate(mycalib)

summary(mycalib)
@gvegayon gvegayon changed the title Export LFMCMC [DRAFT] Export LFMCMC Oct 10, 2024
@apulsipher apulsipher added this to the ForeSITE 1 milestone Oct 10, 2024
@apulsipher apulsipher linked a pull request Oct 15, 2024 that will close this issue
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 a pull request may close this issue.

2 participants