sbied | Simulation-based Inference for Epidemiological Dynamics
kandi X-RAY | sbied Summary
kandi X-RAY | sbied Summary
Simulation-based Inference for Epidemiological Dynamics
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sbied
sbied Key Features
sbied Examples and Code Snippets
Community Discussions
Trending Discussions on sbied
QUESTION
Simulating an SIR model in R. I have a data set I am trying to plot accurately with the model. I am right now using the particle filter function, then would like to use the corresponding logLik method on the result. When I do this, I get "[1] -Inf" as a result. I can't find in the documentation why this is and how I can avoid it. Are my parameters for the model not accurate enough? Is there something else wrong?
My function looks like this: SIRsim %>% pfilter(Np=5000) -> pf logLik(pf)
From an online course lesson entitled Likelihood for POMPS https://kingaa.github.io/sbied/pfilter/ , this is the R script for the lesson. However, the code works here... I'm not sure how to reproduce my specific problem with it and unfortunately cannot share the dataset or code I am using because it is for academic research.
...ANSWER
Answered 2021-Jan-03 at 22:31If I set Beta=100
in the code above I can get a negative-infinite log-likelihood.
Replacing the measurement-error snippet with this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sbied
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page