Skip to content

Commit

Permalink
Added reference to Krishnamoorthy in documentation; fixed false-posit…
Browse files Browse the repository at this point in the history
…ive spelling errors
  • Loading branch information
kloppen committed Jun 17, 2020
1 parent c36c520 commit eac7522
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
16 changes: 14 additions & 2 deletions R/basis.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#' \code{p = 0.90} and \code{conf = 0.95}. To get \eqn{kA}, set
#' \code{p = 0.99} and \code{conf = 0.95}.
#'
#' The k-factor is calculated using equation 2.2.3 of
#' Krishnamoorthy and Mathew (2008).
#'
#' This function has been validated against the \eqn{kB} tables in
#' CMH-17-1G for each value of \eqn{n} from \eqn{n = 2} to \eqn{n = 95}.
#' It has been validated against the \eqn{kA} tables in CMH-17-1G for each
Expand All @@ -23,6 +26,10 @@
#'
#' @return the calculated factor
#'
#' @references
#' K. Krishnamoorthy and T. Mathew, Statistical Tolerance Regions: Theory,
#' Applications, and Computation. Hoboken: John Wiley & Sons, 2008.
#'
#' @importFrom stats qnorm qt
#'
#' @export
Expand Down Expand Up @@ -65,7 +72,9 @@ k_factor_normal <- function(n, p = 0.90, conf = 0.95) {
#'
#' \code{basis_normal} calculate the basis value by subtracting \eqn{k} times
#' the standard deviation from the mean. \eqn{k} is given by
#' the function \code{\link{k_factor_normal}}. \code{basis_normal} also
#' the function \code{\link{k_factor_normal}}. The equations in
#' Krishnamoorthy and Mathew (2008) are used.
#' \code{basis_normal} also
#' performs a diagnostic test for outliers (using
#' \code{\link{maximum_normed_residual}})
#' and a diagnostic test for normality (using
Expand Down Expand Up @@ -250,6 +259,9 @@ k_factor_normal <- function(n, p = 0.90, conf = 0.95) {
#' Communications in Statistics - Simulation and Computation,
#' vol. 23, no. 4. pp. 1137–1154, 1994.
#'
#' K. Krishnamoorthy and T. Mathew, Statistical Tolerance Regions: Theory,
#' Applications, and Computation. Hoboken: John Wiley & Sons, 2008.
#'
#' @name basis
NULL

Expand Down Expand Up @@ -1109,7 +1121,7 @@ basis_hk_ext <- function(data = NULL, x, batch = NULL, p = 0.90, conf = 0.95,
#' @references
#' W. Guenther, “Determination of Sample Size for Distribution-Free
#' Tolerance Limits,” Jan. 1969.
#' Available online: https://www.duo.uio.no/handle/10852/48686
#' Available online: \url{https://www.duo.uio.no/handle/10852/48686}
#'
#' “Composite Materials Handbook, Volume 1. Polymer Matrix Composites
#' Guideline for Characterization of Structural Materials,” SAE International,
Expand Down
2 changes: 2 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ frac
frawley
ge
Guenther
Hoboken
ieee
Koopmans
Krishnamoorthy
Levene's
lm
Marsaglia
Expand Down
7 changes: 6 additions & 1 deletion man/basis.Rd

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

7 changes: 7 additions & 0 deletions man/k_factor_normal.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/nonpara_binomial_rank.Rd

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

0 comments on commit eac7522

Please sign in to comment.