-
Notifications
You must be signed in to change notification settings - Fork 14
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
Parameter and output documentation. #299
Conversation
…on't think it needs to be multiplied by psi. When these values are drawn in lines 135-140 of biting_process.R they get multiplied by psi in line 144. That means we're effectively multiplying these values by psi^2. I think we can correct this by adjusting the calculation thusly. The two tests at the end would then need adjusting (one way or another) to reflect this change - which could use improving.
… to rendering tests to reflect additional outputs.
…n from another PR.
…od to tidy up. First, n_severe isn't a prevalence output (model.R). I've reorganised the parameter documentation list into an order I think is a bit more intuitive, with consistency between code and documentation.
bcbafc2
to
6ec5e3d
Compare
R/parameters.R
Outdated
#' please set vaccine strategies with the convenience functions in | ||
#' `pev_parameters.R:set_pev_epi` | ||
#' `pev_parameters.R:set_mass_pev` | ||
#' `pev_parameters.R::set_pev_epi` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a thing?
If we're going to make these references more formal shouldn't we use Roxygen syntax?
#' `pev_parameters.R::set_pev_epi` | |
#' \code{\link{set_pev_epi}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good shout! I'm not super familiar with the syntax, so thanks for pointing this out. I've now changed all the references to other functions to links to the help pages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Richard
Looks like a few of the new links in the docs are upsetting the checks:
❯ checking Rd cross-references ... WARNING
Missing link or links in Rd file 'get_parameters.Rd':
'set_betnets' 'set_epi_outputs'
See section 'Cross-references' in the 'Writing R Extensions' manual.
Otherwise looks great
I've corrected the set_bednets function spelling, but I think I'll leave the epi outputs in, then merge this one after we merge that branch. |
calculate_eir function correction
dqrng just released a new version, which means we can stop relying on the mrc-ide r-universe as an additional repository.
Depend on dqrng from CRAN again.
… to rendering tests to reflect additional outputs.
…n from another PR.
…de/malariasimulation into lm_pcr_prevalence_explicit
…od to tidy up. First, n_severe isn't a prevalence output (model.R). I've reorganised the parameter documentation list into an order I think is a bit more intuitive, with consistency between code and documentation.
…parameter help page.
…/mrc-ide/malariasimulation into parameter_documentation_ordering
This PR labels detection outputs explicitly as pcr or lm detectable.
…od to tidy up. First, n_severe isn't a prevalence output (model.R). I've reorganised the parameter documentation list into an order I think is a bit more intuitive, with consistency between code and documentation.
…parameter help page.
…/mrc-ide/malariasimulation into parameter_documentation_ordering
There are a few parameter documentation things I think it would be good to tidy up. First, n_severe isn't a prevalence output (model.R). I've then reorganised the parameter documentation list into an order I think is a bit more intuitive, with consistency between code and documentation. Nothing has fundamentally changed, just the order, and some small text things to improve clarity, e.g., "probability of detection by light-microscopy when asymptomatic".