% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract_design.R
\name{extract_design}
\alias{extract_design}
\title{Extract design parameters for Monte Carlo calibration}
\usage{
extract_design(data)
}
\arguments{
\item{data}{A data frame returned by \code{prepare_data}, with columns
\code{id}, \code{time}, \code{rater}, and \code{y}.}
}
\value{
A named list containing:
\describe{
\item{N}{Number of unique subjects.}
\item{delta}{Estimated mean pre-post change, averaged across raters.}
\item{bias_r2}{Estimated mean additive discrepancy of the second rater
relative to the reference rater, averaged across subjects and time points.}
\item{time_levels}{The two ordered time levels used in the data.}
\item{rater_levels}{The two ordered rater levels used in the data.}
}
}
\description{
Internal helper used to estimate sample size, mean pre-post change,
and second-rater additive discrepancy from standardised user-supplied
data for Monte Carlo calibration.
}
\keyword{internal}
