Skip to content

Commit

Permalink
Update for jfa 0.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
koenderks committed May 1, 2021
1 parent 49b0993 commit 6218bf0
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 24 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: jfa
Title: Bayesian and Classical Audit Sampling
Version: 0.5.3
Date: 2021-04-26
Date: 2021-05-01
Authors@R:
person(given = "Koen",
family = "Derks",
Expand Down
10 changes: 5 additions & 5 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# jfa 0.5.3

- Changed the default `likelihood = 'poisson'` in the `planning()` function to `likelihood = 'binomial'` to be consistent across functions.
- Changed the order of most function arguments so that `materiality` and `minPrecision` are among the first ones.
- Removed the default value of `confidence = 0.95` in all applicable functions, it currently has no default so that the user is required to give an input.
- Made `method = 'hypotheses'` and `method = 'median'` in the `auditPrior()` function available for `likelihood = 'hypergeometric'`.
- Updated the documentation for all functions with more simple examples.
- Removed the default value `confidence = 0.95` in all applicable functions. `confidence` currently has no default value so that the user is required to give an input.
- Changed the default `likelihood = 'poisson'` in the `planning()` function to `likelihood = 'binomial'` to be consistent across all functions.
- Changed the order of most function arguments so that `materiality` and `minPrecision` are among the first ones to be shown.
- Made `expectedErrors > 0` available for `method = 'hypotheses'` in the `auditPrior()`.
- Made `method = 'hypotheses'` and `method = 'median'` in the `auditPrior()` function available for `likelihood = 'hypergeometric'`.
- Added `bram` as a method for the `auditPrior()` function. `method = 'bram'` computes a prior distribution with a given mode (`expectedError`) and upper bound (`ub`).
- Fixed an error in the mode of the gamma posterior distribution from the `evaluation()` function in which `+1` was added to the beta parameter, resulting in slighly lower modes than the correct ones.
- Made a correction to the calculation of the beta-binomial prior and posterior so that the posterior parameter `N` has the correct value of `N = N - n` (current) instead of `N - n + k` (before).
- Updated the documentation for the functions with simpler examples.

# jfa 0.5.2

Expand Down
2 changes: 1 addition & 1 deletion R/auditPrior.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#'
#' @description This function creates a prior distribution with audit information to be used in the \code{planning()} and \code{evaluation()} functions via their \code{prior} argument. The function returns an object of class \code{jfaPrior} which can be used with associated \code{print()} and \code{plot()} methods.
#'
#' For more details on how to use this function see the package vignette:
#' For more details on how to use this function, see the package vignette:
#' \code{vignette('jfa', package = 'jfa')}
#'
#' @usage auditPrior(confidence, materiality = NULL, expectedError = 0,
Expand Down
2 changes: 1 addition & 1 deletion R/evaluation.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#'
#' @description This function takes a data frame (using \code{sample}, \code{bookValues}, and \code{auditValues}) or summary statistics (using \code{nSumstats} and \code{kSumstats}) and performs inference on the misstatement in the sample. The function returns an object of class \code{jfaEvaluation} which can be used with associated \code{print()} and \code{plot()} methods.
#'
#' For more details on how to use this function see the package vignette:
#' For more details on how to use this function, see the package vignette:
#' \code{vignette('jfa', package = 'jfa')}
#'
#' @usage evaluation(confidence, materiality = NULL, minPrecision = NULL, method = 'binomial',
Expand Down
2 changes: 1 addition & 1 deletion R/planning.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#'
#' @description This function calculates the minimum sample size for a statistical audit sample based on the Poisson, binomial or hypergeometric likelihood. The function returns an object of class \code{jfaPlanning} which can be used with associated \code{print()} and \code{plot()} methods.
#'
#' For more details on how to use this function see the package vignette:
#' For more details on how to use this function, see the package vignette:
#' \code{vignette('jfa', package = 'jfa')}
#'
#' @usage planning(confidence, materiality = NULL, minPrecision = NULL,
Expand Down
2 changes: 1 addition & 1 deletion R/report.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#'
#' @description This function takes an object of class \code{jfaEvaluation} as returned by the \code{evaluation()} function automatically generates a \code{html} or \code{pdf} report containing the analysis results and their interpretation.
#'
#' For more details on how to use this function see the package vignette:
#' For more details on how to use this function, see the package vignette:
#' \code{vignette('jfa', package = 'jfa')}
#'
#' @usage report(object, file = 'report.html', format = 'html_document')
Expand Down
2 changes: 1 addition & 1 deletion R/selection.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#'
#' @description This function takes a data frame and performs statistical sampling according to one of three algorithms: random sampling, cell sampling, and fixed interval sampling. Sampling is done on the level of two possible sampling units: records or monetary units. The function returns an object of class \code{jfaSelection} which can be used with associated \code{print()} and a \code{plot()} methods.
#'
#' For more details on how to use this function see the package vignette:
#' For more details on how to use this function, see the package vignette:
#' \code{vignette('jfa', package = 'jfa')}
#'
#' @usage selection(population, sampleSize, units = 'records', algorithm = 'random',
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<img src='https://github.com/koenderks/jfa/raw/master/man/figures/readme/logo/jfaLogo.png' width='149' height='173' alt='logo' align='right' margin-left='20' margin-right='20'/>

`jfa` is an R package for statistical audit sampling. The package provides five functions for planning, performing, evaluating, and reporting an audit sample. Specifically, these functions implement standard audit sampling techniques for calculating sample sizes, selecting items from a population, and evaluating the misstatement from a data sample or summary statistics. Additionally, the `jfa` package allows the user to create a prior probability distribution to perform Bayesian audit sampling using these functions.
`jfa` is an R package for statistical audit sampling. The package provides five functions for planning, performing, evaluating, and reporting an audit sample. Specifically, these functions implement standard audit sampling techniques for calculating sample sizes, selecting items from a population, and evaluating the misstatement from a data sample or from summary statistics. Additionally, the `jfa` package allows the user to create a prior probability distribution to perform Bayesian audit sampling using these functions.

## Overview

Expand All @@ -26,7 +26,7 @@ For complete documentation of `jfa`, visit the [package website](https://koender

## 1. Installation

The released version of `jfa` can be downloaded from [CRAN](https://cran.r-project.org/package=jfa) by running the following command in R or RStudio:
The most recently released version of `jfa` can be downloaded from [CRAN](https://cran.r-project.org/package=jfa) by running the following command in R or RStudio:

```
install.packages('jfa')
Expand Down
1 change: 1 addition & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This is jfa version 0.5.3. In this version I have:

* Updated documentation for all functions.
* Added several new methods to two existing functions.
* Fixed an error in the evaluation function.

## Test environments
Expand Down
4 changes: 2 additions & 2 deletions inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ bibentry(bibtype = "Manual",
title = "jfa: Bayesian and Classical Audit Sampling",
author = person("Koen", "Derks"),
year = "2021",
note = "R package version 0.5.2",
note = "R package version 0.5.3",
url = "https://CRAN.R-project.org/package=jfa",
textVersion = "Derks, K. (2021). jfa: Bayesian and Classical Audit Sampling. R package version 0.5.2.")
textVersion = "Derks, K. (2021). jfa: Bayesian and Classical Audit Sampling. R package version 0.5.3.")
2 changes: 1 addition & 1 deletion man/auditPrior.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/evaluation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions man/figures/readme/downloads/downloads.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions man/figures/render-figures.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ xBreaks <- plotData[['date']]
yBreaks <- pretty(c(0, plotData[['count']], max(plotData[['count']]) + 200), n = 6)

# Specify the specific release dates (rounded down)
releases <- c('2020-01-01', '2020-08-01', '2020-09-01', '2020-11-01', '2021-01-01', '2021-03-01', '2021-04-01')
releaseLabs <- c('0.1.0', '0.2.0', '0.3.0', '0.4.0', '0.5.0', '0.5.1', '0.5.2')
releases <- c('2020-01-01', '2020-08-01', '2020-09-01', '2020-11-01', '2021-01-01', '2021-03-01', '2021-04-01', '2021-05-01')
releaseLabs <- c('0.1.0', '0.2.0', '0.3.0', '0.4.0', '0.5.0', '0.5.1', '0.5.2', '0.5.3')

# Create the figure
p <- ggplot2::ggplot(plotData, ggplot2::aes(x = date, y = count)) +
Expand Down
Binary file modified man/manual/jfa_0.5.3.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion man/planning.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/report.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/selection.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6218bf0

Please sign in to comment.