You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/evaluation.R
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
#' Evaluation of Audit Samples using Confidence / Credible Bounds
2
2
#'
3
-
#' @description This function takes a data frame (using \code{sample}, \code{bookValue}, and \code{auditValues}) or summary statistics (using \code{nSumstats} and \code{kSumstats}) and evaluates the audit sample according to the specified method. The returned object is of class \code{jfaEvaluation} and can be used with associated \code{print()} and \code{plot()} methods.
3
+
#' @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 evaluates the audit sample according to the specified method. The returned object is of class \code{jfaEvaluation} and can be used with associated \code{print()} and \code{plot()} methods.
4
4
#'
5
5
#' For more details on how to use this function see the package vignette:
6
6
#' \code{vignette("jfa", package = "jfa")}
@@ -14,7 +14,7 @@
14
14
#' csA = 1, csB = 3, csMu = 0.5)
15
15
#'
16
16
#' @param confidence the required confidence level for the bound. Default is 0.95 for 95\% confidence.
17
-
#' @param method the method that is used to evaluate the sample. This can be either one of \code{poisson}, \code{binomial}, \code{hypergeometric}, \code{stringer}, \code{stringer-meikle}, \code{stringer-lta}, \code{stringer-pvz}, \code{rohrbach}, \code{moment}, \code{direct}, \code{difference}, \code{quotient}, or \code{regression}.
17
+
#' @param method the method that is used to evaluate the sample. This can be either one of \code{poisson}, \code{binomial}, \code{hypergeometric}, \code{mpus}, \code{stringer}, \code{stringer-meikle}, \code{stringer-lta}, \code{stringer-pvz}, \code{rohrbach}, \code{moment}, \code{direct}, \code{difference}, \code{quotient}, or \code{regression}.
18
18
#' @param N an integer specifying the total number of units (transactions or monetary units) in the population.
19
19
#' @param sample a data frame containing at least a column of Ist values and a column of Soll (true) values.
20
20
#' @param bookValues a character specifying the column name for the Ist values in the sample.
@@ -40,6 +40,7 @@
40
40
#' \item{\code{poisson}: The confidence bound taken from the Poisson distribution. If combined with \code{prior = TRUE}, performs Bayesian evaluation using a \emph{gamma} prior and posterior.}
41
41
#' \item{\code{binomial}: The confidence bound taken from the binomial distribution. If combined with \code{prior = TRUE}, performs Bayesian evaluation using a \emph{beta} prior and posterior.}
42
42
#' \item{\code{hypergeometric}: The confidence bound taken from the hypergeometric distribution. If combined with \code{prior = TRUE}, performs Bayesian evaluation using a \emph{beta-binomial} prior and posterior.}
43
+
#' \item{\code{mpu}}: Mean per unit estimator using the observed sample taints.
43
44
#' \item{\code{stringer}: The Stringer bound (Stringer, 1963).}
44
45
#' \item{\code{stringer-meikle}: Stringer bound with Meikle's correction for understatements (Meikle, 1972).}
45
46
#' \item{\code{stringer-lta}: Stringer bound with LTA correction for understatements (Leslie, Teitlebaum, and Anderson, 1979).}
Copy file name to clipboardExpand all lines: R/planning.R
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
#' Frequentist and Bayesian Planning for Audit Sampling
2
2
#'
3
-
#' @description This function calculates the required sample size for an audit, based on the poisson, binomial, or hypergeometric likelihood. A prior can be specified to perform Bayesian planning. The returned object is of class \code{jfaPlanning} and can be used with associated \code{print()} and \code{plot()} methods.
3
+
#' @description This function calculates the required sample size for an audit, based on the Poisson, binomial, or hypergeometric likelihood. A prior can be specified to perform Bayesian planning. The returned object is of class \code{jfaPlanning} and can be used with associated \code{print()} and \code{plot()} methods.
4
4
#'
5
5
#' For more details on how to use this function see the package vignette:
0 commit comments