% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocess.R
\name{baseline_correct_gazepoint_gsr}
\alias{baseline_correct_gazepoint_gsr}
\title{Baseline-correct Gazepoint GSR/EDA}
\usage{
baseline_correct_gazepoint_gsr(
  data,
  baseline_rows,
  value_column = NULL,
  validity_column = "GSRV",
  group_columns = NULL,
  output_column = NULL,
  summary = c("mean", "median"),
  exclude_zero = TRUE
)
}
\arguments{
\item{data}{A data frame or a path to a Gazepoint CSV export.}

\item{baseline_rows}{Logical vector identifying baseline rows.}

\item{value_column}{Optional GSR/EDA value column. If \code{NULL}, \code{GSR_US} is
used when present, otherwise \code{GSR}.}

\item{validity_column}{Optional validity column. Defaults to \code{"GSRV"}.}

\item{group_columns}{Optional grouping columns. When supplied, baselines are
estimated separately within each group.}

\item{output_column}{Name of the corrected output column.}

\item{summary}{Baseline summary, either \code{"mean"} or \code{"median"}.}

\item{exclude_zero}{Should zero values be excluded from baseline estimation?}
}
\value{
A data frame with the added baseline-corrected column and a
baseline-summary attribute named \code{"baseline_summary"}.
}
\description{
Adds a baseline-corrected GSR/EDA column to a Gazepoint Biometrics table.
When available, \code{GSR_US} is used by default because it represents skin
conductance in microsiemens in Gazepoint exports. The baseline is estimated
from rows selected by \code{baseline_rows}, optionally within groups.
}
