% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{grouptable}
\alias{grouptable}
\title{Create Group Contingency Table from Clustered Data}
\usage{
grouptable(
  data,
  id,
  group,
  var,
  lower = TRUE,
  labels,
  order,
  group.labels,
  group.order,
  combine = " & ",
  ...
)
}
\arguments{
\item{data}{a data.frame.}

\item{id}{name of the cluster/pair identifier column.}

\item{group}{name of the grouping variable (e.g., zygosity).}

\item{var}{name of the outcome variable to tabulate.}

\item{lower}{logical; if TRUE, fold upper triangle into lower.}

\item{labels}{optional labels for levels of \code{var}.}

\item{order}{optional ordering of factor levels.}

\item{group.labels}{optional labels for the groups.}

\item{group.order}{optional ordering of groups.}

\item{combine}{separator for combining two groups (default \code{" & "}).}

\item{...}{additional arguments.}
}
\value{
A table or list of tables.
}
\description{
Creates a contingency table by group from paired/clustered data,
optionally combining lower and upper triangles.
}
