% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/supervised_pcr.R
\name{supervised_pcreg}
\alias{supervised_pcreg}
\title{Supervised Principal Component Regression}
\usage{
supervised_pcreg(data, response, K = NULL, threshold = 0.9, verbose = FALSE)
}
\arguments{
\item{data}{A data frame or matrix}

\item{response}{Response variable name}

\item{K}{Number of principal components}

\item{threshold}{Cumulative variance threshold
for automatic component selection}

\item{verbose}{Logical; print summaries?}
}
\value{
A list containing PCA results,
regression models, diagnostics, and plots.
}
\description{
Performs supervised feature selection followed by
Principal Component Regression (PCR).
Includes Bartlett's test, KMO measure,
scree plot, biplot, and regression models.
}
\examples{
data(mtcars)
result <- supervised_pcreg(
  mtcars,
  response = "mpg"
)
}
