% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scr-hurdle-model-data.R
\name{prepare_gazepoint_scr_hurdle_model_data}
\alias{prepare_gazepoint_scr_hurdle_model_data}
\title{Prepare Gazepoint SCR hurdle-model data}
\usage{
prepare_gazepoint_scr_hurdle_model_data(
  scr_event_windows,
  response_col = "response_flag",
  amplitude_col = "scr_amplitude",
  latency_col = "scr_latency",
  rise_time_col = "scr_rise_time",
  recovery_time_col = "scr_recovery_time",
  predictor_cols = NULL,
  factor_cols = NULL,
  numeric_cols = NULL,
  group_cols = NULL,
  event_id_col = "event_id",
  amplitude_transform = c("none", "log", "log1p"),
  amplitude_offset = 1e-06,
  drop_missing_predictors = TRUE
)
}
\arguments{
\item{scr_event_windows}{A \code{gazepoint_scr_event_window_summary} object
returned by \code{summarise_gazepoint_scr_event_windows()}, or a data frame
containing event-window SCR summaries.}

\item{response_col}{Column containing the binary SCR response flag.}

\item{amplitude_col}{Column containing SCR amplitude.}

\item{latency_col}{Optional column containing SCR latency.}

\item{rise_time_col}{Optional column containing SCR rise time.}

\item{recovery_time_col}{Optional column containing SCR recovery time.}

\item{predictor_cols}{Optional fixed-effect predictor columns to include in
generated formulas and complete-case checks.}

\item{factor_cols}{Optional columns to coerce to factors.}

\item{numeric_cols}{Optional columns to coerce to numeric.}

\item{group_cols}{Optional grouping columns retained for random effects or
clustered summaries.}

\item{event_id_col}{Optional event identifier column.}

\item{amplitude_transform}{Transformation for the positive-amplitude outcome:
\code{"none"}, \code{"log"}, or \code{"log1p"}.}

\item{amplitude_offset}{Small positive offset used when
\code{amplitude_transform = "log"}.}

\item{drop_missing_predictors}{Logical. If \code{TRUE}, model datasets are
restricted to rows complete on outcome and predictor columns.}
}
\value{
A list with \code{overview}, \code{response_model_data},
\code{amplitude_model_data}, \code{variable_summary}, \code{model_formulas}, and
\code{settings}.
}
\description{
Converts SCR event-window summaries into model-ready data for two-part
electrodermal-response analyses: a binary response/no-response component and
a positive-amplitude component among response events.
}
