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

estimate of serial interval #107

Open
Suzzan-1991 opened this issue Feb 11, 2021 · 0 comments
Open

estimate of serial interval #107

Suzzan-1991 opened this issue Feb 11, 2021 · 0 comments

Comments

@Suzzan-1991
Copy link

Suzzan-1991 commented Feb 11, 2021

Hi,
Got error when I try to run epiestim for serial interval. Can you please help me with this

library(EpiEstim)
## Not run:
## Note the following examples use an MCMC routine
## to estimate the serial interval distribution from data,
## so they may take a few minutes to run
## load data on rotavirus
data("MockRotavirus")
## estimate the serial interval from data
SI_fit <- coarseDataTools::dic.fit.mcmc(dat = MockRotavirus$si_data,
                                        dist="G",
                                        init_pars=init_mcmc_params(MockRotavirus$si_data, "G"),
                                        burnin = 1000,
                                        n.samples = 5000)
## use check_cdt_samples_convergence to check convergence
converg_diag <- check_cdt_samples_convergence(SI_fit@samples)
converg_diag
## End(Not run)


the error 

Error in coarseDataTools::dic.fit.mcmc(dat = MockRotavirus$si_data, dist = "G",  : 
  
Error: unused argument (init_pars = c(1.14145679384708, 1.33716475095785))
Try adjusting the starting parameters (init.pars), or changing the optimization method (opt.method).
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