SEG MARD table
seg_mard_tbl.Rd
SEG MARD table
Arguments
- risk_vars
output from
seg_risk_vars()
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`