From 1026cfcdc4f21db4c538d14aa96c8b9ac8bba61b Mon Sep 17 00:00:00 2001 From: "Carl A. B. Pearson" Date: Wed, 28 Aug 2024 20:32:58 -0400 Subject: [PATCH] pass (local) cran check --- R/builder.notR | 2 +- R/rrejig.R | 6 ++++ R/set_salt.R | 3 ++ R/zzz_distros.R | 75 +++++++++++++++++++++++++++++++++++++++++++++++ man/r2dtable.Rd | 24 +++++++++++++++ man/rWishart.Rd | 21 +++++++++++++ man/rbeta.Rd | 21 +++++++++++++ man/rbinom.Rd | 21 +++++++++++++ man/rcauchy.Rd | 19 ++++++++++++ man/rchisq.Rd | 21 +++++++++++++ man/rexp.Rd | 19 ++++++++++++ man/rf.Rd | 21 +++++++++++++ man/rgamma.Rd | 22 ++++++++++++++ man/rgeom.Rd | 19 ++++++++++++ man/rhyper.Rd | 24 +++++++++++++++ man/rlnorm.Rd | 20 +++++++++++++ man/rlogis.Rd | 19 ++++++++++++ man/rmultinom.Rd | 24 +++++++++++++++ man/rnbinom.Rd | 25 ++++++++++++++++ man/rnorm.Rd | 21 +++++++++++++ man/rpois.Rd | 18 ++++++++++++ man/rsignrank.Rd | 20 +++++++++++++ man/rsmirnov.Rd | 25 ++++++++++++++++ man/rstandard.Rd | 19 ++++++++++++ man/rstudent.Rd | 19 ++++++++++++ man/rt.Rd | 24 +++++++++++++++ man/runif.Rd | 19 ++++++++++++ man/rweibull.Rd | 19 ++++++++++++ man/rwilcox.Rd | 20 +++++++++++++ man/sample.Rd | 24 +++++++++++++++ man/sample.int.Rd | 37 +++++++++++++++++++++++ man/set.hash.Rd | 5 ++++ 32 files changed, 675 insertions(+), 1 deletion(-) create mode 100644 man/r2dtable.Rd create mode 100644 man/rWishart.Rd create mode 100644 man/rbeta.Rd create mode 100644 man/rbinom.Rd create mode 100644 man/rcauchy.Rd create mode 100644 man/rchisq.Rd create mode 100644 man/rexp.Rd create mode 100644 man/rf.Rd create mode 100644 man/rgamma.Rd create mode 100644 man/rgeom.Rd create mode 100644 man/rhyper.Rd create mode 100644 man/rlnorm.Rd create mode 100644 man/rlogis.Rd create mode 100644 man/rmultinom.Rd create mode 100644 man/rnbinom.Rd create mode 100644 man/rnorm.Rd create mode 100644 man/rpois.Rd create mode 100644 man/rsignrank.Rd create mode 100644 man/rsmirnov.Rd create mode 100644 man/rstandard.Rd create mode 100644 man/rstudent.Rd create mode 100644 man/rt.Rd create mode 100644 man/runif.Rd create mode 100644 man/rweibull.Rd create mode 100644 man/rwilcox.Rd create mode 100644 man/sample.Rd create mode 100644 man/sample.int.Rd diff --git a/R/builder.notR b/R/builder.notR index 26e276c..05bfe46 100644 --- a/R/builder.notR +++ b/R/builder.notR @@ -2,7 +2,7 @@ commandArgs(trailingOnly = TRUE) |> readLines() |> (\(x) { cat( - sprintf("\n#' @export\n%s <- rrejig(stats::%s)\n", x, x), + sprintf("\n#' @title Hash-Matched %s\n#' @param hash an object identifying the event related to the draw\n#' @inheritParams stats::%s\n#' @export\n%s <- rrejig(stats::%s)\n", x, x, x, x), sep = "" ) })() diff --git a/R/rrejig.R b/R/rrejig.R index 50233b5..a9eaf71 100644 --- a/R/rrejig.R +++ b/R/rrejig.R @@ -27,8 +27,14 @@ rrejig <- function(rFUN) { return(.FUN) } +#' @title Hash-Matched sample +#' @param hash an object identifying the event related to the draw +#' @inheritParams base::sample #' @export sample <- rrejig(base::sample) +#' @title Hash-Matched sample.int +#' @param hash an object identifying the event related to the draw +#' @inheritParams base::sample.int #' @export sample.int <- rrejig(base::sample.int) diff --git a/R/set_salt.R b/R/set_salt.R index 91e4358..688c1f5 100644 --- a/R/set_salt.R +++ b/R/set_salt.R @@ -19,6 +19,9 @@ set.salt <- function(salt) { #' @title Manage RNG state #' +#' @param hash an object which identifies the event +#' @param .hash.salt an object which identifies the universe +#' #' @importFrom digest digest #' @export set.hash <- function(hash, .hash.salt) { diff --git a/R/zzz_distros.R b/R/zzz_distros.R index 1d702db..742b1ad 100644 --- a/R/zzz_distros.R +++ b/R/zzz_distros.R @@ -1,75 +1,150 @@ +#' @title Hash-Matched r2dtable +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::r2dtable #' @export r2dtable <- rrejig(stats::r2dtable) +#' @title Hash-Matched rbeta +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rbeta #' @export rbeta <- rrejig(stats::rbeta) +#' @title Hash-Matched rbinom +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rbinom #' @export rbinom <- rrejig(stats::rbinom) +#' @title Hash-Matched rcauchy +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rcauchy #' @export rcauchy <- rrejig(stats::rcauchy) +#' @title Hash-Matched rchisq +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rchisq #' @export rchisq <- rrejig(stats::rchisq) +#' @title Hash-Matched rexp +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rexp #' @export rexp <- rrejig(stats::rexp) +#' @title Hash-Matched rf +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rf #' @export rf <- rrejig(stats::rf) +#' @title Hash-Matched rgamma +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rgamma #' @export rgamma <- rrejig(stats::rgamma) +#' @title Hash-Matched rgeom +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rgeom #' @export rgeom <- rrejig(stats::rgeom) +#' @title Hash-Matched rhyper +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rhyper #' @export rhyper <- rrejig(stats::rhyper) +#' @title Hash-Matched rlnorm +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rlnorm #' @export rlnorm <- rrejig(stats::rlnorm) +#' @title Hash-Matched rlogis +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rlogis #' @export rlogis <- rrejig(stats::rlogis) +#' @title Hash-Matched rmultinom +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rmultinom #' @export rmultinom <- rrejig(stats::rmultinom) +#' @title Hash-Matched rnbinom +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rnbinom #' @export rnbinom <- rrejig(stats::rnbinom) +#' @title Hash-Matched rnorm +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rnorm #' @export rnorm <- rrejig(stats::rnorm) +#' @title Hash-Matched rpois +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rpois #' @export rpois <- rrejig(stats::rpois) +#' @title Hash-Matched rsignrank +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rsignrank #' @export rsignrank <- rrejig(stats::rsignrank) +#' @title Hash-Matched rsmirnov +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rsmirnov #' @export rsmirnov <- rrejig(stats::rsmirnov) +#' @title Hash-Matched rstandard +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rstandard #' @export rstandard <- rrejig(stats::rstandard) +#' @title Hash-Matched rstudent +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rstudent #' @export rstudent <- rrejig(stats::rstudent) +#' @title Hash-Matched rt +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rt #' @export rt <- rrejig(stats::rt) +#' @title Hash-Matched runif +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::runif #' @export runif <- rrejig(stats::runif) +#' @title Hash-Matched rweibull +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rweibull #' @export rweibull <- rrejig(stats::rweibull) +#' @title Hash-Matched rwilcox +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rwilcox #' @export rwilcox <- rrejig(stats::rwilcox) +#' @title Hash-Matched rWishart +#' @param hash an object identifying the event related to the draw +#' @inheritParams stats::rWishart #' @export rWishart <- rrejig(stats::rWishart) diff --git a/man/r2dtable.Rd b/man/r2dtable.Rd new file mode 100644 index 0000000..3cca3cc --- /dev/null +++ b/man/r2dtable.Rd @@ -0,0 +1,24 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{r2dtable} +\alias{r2dtable} +\title{Hash-Matched r2dtable} +\usage{ +r2dtable(n, r, c, hash) +} +\arguments{ +\item{n}{a non-negative numeric giving the number of tables to be + drawn.} + +\item{r}{a non-negative vector of length at least 2 giving the row + totals, to be coerced to \code{integer}. Must sum to the same as + \code{c}.} + +\item{c}{a non-negative vector of length at least 2 giving the column + totals, to be coerced to \code{integer}.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched r2dtable +} diff --git a/man/rWishart.Rd b/man/rWishart.Rd new file mode 100644 index 0000000..fa1f9d0 --- /dev/null +++ b/man/rWishart.Rd @@ -0,0 +1,21 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rWishart} +\alias{rWishart} +\title{Hash-Matched rWishart} +\usage{ +rWishart(n, df, Sigma, hash) +} +\arguments{ +\item{n}{integer sample size.} + +\item{df}{numeric parameter, \dQuote{degrees of freedom}.} + +\item{Sigma}{positive definite (\eqn{p\times p}{p * p}) \dQuote{scale} + matrix, the matrix parameter of the distribution.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rWishart +} diff --git a/man/rbeta.Rd b/man/rbeta.Rd new file mode 100644 index 0000000..cd6fcca --- /dev/null +++ b/man/rbeta.Rd @@ -0,0 +1,21 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rbeta} +\alias{rbeta} +\title{Hash-Matched rbeta} +\usage{ +rbeta(n, shape1, shape2, ncp = 0, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{shape1, shape2}{non-negative parameters of the Beta distribution.} + +\item{ncp}{non-centrality parameter.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rbeta +} diff --git a/man/rbinom.Rd b/man/rbinom.Rd new file mode 100644 index 0000000..5a9a25f --- /dev/null +++ b/man/rbinom.Rd @@ -0,0 +1,21 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rbinom} +\alias{rbinom} +\title{Hash-Matched rbinom} +\usage{ +rbinom(n, size, prob, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{size}{number of trials (zero or more).} + +\item{prob}{probability of success on each trial.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rbinom +} diff --git a/man/rcauchy.Rd b/man/rcauchy.Rd new file mode 100644 index 0000000..5d03112 --- /dev/null +++ b/man/rcauchy.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rcauchy} +\alias{rcauchy} +\title{Hash-Matched rcauchy} +\usage{ +rcauchy(n, location = 0, scale = 1, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{location, scale}{location and scale parameters.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rcauchy +} diff --git a/man/rchisq.Rd b/man/rchisq.Rd new file mode 100644 index 0000000..75653a9 --- /dev/null +++ b/man/rchisq.Rd @@ -0,0 +1,21 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rchisq} +\alias{rchisq} +\title{Hash-Matched rchisq} +\usage{ +rchisq(n, df, ncp = 0, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{df}{degrees of freedom (non-negative, but can be non-integer).} + +\item{ncp}{non-centrality parameter (non-negative).} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rchisq +} diff --git a/man/rexp.Rd b/man/rexp.Rd new file mode 100644 index 0000000..4f3e4e6 --- /dev/null +++ b/man/rexp.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rexp} +\alias{rexp} +\title{Hash-Matched rexp} +\usage{ +rexp(n, rate = 1, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{rate}{vector of rates.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rexp +} diff --git a/man/rf.Rd b/man/rf.Rd new file mode 100644 index 0000000..9e90b62 --- /dev/null +++ b/man/rf.Rd @@ -0,0 +1,21 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rf} +\alias{rf} +\title{Hash-Matched rf} +\usage{ +rf(n, df1, df2, ncp, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{df1, df2}{degrees of freedom. \code{Inf} is allowed.} + +\item{ncp}{non-centrality parameter. If omitted the central F is assumed.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rf +} diff --git a/man/rgamma.Rd b/man/rgamma.Rd new file mode 100644 index 0000000..fa89d4b --- /dev/null +++ b/man/rgamma.Rd @@ -0,0 +1,22 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rgamma} +\alias{rgamma} +\title{Hash-Matched rgamma} +\usage{ +rgamma(n, shape, rate = 1, scale = 1/rate, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{shape, scale}{shape and scale parameters. Must be positive, + \code{scale} strictly.} + +\item{rate}{an alternative way to specify the scale.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rgamma +} diff --git a/man/rgeom.Rd b/man/rgeom.Rd new file mode 100644 index 0000000..4efd8d8 --- /dev/null +++ b/man/rgeom.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rgeom} +\alias{rgeom} +\title{Hash-Matched rgeom} +\usage{ +rgeom(n, prob, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{prob}{probability of success in each trial. \code{0 < prob <= 1}.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rgeom +} diff --git a/man/rhyper.Rd b/man/rhyper.Rd new file mode 100644 index 0000000..99c327f --- /dev/null +++ b/man/rhyper.Rd @@ -0,0 +1,24 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rhyper} +\alias{rhyper} +\title{Hash-Matched rhyper} +\usage{ +rhyper(nn, m, n, k, hash) +} +\arguments{ +\item{nn}{number of observations. If \code{length(nn) > 1}, the length + is taken to be the number required.} + +\item{m}{the number of white balls in the urn.} + +\item{n}{the number of black balls in the urn.} + +\item{k}{the number of balls drawn from the urn, hence must be in + \eqn{0,1,\dots, m+n}.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rhyper +} diff --git a/man/rlnorm.Rd b/man/rlnorm.Rd new file mode 100644 index 0000000..f45e086 --- /dev/null +++ b/man/rlnorm.Rd @@ -0,0 +1,20 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rlnorm} +\alias{rlnorm} +\title{Hash-Matched rlnorm} +\usage{ +rlnorm(n, meanlog = 0, sdlog = 1, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{meanlog, sdlog}{mean and standard deviation of the distribution + on the log scale with default values of \code{0} and \code{1} respectively.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rlnorm +} diff --git a/man/rlogis.Rd b/man/rlogis.Rd new file mode 100644 index 0000000..fc61025 --- /dev/null +++ b/man/rlogis.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rlogis} +\alias{rlogis} +\title{Hash-Matched rlogis} +\usage{ +rlogis(n, location = 0, scale = 1, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{location, scale}{location and scale parameters.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rlogis +} diff --git a/man/rmultinom.Rd b/man/rmultinom.Rd new file mode 100644 index 0000000..a0f86ef --- /dev/null +++ b/man/rmultinom.Rd @@ -0,0 +1,24 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rmultinom} +\alias{rmultinom} +\title{Hash-Matched rmultinom} +\usage{ +rmultinom(n, size, prob, hash) +} +\arguments{ +\item{n}{number of random vectors to draw.} + +\item{size}{integer, say \eqn{N}, specifying the total number + of objects that are put into \eqn{K} boxes in the typical multinomial + experiment. For \code{dmultinom}, it defaults to \code{sum(x)}.} + +\item{prob}{numeric non-negative vector of length \eqn{K}, specifying + the probability for the \eqn{K} classes; is internally normalized to + sum 1. Infinite and missing values are not allowed.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rmultinom +} diff --git a/man/rnbinom.Rd b/man/rnbinom.Rd new file mode 100644 index 0000000..3d598dd --- /dev/null +++ b/man/rnbinom.Rd @@ -0,0 +1,25 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rnbinom} +\alias{rnbinom} +\title{Hash-Matched rnbinom} +\usage{ +rnbinom(n, size, prob, mu, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{size}{target for number of successful trials, or dispersion + parameter (the shape parameter of the gamma mixing distribution). + Must be strictly positive, need not be integer.} + +\item{prob}{probability of success in each trial. \code{0 < prob <= 1}.} + +\item{mu}{alternative parametrization via mean: see \sQuote{Details}.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rnbinom +} diff --git a/man/rnorm.Rd b/man/rnorm.Rd new file mode 100644 index 0000000..4e390ff --- /dev/null +++ b/man/rnorm.Rd @@ -0,0 +1,21 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rnorm} +\alias{rnorm} +\title{Hash-Matched rnorm} +\usage{ +rnorm(n, mean = 0, sd = 1, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{mean}{vector of means.} + +\item{sd}{vector of standard deviations.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rnorm +} diff --git a/man/rpois.Rd b/man/rpois.Rd new file mode 100644 index 0000000..93c8e56 --- /dev/null +++ b/man/rpois.Rd @@ -0,0 +1,18 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rpois} +\alias{rpois} +\title{Hash-Matched rpois} +\usage{ +rpois(n, lambda, hash) +} +\arguments{ +\item{n}{number of random values to return.} + +\item{lambda}{vector of (non-negative) means.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rpois +} diff --git a/man/rsignrank.Rd b/man/rsignrank.Rd new file mode 100644 index 0000000..5b91951 --- /dev/null +++ b/man/rsignrank.Rd @@ -0,0 +1,20 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rsignrank} +\alias{rsignrank} +\title{Hash-Matched rsignrank} +\usage{ +rsignrank(nn, n, hash) +} +\arguments{ +\item{nn}{number of observations. If \code{length(nn) > 1}, the length + is taken to be the number required.} + +\item{n}{number(s) of observations in the sample(s). A positive + integer, or a vector of such integers.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rsignrank +} diff --git a/man/rsmirnov.Rd b/man/rsmirnov.Rd new file mode 100644 index 0000000..a84aa14 --- /dev/null +++ b/man/rsmirnov.Rd @@ -0,0 +1,25 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rsmirnov} +\alias{rsmirnov} +\title{Hash-Matched rsmirnov} +\usage{ +rsmirnov(n, sizes, z = NULL, two.sided = TRUE, hash) +} +\arguments{ +\item{n}{an integer giving number of observations.} + +\item{sizes}{an integer vector of length two giving the sample sizes.} + +\item{z}{a numeric vector of the pooled data values in both samples + when the exact conditional distribution of the Smirnov statistic + given the data shall be computed.} + +\item{two.sided}{a logical indicating whether absolute (\code{TRUE}) or + raw differences of frequencies define the test statistic.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rsmirnov +} diff --git a/man/rstandard.Rd b/man/rstandard.Rd new file mode 100644 index 0000000..a9c3c6a --- /dev/null +++ b/man/rstandard.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rstandard} +\alias{rstandard} +\title{Hash-Matched rstandard} +\usage{ +rstandard(model, ..., hash) +} +\arguments{ +\item{model}{an \R object, typically returned by \code{\link[stats]{lm}} or + \code{\link[stats]{glm}}.} + +\item{...}{further arguments passed to or from other methods.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rstandard +} diff --git a/man/rstudent.Rd b/man/rstudent.Rd new file mode 100644 index 0000000..073d577 --- /dev/null +++ b/man/rstudent.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rstudent} +\alias{rstudent} +\title{Hash-Matched rstudent} +\usage{ +rstudent(model, ..., hash) +} +\arguments{ +\item{model}{an \R object, typically returned by \code{\link[stats]{lm}} or + \code{\link[stats]{glm}}.} + +\item{...}{further arguments passed to or from other methods.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rstudent +} diff --git a/man/rt.Rd b/man/rt.Rd new file mode 100644 index 0000000..85a51e4 --- /dev/null +++ b/man/rt.Rd @@ -0,0 +1,24 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rt} +\alias{rt} +\title{Hash-Matched rt} +\usage{ +rt(n, df, ncp, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{df}{degrees of freedom (\eqn{> 0}, maybe non-integer). \code{df + = Inf} is allowed.} + +\item{ncp}{non-centrality parameter \eqn{\delta}{delta}; + currently except for \code{rt()}, only for \code{abs(ncp) <= 37.62}. + If omitted, use the central t distribution.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rt +} diff --git a/man/runif.Rd b/man/runif.Rd new file mode 100644 index 0000000..dcb4940 --- /dev/null +++ b/man/runif.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{runif} +\alias{runif} +\title{Hash-Matched runif} +\usage{ +runif(n, min = 0, max = 1, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{min, max}{lower and upper limits of the distribution. Must be finite.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched runif +} diff --git a/man/rweibull.Rd b/man/rweibull.Rd new file mode 100644 index 0000000..ad416b4 --- /dev/null +++ b/man/rweibull.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rweibull} +\alias{rweibull} +\title{Hash-Matched rweibull} +\usage{ +rweibull(n, shape, scale = 1, hash) +} +\arguments{ +\item{n}{number of observations. If \code{length(n) > 1}, the length + is taken to be the number required.} + +\item{shape, scale}{shape and scale parameters, the latter defaulting to 1.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rweibull +} diff --git a/man/rwilcox.Rd b/man/rwilcox.Rd new file mode 100644 index 0000000..098b219 --- /dev/null +++ b/man/rwilcox.Rd @@ -0,0 +1,20 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/zzz_distros.R +\name{rwilcox} +\alias{rwilcox} +\title{Hash-Matched rwilcox} +\usage{ +rwilcox(nn, m, n, hash) +} +\arguments{ +\item{nn}{number of observations. If \code{length(nn) > 1}, the length + is taken to be the number required.} + +\item{m, n}{numbers of observations in the first and second sample, + respectively. Can be vectors of positive integers.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched rwilcox +} diff --git a/man/sample.Rd b/man/sample.Rd new file mode 100644 index 0000000..987e917 --- /dev/null +++ b/man/sample.Rd @@ -0,0 +1,24 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/rrejig.R +\name{sample} +\alias{sample} +\title{Hash-Matched sample} +\usage{ +sample(x, size, replace = FALSE, prob = NULL, hash) +} +\arguments{ +\item{x}{either a vector of one or more elements from which to choose, + or a positive integer. See \sQuote{Details.}} + +\item{size}{a non-negative integer giving the number of items to choose.} + +\item{replace}{should sampling be with replacement?} + +\item{prob}{a vector of probability weights for obtaining the elements + of the vector being sampled.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched sample +} diff --git a/man/sample.int.Rd b/man/sample.int.Rd new file mode 100644 index 0000000..395463f --- /dev/null +++ b/man/sample.int.Rd @@ -0,0 +1,37 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/rrejig.R +\name{sample.int} +\alias{sample.int} +\title{Hash-Matched sample.int} +\usage{ +sample.int( + n, + size = n, + replace = FALSE, + prob = NULL, + useHash = (n > 1e+07 && !replace && is.null(prob) && size <= n/2), + hash +) +} +\arguments{ +\item{n}{a positive number, the number of items to choose from. See + \sQuote{Details.}} + +\item{size}{a non-negative integer giving the number of items to choose.} + +\item{replace}{should sampling be with replacement?} + +\item{prob}{a vector of probability weights for obtaining the elements + of the vector being sampled.} + +\item{useHash}{\code{\link[base]{logical}} indicating if the hash-version of + the algorithm should be used. Can only be used for \code{replace = + FALSE}, \code{prob = NULL}, and \code{size <= n/2}, and really + should be used for large \code{n}, as \code{useHash=FALSE} will use + memory proportional to \code{n}.} + +\item{hash}{an object identifying the event related to the draw} +} +\description{ +Hash-Matched sample.int +} diff --git a/man/set.hash.Rd b/man/set.hash.Rd index bcea100..7e7f6ef 100644 --- a/man/set.hash.Rd +++ b/man/set.hash.Rd @@ -6,6 +6,11 @@ \usage{ set.hash(hash, .hash.salt) } +\arguments{ +\item{hash}{an object which identifies the event} + +\item{.hash.salt}{an object which identifies the universe} +} \description{ Manage RNG state }