Exposes more LFMCMC methods and updates epiworld #52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several significant updates to the
epiworldR
package, focusing on theLFMCMC
model, namespace management, and versioning. The changes improve the functionality and robustness of the package, particularly in the handling of theLFMCMC
model.Versioning and Package Information:
0.4-3
to0.5-0
in theDESCRIPTION
file.inst/include/epiworld/epiworld.hpp
to reflect the new version0.5.0
.Namespace Management:
S3method
entries related toepiworld_lfmcmc
from theNAMESPACE
file. [1] [2]export
entries for functions related toLFMCMC
such asget_accepted_params
,get_accepted_stats
, and others in theNAMESPACE
file. [1] [2] [3]LFMCMC Model Enhancements:
stopifnot_lfmcmc
function to validateLFMCMC
objects inR/LFMCMC.R
.R/LFMCMC.R
to includestopifnot_lfmcmc
checks, ensuring that the input is a validLFMCMC
object. [1] [2]R/LFMCMC.R
to retrieve accepted parameters, statistics, and other related data from theLFMCMC
model.print
method inR/LFMCMC.R
to include aburnin
parameter for discarding initial samples.test-lfmcmc.R
to cover the above enhancementsC++ Backend Adjustments:
LFMCMC
class ininst/include/epiworld/math/lfmcmc/lfmcmc-bones.hpp
to include new methods for retrieving accepted parameters and statistics.print
method ininst/include/epiworld/math/lfmcmc/lfmcmc-meat-print.hpp
to handle theburnin
parameter.run
method ininst/include/epiworld/math/lfmcmc/lfmcmc-meat.hpp
to improve parameter handling and kernel function calls. [1] [2]Miscellaneous Improvements:
EPI_DEFAULT_TSEQ
instead of specific types. [1] [2] [3] [4]inst/include/epiworld/model-meat.hpp
for better clarity.These changes collectively enhance the usability, reliability, and maintainability of the
epiworldR
package, particularly in the context of theLFMCMC
model.