.make_uoa_ids | R Documentation |
cluster
argument of vcov_tee()
.make_uoa_ids()
returns a factor vector of cluster ID's
that align with the order of the units of observations' contributions in
estfun.teeMod()
. This is to ensure that when vcov_tee()
calls
sandwich::meatCL()
, the cluster
argument aggregates the
correct contributions to estimating equations within clusters.
.make_uoa_ids(x, vcov_type, cluster = NULL, ...)
x |
a fitted |
vcov_type |
a string indicating model-based or design-based covariance estimation. Currently, "MB", "CR", and "HC" are the only strings registered as indicating model-based estimation. |
cluster |
character vector or list; optional. Specifies column names that appear in both the covariance adjustment and direct adjustment model dataframes. Defaults to NULL, in which case unit of assignment columns indicated in the StudySpecification will be used for clustering. If there are multiple clustering columns, they are concatenated together for each row and separated by "_". |
... |
arguments passed to methods |
A vector with length equal to the number of unique units of
observation used to fit the two models. See Details of
estfun.teeMod()
for the method for determining uniqueness.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.