View source: R/hypothesis_test.r
p.value.meis | R Documentation |
This function calculates a p-value for the test statistic t0 according to Meiselman (2021).
p.value.meis(
t0,
data,
x.names,
cluster.id,
weights = NULL,
c0 = NULL,
test.var = NULL,
fe.id = cluster.id,
crve.type = "CR1"
)
t0 |
The test statistic |
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 |
c0 |
Linear hypothesis vector, either c0 or test.var must be supplied |
test.var |
Index of variable to test, either c0 or test.var must be supplied |
fe.id |
Name of fixed effect group id variable (defaults to cluster.id) |
crve.type |
Type of cluster-robust variance estimator (CR0, CR1, CR2, CR3) |
numeric, the probability that a test statistic with a magnitude of abs(t0) or greater is observed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.