tests/testthat/_snaps/print-conmat-matrix-method.md

Print method for setting prediction matrices works

Code
  synthetic_settings_5y_perth
Message

  -- Setting Prediction Matrices -------------------------------------------------
Output

Message
  A list of matrices containing the model predicted contact rate between ages in
  each setting.
Output

Message
  There are 16 age breaks, ranging 0-75+ years, with a regular 5 year interval
Output

Message
  * home: a 16x16 <matrix>
  * work: a 16x16 <matrix>
  * school: a 16x16 <matrix>
  * other: a 16x16 <matrix>
  * all: a 16x16 <matrix>
  i Access each <matrix> with `x$name`
  i e.g., `x$home`
Code
  synthetic_settings_5y_perth$home
Output
                [0,5)     [5,10)    [10,15)    [15,20)    [20,25)    [25,30)
  [0,5)    0.38789045 0.33210105 0.16557975 0.11562241 0.17537724 0.32079344
  [5,10)   0.19726111 0.31450832 0.20435685 0.07172436 0.05353828 0.09622432
  [10,15)  0.07471394 0.15524313 0.26497741 0.12658387 0.04492701 0.03598050
  [15,20)  0.08138455 0.08499540 0.19746218 0.34947062 0.17920451 0.07128869
  [20,25)  0.33142331 0.17033465 0.18815811 0.48112594 0.76888376 0.43482290
  [25,30)  1.11524469 0.56319441 0.27721551 0.35209947 0.79992133 1.21701438
  [30,35)  1.46117501 1.19259420 0.52928264 0.27895529 0.34719265 0.74938321
  [35,40)  0.74330229 1.05313163 0.74803670 0.33169128 0.17651760 0.21688083
  [40,45)  0.24243383 0.43001312 0.54990344 0.39513202 0.17156826 0.09286803
  [45,50)  0.12103221 0.15813020 0.25778018 0.34993765 0.23789433 0.10963548
  [50,55)  0.11638579 0.09738457 0.11654795 0.20694914 0.25510506 0.18500763
  [55,60)  0.13552433 0.10242329 0.07771556 0.09996622 0.16058398 0.20658854
  [60,65)  0.12194321 0.11260106 0.07578615 0.05791150 0.07075492 0.11910148
  [65,70)  0.07865152 0.09115708 0.07400016 0.04578659 0.03440377 0.04578312
  [70,75)  0.04510962 0.05648797 0.05698967 0.04077909 0.02578286 0.02251299
  [75,Inf) 0.04402359 0.05570846 0.05883844 0.05317666 0.04551787 0.04030822
              [30,35)    [35,40)    [40,45)    [45,50)    [50,55)    [55,60)
  [0,5)    0.42060716 0.31864682 0.17149896 0.11496698 0.12115821 0.14013775
  [5,10)   0.20390991 0.26816247 0.18068462 0.08921917 0.06021633 0.06290828
  [10,15)  0.06874743 0.14469763 0.17552909 0.11048824 0.05474595 0.03626104
  [15,20)  0.05652089 0.10008711 0.19674806 0.23397140 0.15164096 0.07275973
  [20,25)  0.18886643 0.14300194 0.22935860 0.42703753 0.50185911 0.31379780
  [25,30)  0.74993405 0.32322874 0.22839109 0.36204950 0.66955653 0.74265785
  [30,35)  1.17374673 0.71027731 0.27872222 0.19844987 0.33461225 0.60636373
  [35,40)  0.47693397 0.75412180 0.42212399 0.16273074 0.12698000 0.21793305
  [40,45)  0.11341690 0.25580905 0.41468038 0.23429368 0.09713508 0.07605737
  [45,50)  0.06013857 0.07344151 0.17448444 0.30727996 0.18691542 0.07598696
  [50,55)  0.09252591 0.05229095 0.06600722 0.17055496 0.32086096 0.18965921
  [55,60)  0.16879896 0.09035025 0.05203214 0.06980288 0.19093651 0.35555102
  [60,65)  0.17447768 0.15429167 0.08204692 0.04794223 0.06891981 0.19482017
  [65,70)  0.08771830 0.13849710 0.11956384 0.06150208 0.03819833 0.05982483
  [70,75)  0.03374808 0.06745564 0.10283259 0.08557446 0.04686213 0.03250684
  [75,Inf) 0.03797537 0.04381772 0.06980910 0.11214933 0.13678170 0.12510959
              [60,65)    [65,70)    [70,75)   [75,Inf)
  [0,5)    0.12698790 0.09065826 0.06324807 0.03928022
  [5,10)   0.06964957 0.06241111 0.04704411 0.02952438
  [10,15)  0.03561139 0.03848818 0.03605525 0.02368885
  [15,20)  0.04244920 0.03714827 0.04024533 0.03339715
  [20,25)  0.13924230 0.07494041 0.06831544 0.07675032
  [25,30)  0.43118792 0.18346380 0.10973774 0.12503361
  [30,35)  0.63120462 0.35124978 0.16438142 0.11771072
  [35,40)  0.37480302 0.37238900 0.22062372 0.09119984
  [40,45)  0.12078103 0.19481926 0.20381708 0.08805058
  [45,50)  0.05255945 0.07463077 0.12631359 0.10534477
  [50,55)  0.06894391 0.04229526 0.06311711 0.11723668
  [55,60)  0.19620080 0.06668741 0.04407729 0.10795460
  [60,65)  0.36060311 0.19591006 0.07220942 0.07841397
  [65,70)  0.17699507 0.33228421 0.18868213 0.06288151
  [70,75)  0.05363158 0.15511472 0.28163048 0.09693883
  [75,Inf) 0.09151867 0.08123343 0.15233068 0.23870923


njtierney/conmat documentation built on April 17, 2025, 10:27 p.m.