Constructor for the cacheable stats containers returned by
df_vpcstats() and df_doseprop(). Each container is a named list with
three slots — stats (the per-row summary frame), obs (the observation
overlay used by plot builders, may be NULL), and config (named list of
run configuration consumed by the plot builders). The class vector is
c(<subclass>, "pmx_stats"). The structural shape is enforced by
validate_pmx_stats() at construction time.
Usage
pmx_stats(stats, obs = NULL, config = list(), subclass)Arguments
- stats
A
data.frameof per-row summary statistics.- obs
A
data.frameof observation rows for the scatter overlay, orNULLwhen no overlay is used.- config
A named
listof run configuration (e.g. column names, CI width, replicate count).- subclass
Character scalar naming the concrete subclass (e.g.
"vpc_stats","doseprop_stats").
See also
Other pmx stats class:
is_pmx_stats()
