get_coverages: Get the coverage of each coefficient

Description Usage Arguments Value

View source: R/simulation-lib.R

Description

Get the coverage of each coefficient

Usage

1
get_coverages(res_df, true_betas)

Arguments

res_df

data.frame returned by run_sim

true_betas

A vector of true values of regression coefficients. Should include the intercept as the first item, beta1 as the second, etc.

Value

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).


shiandy/methods1proj documentation built on Dec. 31, 2020, 5:15 a.m.