SEG iso range table
seg_iso_range_tbl.Rd
SEG iso range 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_iso_range_tbl(risk_cols_tbl)
#> # A tibble: 5 × 4
#> ID `ISO range` N Percent
#> <int> <chr> <int> <chr>
#> 1 1 <= 5% or 5 mg/dL 5328 54%
#> 2 2 > 5 - 10% or mg/dL 2842 28.8%
#> 3 3 > 10 - 15% or mg/dL 1050 10.6%
#> 4 4 > 15 - 20% mg/dL 340 3.4%
#> 5 5 > 20% or 20 mg/dL 308 3.1%