View source: R/hypothesis_test.r
absorb.reorg | R Documentation |
This function reorganizes the data by cluster and fixed effect, absorbing group fixed effects and applying weights.
absorb.reorg(data, x.names, cluster.id, weights, fe.id, crve, y.name = NULL)
data |
Data frame or matrix containing all outcomes, covariates, and group ids |
x.names |
Vector of covariate names |
cluster.id |
Name of cluster id variable |
weights |
Name of weight variable, if applicable |
fe.id |
Name of fixed effect group id variable (defaults to cluster.id) |
crve |
Type of cluster-robust variance estimator (CR0, CR1, CR2, CR3) |
A list containing: Xdw.h (covariates by cluster), XTX.inv (inverse squared design matrix), A.h (adjustment matrices by cluster), Ydw.h (outcomes by cluster, if applicable)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.