https://github.com/cran/multivariance
Revision e0320c9516346f2d4fe715a5eb662d6aa790a6cb authored by Björn Böttcher on 04 January 2019, 23:20:03 UTC, committed by cran-robot on 04 January 2019, 23:20:03 UTC
1 parent 4d37ecc
Raw File
Tip revision: e0320c9516346f2d4fe715a5eb662d6aa790a6cb authored by Björn Böttcher on 04 January 2019, 23:20:03 UTC
version 1.2.1
Tip revision: e0320c9
resample.pvalue.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multivariance-functions.R
\name{resample.pvalue}
\alias{resample.pvalue}
\title{p-value via resampling}
\usage{
resample.pvalue(value, ...)
}
\arguments{
\item{value}{numeric, the value of (total-/m-)multivariance for which the p-value shall be computed}

\item{...}{passed to \code{\link{resample.multivariance}}. Required is the data matrix \code{x}.}
}
\value{
It returns 1 minus the value of the empirical distribution function of the resampling samples evaluated at the given value.
}
\description{
Use a resampling method to generate samples of the test statistic under the hypothesis of independence. Based on these the p.value of a given value of a test statistic is computed.
}
\examples{
x = coins(100)
resample.pvalue(multivariance(x),x=x,times = 300)

}
\references{
For the theoretic background see the reference [3] given on the main help page of this package: \link{multivariance-package}.
}
back to top