% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classical-standardization.R
\name{standardise_gazepoint_range_correction}
\alias{standardise_gazepoint_range_correction}
\alias{standardize_gazepoint_range_correction}
\title{Standardise SCR or SCL using within-participant range correction}
\usage{
standardise_gazepoint_range_correction(
  dat,
  signal_col,
  group_col = "source_participant",
  suffix = "_Range_Corrected",
  min_valid = 2,
  zero_range_action = c("NA", "zero"),
  overwrite = FALSE
)

standardize_gazepoint_range_correction(
  dat,
  signal_col,
  group_col = "source_participant",
  suffix = "_Range_Corrected",
  min_valid = 2,
  zero_range_action = c("NA", "zero"),
  overwrite = FALSE
)
}
\arguments{
\item{dat}{A data frame containing SCR, SCL, or another biometric signal.}

\item{signal_col}{Signal column to range-correct.}

\item{group_col}{Participant or unit column.}

\item{suffix}{Suffix for the output column.}

\item{min_valid}{Minimum finite observations required within each group.}

\item{zero_range_action}{What to do when max equals min: \code{"NA"} or \code{"zero"}.}

\item{overwrite}{Logical. If \code{FALSE}, existing output columns are protected.}
}
\value{
A data frame with an added range-corrected column.
}
\description{
Adds a range-corrected signal column using \code{(x - min) / (max - min)} within
participant or another grouping unit. This expresses each value as a
proportion of the observed within-unit range.
}
