% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/desc_utils.R
\name{process_continuous}
\alias{process_continuous}
\title{Process continuous variable}
\usage{
process_continuous(
  data,
  var,
  var_label,
  group_var,
  stats,
  digits,
  na_include,
  na_label,
  test,
  test_type,
  total,
  total_label,
  p_per_stat = FALSE,
  marks = NULL,
  ...
)
}
\arguments{
\item{data}{Data.table containing the variable.}

\item{var}{Character string naming the variable to process.}

\item{var_label}{Character string label for display.}

\item{group_var}{Optional character string naming the grouping variable.}

\item{stats}{Character vector of statistics to calculate.}

\item{digits}{Integer number of decimal places.}

\item{na_include}{Logical whether to include missing values.}

\item{na_label}{Character string label for missing values.}

\item{test}{Logical whether to perform statistical tests.}

\item{test_type}{Character string specifying test type.}

\item{total}{Logical or character controlling total column display.}

\item{total_label}{Character string label for total column.}

\item{p_per_stat}{Logical. If TRUE, calculate separate \emph{p}-values for each 
statistic type (\emph{e.g.,} t-test for means, Wilcoxon for medians). If \code{FALSE}
(default), calculate a single \emph{p}-value based on the first statistic type.}

\item{...}{Additional arguments passed to test functions.}
}
\value{
List with 'formatted' and 'raw' data.table components.
}
\description{
Calculates descriptive statistics for continuous numeric variables, with
optional grouping and statistical testing. Supports multiple summary
statistics (mean \eqn{\pm} SD, median [IQR], range) and various hypothesis tests.
}
\keyword{internal}
