dot-make_uoa_cluster_df: Make a dataframe that links units of assignment with clusters

.make_uoa_cluster_dfR Documentation

Make a dataframe that links units of assignment with clusters

Description

Make a dataframe that links units of assignment with clusters

Usage

.make_uoa_cluster_df(spec, cluster = NULL)

Arguments

spec

A StudySpecification object.

cluster

A character vector of column names to use as clusters. Columns must exist in the dataframe used to create the StudySpecification object. Defaults to NULL, in which case the column names specified in the unitid(), unit_of_assignment(), or cluster() function in the StudySpecification formula will be used.

Value

A dataframe where the number of rows coincides with the number of distinct unit of assignment or cluster combinations (depending on whether cluster is a more or less granular level than the assignment level) and the columns correspond to the unit of assignment columns and a "cluster" column


propertee documentation built on Aug. 22, 2025, 1:09 a.m.