CollapseStrata: Collapse strata in sampling design

View source: R/StoxAnalyticalBaselineFunctions.R

CollapseStrataR Documentation

Collapse strata in sampling design

Description

Transforms a sampling design to an equivalent one with simpler stratification

Usage

CollapseStrata(IndividualSamplingParametersData, RetainStrata = character())

Arguments

IndividualSamplingParametersData

IndividualSamplingParametersData with sampling parameters for sample selection

RetainStrata

character() with the names of stratification variables to retain. Stratification variables not specified here will be removed.

Details

The sampling information in IndividualSamplingParametersData allows for specification of several stratification variables. This function facilitates removal of some of these stratificaiton vairables, redefining strata to a coarser stratification scheme that still has known stratum sizes.

If all stratification variables are removed, all samples will be assigned to a single stratum named 'All'.

Value

IndividualSamplingParametersData with simplified stratification


StoXProject/RstoxFDA documentation built on June 14, 2025, 1:37 a.m.