Skip to contents

Get PRISM activity level cutpoints given disease and location

Usage

get_prism_cutpoints(location, disease, as_of = lubridate::today())

Arguments

location

location(s) for which to return the cutpoints, as a two-letter abbreviation. Use us_location_recode with location_output_format = "abbr" to convert to this format.

disease

disease(s) for which to return the cutpoints. One of "ARI", "COVID-19", "Influenza", or "RSV", or an array of those values.

as_of

date for which the cutpoints are valid. Defaults to today.

Value

The cutpoints, as a list of vectors.

Examples

get_prism_cutpoints("WA", "Influenza")
#> [[1]]
#>    prop_very_low         prop_low    prop_moderate        prop_high 
#>      0.000000000      0.002766458      0.030385827      0.058005195 
#>   prop_very_high prop_upper_bound 
#>      0.085624564      1.000000000 
#> 

get_prism_cutpoints(c("US", "WA"), "COVID-19")
#> [[1]]
#>    prop_very_low         prop_low    prop_moderate        prop_high 
#>       0.00000000       0.00536526       0.01655255       0.02773983 
#>   prop_very_high prop_upper_bound 
#>       0.03892712       1.00000000 
#> 
#> [[2]]
#>    prop_very_low         prop_low    prop_moderate        prop_high 
#>      0.000000000      0.007394318      0.021019610      0.034644902 
#>   prop_very_high prop_upper_bound 
#>      0.048270194      1.000000000 
#> 

get_prism_cutpoints(c("US", "WA"), c("ARI", "RSV"), as.Date("2025-01-01"))
#> [[1]]
#>    prop_very_low         prop_low    prop_moderate        prop_high 
#>        0.0000000        0.1046484        0.1381816        0.1717147 
#>   prop_very_high prop_upper_bound 
#>        0.2052479        1.0000000 
#> 
#> [[2]]
#>    prop_very_low         prop_low    prop_moderate        prop_high 
#>     0.0000000000     0.0004551485     0.0061158985     0.0117766486 
#>   prop_very_high prop_upper_bound 
#>     0.0174373986     1.0000000000 
#>