Description Usage Arguments Value
View source: R/simulation-lib.R
Get the coverage of each coefficient
1 | get_coverages(res_df, true_betas)
|
res_df |
data.frame returned by |
true_betas |
A vector of true values of regression coefficients. Should include the intercept as the first item, beta1 as the second, etc. |
A vector of coverages, one per each coefficient. The vector is nameded, with each element corresponding to the coverage probability of one coefficient in one iteration of the simulation (is NA if that coefficient was never selected).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.