Description Usage Arguments Details Value Methods (by class) Examples
Given a regression of y on x and covariates, estimate the correlation between all covariates and the variable x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | reg_aux(object, ...)
## Default S3 method:
reg_aux(object, var_main, var_controls = NULL, ...)
## S3 method for class 'lm'
reg_aux(object, var_main, var_controls = NULL,
method = c("update", "update_lmfit", "sweep"), add_vcov = FALSE, ...)
## S3 method for class 'felm'
reg_aux(object, var_main, var_controls = NULL,
method = c("update", "sweep"), add_vcov = FALSE, ...)
## S3 method for class 'reg_aux_lm'
vcov(object, ...)
|
object |
output from regression |
... |
unused |
var_main |
a character, name of the variable of interest |
var_controls |
a character, name of the covariates |
method |
whether to use the standard update() funciton, or a faster sweep one |
add_vcov |
for method with sweep, wether to compute also the vcov |
This is a generic function: methods can be defined for it directly
or via the Summary
group generic. For this to work properly,
the arguments ...
should be unnamed, and dispatch is on the
first argument.
An object of the same type
default
: Default method
lm
: Method for 'felm' object
felm
: Method for 'felm' object
reg_aux_lm
: Vcov method for some of the reg_aux output
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.