View source: R/demean_variable.R
Pseudo-demean variables
1 2 3 | demean_variable(variable, fixed_effects, data, weights = NULL,
demean_iterations = 100, demean_tolerance = 1e-08,
parallel_cores = 1, suffix = "_dm", trace = F, verbose = F)
|
variable |
Character vector of variables that should be demeaned |
fixed_effects |
Character vector of fixed effects whose influence should be removed from variables |
data |
Data.table with relevant data |
weights |
Character string of weights for demeaning |
demean_iterations |
Maximum number of demeaning iterations |
demean_tolerance |
Demeaning tolerance |
parallel_cores |
Number of cores to be used in demeaning. Currently fixed at 1. |
suffix |
Suffix for demeaned variables. |
trace |
Show some information during estimation |
verbose |
Show more information during estimation for the impatient |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.