Description Usage Arguments Details Value
View source: R/regression_functions.R
Estimates of the treatment effect using linear models through lm
, then
conducts inference using randomization inference by permuting the treatment
vector to obtain the sharp null distribution
1 2 3 4 |
data |
a data frame containing the variables in the model |
outcome |
a character. Name of the outcome variable. |
treatment |
a character. Name of the treatment variable. |
covs |
a character vector. Names of the covariates to be used in the model. |
perm |
a matrix containing permutations of the treatment variable (for
|
blockvar |
an optional character vector. Name of the block variable if
the randomization inference procedure requires block randomization. The
variable named by |
clustvar |
an optional character vector. Name of the cluster variable if
the randomization inference procedure requires clustered randomization. The
variable named by |
maxiter |
a positive integer. The maximum number of permutations to be
included in the permutation matrix for the randomization distribution. Used
as input for the |
Estimates of the treatment effects are obtained by OLS regression. When
covariates are included, the randomization distribution is obtained by
permuting the "partialled-out" treatment vector i.e. the vector of residuals
from a regression of treatment on covariates. Internally rireg
makes
call to genperms
. The variable whose names are given by
blockvar
and clustvar
will be coerced into input vectors for
the block
and clus
arguments of the genperms
function.
An object of class riFit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.