Skip to contents

SEG MARD table

Usage

seg_mard_tbl(risk_vars)

Arguments

risk_vars

output from seg_risk_vars()

Value

MARD table

Examples

test_data <- vroom::vroom(
                system.file("extdata", "VanderbiltComplete.csv",
                package = "segtools"), delim = ",")
#> Rows: 9891 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> dbl (2): BGM, REF
#> 
#>  Use `spec()` to retrieve the full column specification for this data.
#>  Specify the column types or set `show_col_types = FALSE` to quiet this message.
risk_cols_tbl <- seg_risk_vars(df = test_data)
seg_mard_tbl(risk_cols_tbl)
#> # A tibble: 1 × 6
#>   Total Bias  MARD  CV    `Lower 95% Limit of Agreement` Upper 95% Limit of Ag…¹
#>   <int> <chr> <chr> <chr> <chr>                          <chr>                  
#> 1  9868 0.6%  7%    14.8% -28.3%                         29.6%                  
#> # ℹ abbreviated name: ¹​`Upper 95% Limit of Agreement`