.align_and_extend_estfuns | R Documentation |
(Internal) Align the dimensions and rows of direct adjustment and covariance adjustment model estimating equations matrices
.align_and_extend_estfuns(x, ctrl_means_ef_mat = NULL, by = NULL, ...)
x |
a fitted |
ctrl_means_ef_mat |
optional, a matrix of estimating equations corresponding
to the estimates of the marginal (and possibly conditional) means of the outcome
and |
by |
optional, a character vector indicating columns that uniquely identify
rows in the dataframe used for fitting |
... |
mostly arguments passed to methods, but the special case is the argument
|
.align_and_extend_estfuns()
first extracts the matrices of
contributions to the empirical estimating equations for the direct
adjustment and covariance adjustment models; then, it pads the matrices
with zeros to account for units of observation that appear in one
model-fitting sample but not the other; finally it orders the matrices so
units of observation (or if unit of observation-level ordering is
impossible, units of assignment) are aligned.
A list of two matrices, one being the aligned contributions to the estimating equations for the direct adjustment model, and the other being the aligned contributions to the covariance adjustment model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.