% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boot_corrCI.R
\name{boot_corrCI}
\alias{boot_corrCI}
\title{Bootstrap BCa Confidence Interval for Correlation}
\usage{
boot_corrCI(x, y, conf.level = 0.95, R = 999)
}
\arguments{
\item{x}{Numeric vector of first variable (must have same length as y)}

\item{y}{Numeric vector of second variable (must have same length as x)}

\item{conf.level}{Confidence level for the interval (default 0.95)}

\item{R}{Number of bootstrap replicates (default 999)}
}
\value{
An S3 object of class "corrCI_boot" containing:
  \item{lower}{Lower bound of the confidence interval}
  \item{upper}{Upper bound of the confidence interval}
  \item{estimate}{Point estimate of correlation coefficient}
  \item{conf.level}{The confidence level}
  \item{method}{Description of the method}
}
\description{
Computes confidence interval for the correlation of two populations
using bootstrap BCa (bias-corrected and accelerated) method.
}
\details{
This function implements the BCa (bias-corrected and accelerated) bootstrap
method for constructing confidence intervals for Pearson's correlation
coefficient. The BCa method adjusts for both bias and skewness in the
bootstrap distribution.

The data is standardized in the same way as corrCI_sa for consistency
in comparison studies.
}
\examples{
set.seed(42)
x <- rnorm(30)
y <- x + rnorm(30, sd = 0.5)
result <- boot_corrCI(x, y)
print(result)

}
\references{
Efron, B. (1987). Better Bootstrap Confidence Intervals. Journal of the
American Statistical Association, 82(398), 171-185.
}
