Learn R Programming

RItools (version 0.3-3)

DesignOptions-class: DesignOptions S4 class

Description

Extends the ModelMatrixPlus class

Arguments

Slots

Z

Logical indicating treatment assignment

StrataFrame

Factors indicating strata

Cluster

Factor indicating who's in the same cluster with who

Details

If the DesignOptions represents clusters of elements, as when it was created by aggregating another DesignOptions or ModelMatrixPlus object, then its Covariates and NotMissing slots are populated with (weighted) averages, not totals. E.g., NotMissing columns consist of weighted averages of element-wise non-missingness indicators over clusters, with weights given by (the element-level precursor to) the UnitWeights vector. As otherwise, columns of the NotMissing matrix represent terms from a model formula, rather than columns the terms may have expanded to.

If present, the null stratification (all units in same stratum) in indicated by the corresponding column of the StrataFrame slot bearing the name ‘--’.