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.
Resolves #143
Computes the suite of power metrics required by AMAP. The user can tailor these using the new
control
argument torun_assessment
; in particular by specifying the target power and the target detectable trend.Have also made the construction of the original dtrend metric (detectable trend on the log-scale) compatible with the power control parameters.
Have tested (on a limited set of data) and updated the external data vignette to illustrate the use of the
control
argument with the target power and trend used by AMAP in it's last mercury assessment.Have added some documentation and filled in some gaps in other documentation so that roxygen2 doesn't throw any warnings.
The power metrics are contained in a new element of each assessment list. They do not yet print out in the summary table. I will raise a new issue for this and deal with it when I work on the summary tables.