Format method for morie_otis_result objects
Usage
# S3 method for class 'morie_otis_result'
format(x, ...)Examples
if (requireNamespace("readr", quietly = TRUE)) {
# \donttest{
df <- morie_otis_load()
res <- morie_otis_all_analyses(df, year = 2024)
cat(format(res))
# }
}
#> OTIS regional placement -- FY 2024 , 2024 , all , 50 to 64 , Central, Eastern, Northern, Toronto, Western , 1 , Counts (age x region): , age , Central , Eastern , Northern , Toronto , Western , 50 to 64 , 0 , 0 , 1 , 0 , 0 , Proportions (within age): , age , Central , Eastern , Northern , Toronto , Western , 50 to 64 , 0.0% , 0.0% , 100.0% , 0.0% , 0.0% , , OTIS UniqueIndividual_ID is year-locked; counts are within-FY only., 0 , 0 , 1 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 2024 OTIS alert-state combination encoding , 5 , 1 , Count by alert-complexity level: , ac , n_persons , 1 , 5 , Each (person, fiscal-year) cell is encoded as one of 8 alert combinations of (mental_health, suicide_risk, suicide_watch). a8 = no alerts; a7 = all three. The complexity index `ac` counts how many distinct combinations the person-year occupied. Higher ac = more concurrent risk-flag patterns within the FY., OTIS UniqueIndividual_ID is year-locked; ac is within-FY. , 2022-SYNTH-001-RC , 2022-SYNTH-002-RC , 2023-SYNTH-003-RC , 2023-SYNTH-004-RC , 2024-SYNTH-005-RC , 2022 , 2022 , 2023 , 2023 , 2024 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 1 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 5 OTIS regional volatility (placement movement) , 5 , 1 , 1 , 1 , 1 , Volatility = number of distinct regions a person-year passed through, taking the union of `region_at_time_of_placement` and `region_most_recent_placement`. Higher = more movement. Strictly within-FY -- cross-year mobility is not measurable because OTIS IDs are year-locked., Intra-FY only (OTIS IDs are year-locked). , 2022-SYNTH-001-RC2022 , 2022-SYNTH-002-RC2022 , 2023-SYNTH-003-RC2023 , 2023-SYNTH-004-RC2023 , 2024-SYNTH-005-RC2024 , 1 , 1 , 1 , 1 , 1 , 1 , 1 OTIS restrictive-confinement trends over time , 2022-2024 , 5 , Restrictive-confinement counts by year x region:, year , region , n_individuals , n_placements , 2022 , Eastern , 1 , 1 , 2022 , Toronto , 1 , 1 , 2023 , Central , 1 , 1 , 2023 , Western , 1 , 1 , 2024 , Northern , 1 , 1 , , Per-year aggregates (OTIS IDs are year-locked). , 2022 , 2022 , 2023 , 2023 , 2024 , Eastern , Toronto , Central , Western , Northern , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 OTIS descriptives , 5 , 5 , 1 , 1 , 1 , 4 , n_by_year: , end_fiscal_year , n , 2022 , 2 , 2023 , 2 , 2024 , 1 , n_by_region: , region_at_time_of_placement, n , Central , 1 , Eastern , 1 , Northern , 1 , Toronto , 1 , Western , 1 , n_by_age: , age_category , n , 18 to 24 , 1 , 25 to 49 , 2 , 50 to 64 , 2 , n_by_gender: , gender , n , Female , 2 , Male , 3 , , 5 , 5 , 1 , 1 , 1 , 1 , 1 , 1
