% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/batch_cor.R
\name{exact_pvalue}
\alias{exact_pvalue}
\title{Calculate Exact P-Value for Correlation}
\usage{
exact_pvalue(x, y, method)
}
\arguments{
\item{x}{Numeric vector representing the first variable.}

\item{y}{Numeric vector representing the second variable.}

\item{method}{Character string specifying the correlation method:
`"spearman"`, `"pearson"`, or `"kendall"`.}
}
\value{
Numeric value representing the exact p-value.
}
\description{
Computes the exact p-value for the correlation between two numeric variables
using a specified correlation method.
}
\examples{
# Simulate data
set.seed(123)
x <- rnorm(100)
y <- rnorm(100)
p_val <- exact_pvalue(x = x, y = y, method = "spearman")
print(p_val)
}
\author{
Dongqiang Zeng
}
