Simulate basic population dynamics model

sim_abundance(
  ages = 1:20,
  years = 1:20,
  Z = sim_Z(),
  R = sim_R(),
  N0 = sim_N0(),
  growth = sim_vonB()
)

Arguments

ages

Ages to include in the simulation.

years

Years to include in the simulation.

Z

Total mortality function, like sim_Z, for generating mortality matrix.

R

Recruitment (i.e. abundance at min(ages)) function, like sim_R, for generating recruitment vector.

N0

Starting abundance (i.e. abundance at min(years)) function, like sim_N0, for generating starting abundance vector.

growth

Closure, such as sim_vonB, for simulating length given age. The function is used here to generate a abundance-at-age matrix and it is carried forward for later use in sim_survey to simulate lengths from survey catch at age.

Value

A list of length 9:

  • ages - Vector of ages in the simulation

  • lengths - Vector of length groups (depends on growth function)

  • years - Vector of years in the simulation

  • R - Vector of recruitment values

  • N0 - Vector of starting abundance values

  • Z - Matrix of total mortality values

  • N - Matrix of abundance values

  • N_at_length - Abundance at length matrix

  • sim_length - Function for simulating lengths given ages

Details

Abundance from is calculated using a standard population dynamics model. An abundance-at-length matrix is generated using a growth function coded as a closure like sim_vonB. The function is retained for later use in sim_survey to simulate lengths given simulated catch at age in a simulated survey. The ability to simulate distributions by length is yet to be implemented.

Examples


R_fun <- sim_R(log_mean = log(100000), log_sd = 0.1, random_walk = TRUE, plot = TRUE)
R_fun(years = 1:100)

#>         1         2         3         4         5         6         7         8 
#>  97835.11  87752.20  70746.11  69154.73  64945.28  60610.30  53038.54  51067.24 
#>         9        10        11        12        13        14        15        16 
#>  44653.96  50327.46  49576.82  51442.87  59513.63  74519.39  88229.39  81857.73 
#>        17        18        19        20        21        22        23        24 
#>  78935.22  75853.03  83484.55  86007.30  65824.24  71255.11  73847.22  77533.32 
#>        25        26        27        28        29        30        31        32 
#>  79023.40  80499.94  71253.15  65643.96  55643.41  57974.30  60481.39  58920.06 
#>        33        34        35        36        37        38        39        40 
#>  59674.16  62386.39  72767.71  79118.87  80864.56  90435.72  87906.53  91225.72 
#>        41        42        43        44        45        46        47        48 
#>  86383.17  80871.55  93717.63 104228.87 126780.02 134273.76 161899.99 190373.61 
#>        49        50        51        52        53        54        55        56 
#> 182411.84 175770.80 213454.62 254076.75 259830.65 283858.87 306057.88 342689.83 
#>        57        58        59        60        61        62        63        64 
#> 314680.79 328070.21 345277.77 315851.44 310573.88 307808.92 291169.24 291067.77 
#>        65        66        67        68        69        70        71        72 
#> 348439.16 377166.85 332386.38 331788.06 357952.03 422929.71 394571.46 382415.63 
#>        73        74        75        76        77        78        79        80 
#> 407474.18 426047.53 398283.12 385326.38 375415.33 315933.23 405805.19 369325.82 
#>        81        82        83        84        85        86        87        88 
#> 366145.41 341821.49 352256.45 318131.57 315880.64 320767.36 258596.04 262217.51 
#>        89        90        91        92        93        94        95        96 
#> 282837.49 282124.13 269966.95 266689.44 213645.62 164467.47 132559.29 121778.21 
#>        97        98        99       100 
#> 122688.14 126198.38 145731.85 147537.01 
sim_abundance(R = sim_R(log_mean = log(100000), log_sd = 0.5))
#> $ages
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
#> 
#> $lengths
#>  [1]   1   4   7  10  13  16  19  22  25  28  31  34  37  40  43  46  49  52  55
#> [20]  58  61  64  67  70  73  76  79  82  85  88  91  94  97 100 103 106 109 112
#> [39] 115 118 121 124 127 130 133 136 139 142 145 148 151 154 157 160 163 166 169
#> [58] 172 175 178 181 184 187 190 193 196 199 202 205 208 211 214 217 220 223 226
#> [77] 229 232 235 238
#> 
#> $years
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
#> 
#> $R
#>         1         2         3         4         5         6         7         8 
#>  69761.55  67883.62 131846.63  69331.87  77382.27  42959.93  93265.10  98011.29 
#>         9        10        11        12        13        14        15        16 
#> 161208.53 108785.79 147510.38 105031.45 135921.45 238004.19 153752.47 115843.36 
#>        17        18        19        20 
#> 132869.03  78636.26 113778.58 106350.56 
#> 
#> $N0
#>  [1] 6.976155e+04 2.843632e+04 1.155050e+04 5.248746e+03 1.745947e+03
#>  [6] 6.347768e+02 2.402389e+02 8.781896e+01 3.349900e+01 1.222343e+01
#> [11] 2.695987e+00 4.161838e-01 6.790441e-02 1.421502e-02 2.085524e-03
#> [16] 2.676289e-04 6.285649e-05 1.517581e-05 5.311147e-06 2.723448e-06
#> 
#> $Z
#>     year
#> age          1         2         3         4         5         6         7
#>   1  0.8974156 0.3736134 0.2569477 0.6870617 0.6974045 0.3149698 0.3830982
#>   2  0.9009389 0.3546102 0.2866596 0.5733200 0.6961914 0.3804087 0.3928738
#>   3  0.7887392 0.2981217 0.2315984 0.4493357 0.6373650 0.3568150 0.5715158
#>   4  1.1006923 0.2735523 0.2531136 0.3721221 0.4249917 0.3506638 0.5286308
#>   5  1.0117788 0.3124415 0.2687236 0.3935555 0.3227032 0.3449522 0.5486341
#>   6  0.9716398 0.3903991 0.3118245 0.6412101 0.3108945 0.1750589 0.3624434
#>   7  1.0063563 0.3727082 0.3168539 0.5694139 0.2673222 0.1446548 0.3057675
#>   8  0.9637618 0.3967615 0.5114031 0.6883709 0.3529250 0.1609406 0.2628041
#>   9  1.0081606 0.4253353 0.4501332 0.6000066 0.3588158 0.1603407 0.3004119
#>   10 1.5115907 0.3749610 0.3637608 0.7536110 0.4503617 0.1701310 0.2386546
#>   11 1.8683925 0.5357589 0.4807565 0.6235716 0.4148611 0.1696253 0.1736456
#>   12 1.8130262 0.3988363 0.3605520 0.5782574 0.5807328 0.2014665 0.2120995
#>   13 1.5638017 0.3269738 0.2610590 0.4933558 0.5858306 0.2582222 0.2423385
#>   14 1.9192790 0.3976669 0.2825983 0.5485856 0.5754361 0.2965817 0.2710136
#>   15 2.0531744 0.5594217 0.4405285 0.6994738 0.6467668 0.3216382 0.3313696
#>   16 1.4487469 0.4579951 0.4784036 0.5925611 0.6551879 0.4507118 0.4031360
#>   17 1.4211513 0.4195542 0.5345731 0.6228093 0.7045530 0.4930615 0.5794778
#>   18 1.0498951 0.3871255 0.3682833 0.5166532 0.7431454 0.4805361 0.5867528
#>   19 0.6679090 0.3589368 0.3400604 0.4746225 0.5264351 0.4580830 0.7383452
#>   20 0.6510989 0.4834499 0.3225840 0.3880582 0.5925763 0.3424344 0.5704415
#>     year
#> age          8         9        10        11        12        13        14
#>   1  0.4831761 0.3048553 0.5227536 0.6087629 0.9603162 0.8899823 0.6282414
#>   2  0.4074274 0.1971016 0.3263881 0.5383651 0.9465818 0.8038369 0.5071708
#>   3  0.6119604 0.3121730 0.3596250 0.4826760 0.7425971 0.7246034 0.3112859
#>   4  0.5313904 0.3354276 0.3125087 0.3885744 0.8610212 0.7279119 0.3400067
#>   5  0.6341622 0.4403554 0.3668353 0.3839153 0.7593567 0.7795599 0.4674696
#>   6  0.4178977 0.4064401 0.4424178 0.4112564 0.5743703 0.6531701 0.4972878
#>   7  0.3108895 0.3322963 0.3394463 0.3624041 0.3863914 0.8079976 0.5140968
#>   8  0.2539530 0.3057523 0.2370665 0.2518421 0.3958483 0.7750213 0.5220431
#>   9  0.2162830 0.2878934 0.3105442 0.2942213 0.4164645 0.7105340 0.5565601
#>   10 0.1457704 0.1820890 0.3097177 0.3291983 0.2552807 0.7359468 0.5546682
#>   11 0.1397028 0.1870172 0.3213542 0.3003149 0.2562060 0.6746260 0.5130286
#>   12 0.1301116 0.2115942 0.3583673 0.3527353 0.1950673 0.5283786 0.6011872
#>   13 0.1679084 0.2355294 0.4856756 0.4016556 0.2094322 0.4480399 0.5507240
#>   14 0.2051415 0.2262181 0.4828825 0.2292792 0.1282342 0.2501317 0.3997959
#>   15 0.2581652 0.2376760 0.5932090 0.2940136 0.1867805 0.3696569 0.4278930
#>   16 0.2964106 0.2113763 0.7421086 0.3538572 0.1826212 0.4783641 0.4487218
#>   17 0.5114625 0.3275760 0.8842155 0.5086063 0.2568942 0.4374665 0.3381285
#>   18 0.5556200 0.3824433 0.8174804 0.5767513 0.3208034 0.5382913 0.4074612
#>   19 0.6780755 0.4648902 1.0333147 0.8582122 0.6032880 0.5481131 0.3209510
#>   20 0.4170088 0.3744069 0.8718016 0.8131533 0.7565228 0.5240936 0.4391535
#>     year
#> age         15        16        17        18        19        20
#>   1  0.8360947 1.1061899 0.5843981 0.4150585 0.5923203 0.2986743
#>   2  0.8101227 0.8498254 0.5939082 0.3998916 0.4961747 0.3635400
#>   3  0.6055600 0.7926924 0.5923891 0.6055405 0.7748015 0.4547472
#>   4  0.7255450 0.7571021 0.6601576 0.6754990 0.7797024 0.5635653
#>   5  0.7903216 0.6856569 0.7917229 0.7308043 0.6358986 0.2771660
#>   6  0.7994811 0.6149338 0.5961914 0.7158888 0.6905728 0.3730273
#>   7  0.7705038 0.5657675 0.5823291 0.6479964 0.6385640 0.3911064
#>   8  1.0277103 0.9078582 0.8976940 0.8639415 0.5386486 0.4140122
#>   9  0.8538019 0.8170219 1.0969868 1.0271474 0.7104531 0.4117382
#>   10 0.7416933 0.6883747 0.9879336 0.8509728 0.8416875 0.5349678
#>   11 0.7057650 0.6067854 0.9819202 0.6513925 0.7366302 0.4348449
#>   12 0.6809634 0.5690306 0.7260347 0.7148747 0.6326671 0.3382954
#>   13 0.6279934 0.7162320 0.9675652 0.6103754 0.6552967 0.3829093
#>   14 0.5205734 0.7963075 1.0324886 0.6992566 0.7790887 0.3237794
#>   15 0.4609131 0.7028815 1.3892603 0.7189297 0.6171017 0.2418118
#>   16 0.5268196 0.5798441 1.8789039 0.8563736 0.7802408 0.2498776
#>   17 0.5233564 0.5596657 1.2678835 0.8315888 0.7355683 0.1734048
#>   18 0.4817099 0.5385171 0.9482712 0.8647729 0.7449168 0.1898856
#>   19 0.3906893 0.4154942 0.8341115 0.6855083 0.7051705 0.1548924
#>   20 0.3292231 0.3293985 0.6157839 0.4829268 0.6652432 0.1835320
#> 
#> $N
#>     year
#> age             1            2            3            4            5
#>   1  6.976155e+04 6.788362e+04 1.318466e+05 6.933187e+04 7.738227e+04
#>   2  2.843632e+04 2.843632e+04 4.672043e+04 1.019713e+05 3.487754e+04
#>   3  1.155050e+04 1.155050e+04 1.994657e+04 3.507617e+04 5.747624e+04
#>   4  5.248746e+03 5.248746e+03 8.572905e+03 1.582291e+04 2.238041e+04
#>   5  1.745947e+03 1.745947e+03 3.992577e+03 6.655830e+03 1.090626e+04
#>   6  6.347768e+02 6.347768e+02 1.277437e+03 3.051744e+03 4.490381e+03
#>   7  2.402389e+02 2.402389e+02 4.296085e+02 9.352242e+02 1.607215e+03
#>   8  8.781896e+01 8.781896e+01 1.654924e+02 3.129428e+02 5.292032e+02
#>   9  3.349900e+01 3.349900e+01 5.905776e+01 9.923813e+01 1.572206e+02
#>   10 1.222343e+01 1.222343e+01 2.189329e+01 3.765187e+01 5.446268e+01
#>   11 2.695987e+00 2.695987e+00 8.401364e+00 1.521709e+01 1.772138e+01
#>   12 4.161838e-01 4.161838e-01 1.577759e+00 5.194693e+00 8.156767e+00
#>   13 6.790441e-02 6.790441e-02 2.793012e-01 1.100158e+00 2.913573e+00
#>   14 1.421502e-02 1.421502e-02 4.896604e-02 2.151277e-01 6.717276e-01
#>   15 2.085524e-03 2.085524e-03 9.550871e-03 3.691171e-02 1.242936e-01
#>   16 2.676289e-04 2.676289e-04 1.191960e-03 6.147859e-03 1.833946e-02
#>   17 6.285649e-05 6.285649e-05 1.692888e-04 7.387431e-04 3.399209e-03
#>   18 1.517581e-05 1.517581e-05 4.131808e-05 9.918959e-05 3.962879e-04
#>   19 5.311147e-06 5.311147e-06 1.030447e-05 2.858885e-05 5.916794e-05
#>   20 2.723448e-06 2.723448e-06 3.709403e-06 7.333970e-06 1.778569e-05
#>     year
#> age             6            7            8            9           10
#>   1  4.295993e+04 9.326510e+04 9.801129e+04 1.612085e+05 1.087858e+05
#>   2  3.852676e+04 3.135262e+04 6.358311e+04 6.045544e+04 1.188478e+05
#>   3  1.738576e+04 2.633620e+04 2.116659e+04 4.230564e+04 4.964039e+04
#>   4  3.038675e+04 1.216833e+04 1.487123e+04 1.147836e+04 3.096159e+04
#>   5  1.463176e+04 2.139897e+04 7.172153e+03 8.741119e+03 8.207400e+03
#>   6  7.898188e+03 1.036300e+04 1.236301e+04 3.803964e+03 5.627599e+03
#>   7  3.290512e+03 6.629799e+03 7.212379e+03 8.140170e+03 2.533505e+03
#>   8  1.230205e+03 2.847349e+03 4.883231e+03 5.285194e+03 5.838739e+03
#>   9  3.718339e+02 1.047326e+03 2.189305e+03 3.788060e+03 3.892910e+03
#>   10 1.098190e+02 3.167480e+02 7.755588e+02 1.763501e+03 2.840445e+03
#>   11 3.471438e+01 9.263831e+01 2.494983e+02 6.703590e+02 1.469926e+03
#>   12 1.170377e+01 2.929828e+01 7.787128e+01 2.169679e+02 5.560155e+02
#>   13 4.563615e+00 9.568191e+00 2.369891e+01 6.837078e+01 1.755906e+02
#>   14 1.621821e+00 3.525044e+00 7.509025e+00 2.003580e+01 5.402333e+01
#>   15 3.778196e-01 1.205589e+00 2.688220e+00 6.116342e+00 1.597944e+01
#>   16 6.509707e-02 2.739043e-01 8.655400e-01 2.076563e+00 4.822479e+00
#>   17 9.524497e-03 4.147819e-02 1.830286e-01 6.435135e-01 1.680914e+00
#>   18 1.680329e-03 5.817121e-03 2.323570e-02 1.097473e-01 4.637599e-01
#>   19 1.884807e-04 1.039203e-03 3.235077e-03 1.333070e-02 7.486877e-02
#>   20 3.495092e-05 1.192131e-04 4.966391e-04 1.642102e-03 8.374401e-03
#>     year
#> age            11           12           13           14           15
#>   1  1.475104e+05 1.050315e+05 1.359215e+05 2.380042e+05 153752.47131
#>   2  6.449754e+04 8.024911e+04 4.020308e+04 5.581792e+04 126982.19309
#>   3  8.575165e+04 3.764733e+04 3.114189e+04 1.799523e+04  33613.37617
#>   4  3.464592e+04 5.291990e+04 1.791548e+04 1.508876e+04  13181.58660
#>   5  2.265179e+04 2.349072e+04 2.237084e+04 8.651675e+03  10739.66309
#>   6  5.687103e+03 1.543015e+04 1.099289e+04 1.025944e+04   5421.01655
#>   7  3.615626e+03 3.769508e+03 8.688090e+03 5.720629e+03   6239.56526
#>   8  1.804272e+03 2.516480e+03 2.561398e+03 3.872714e+03   3421.16780
#>   9  4.606408e+03 1.402583e+03 1.693864e+03 1.180020e+03   2297.70902
#>   10 2.853690e+03 3.432288e+03 9.248264e+02 8.323340e+02    676.36102
#>   11 2.083904e+03 2.053231e+03 2.658990e+03 4.430396e+02    477.97843
#>   12 1.065941e+03 1.543308e+03 1.589165e+03 1.354348e+03    265.23880
#>   13 3.885528e+02 7.491041e+02 1.269802e+03 9.369081e+02    742.40017
#>   14 1.080376e+02 2.600238e+02 6.075568e+02 8.112498e+02    540.15773
#>   15 3.333252e+01 8.590141e+01 2.287293e+02 4.731034e+02    543.90803
#>   16 8.829459e+00 2.484161e+01 7.126603e+01 1.580454e+02    308.40722
#>   17 2.296025e+00 6.198061e+00 2.069514e+01 4.417043e+01    100.90308
#>   18 6.942816e-01 1.380676e+00 4.793891e+00 1.336223e+01     31.49809
#>   19 2.047698e-01 3.899920e-01 1.001771e+00 2.798409e+00      8.89039
#>   20 2.664022e-02 8.680588e-02 2.133296e-01 5.790634e-01      2.03013
#>     year
#> age            16           17          18           19           20
#>   1  1.158434e+05 132869.02518 78636.25761 113778.57960 1.063506e+05
#>   2  6.663629e+04  38322.95275 74066.67775  51923.64876 6.292440e+04
#>   3  5.648212e+04  28486.31604 21160.59759  49653.76090 3.161399e+04
#>   4  1.834513e+04  25565.19279 15753.06217  11549.01699 2.288022e+04
#>   5  6.380688e+03   8604.29957 13211.32204   8016.77146 5.295715e+03
#>   6  4.872573e+03   3214.33020  3898.29452   6361.53595 4.244556e+03
#>   7  2.437084e+03   2634.48652  1770.79326   1905.32067 3.188967e+03
#>   8  2.887545e+03   1384.07875  1471.61317    926.28922 1.006105e+03
#>   9  1.224181e+03   1164.79895   564.02359    620.28126 5.405234e+02
#>   10 9.783485e+02    540.77595   388.89797    201.93556 3.048195e+02
#>   11 3.221553e+02    491.51439   201.35540    166.05918 8.703072e+01
#>   12 2.359927e+02    175.60695   184.11693    104.97047 7.949658e+01
#>   13 1.342451e+02    133.58929    84.96281     90.07983 5.575750e+01
#>   14 3.961904e+02     65.59079    50.76488     46.14729 4.677737e+01
#>   15 3.209508e+02    178.67840    23.35817     25.22784 2.117348e+01
#>   16 3.430469e+02    158.92085    44.53731     11.38181 1.361057e+01
#>   17 1.821083e+02    192.10133    24.27634     18.91497 5.216236e+00
#>   18 5.978794e+01    104.05669    54.06243     10.56888 9.064678e+00
#>   19 1.945720e+01     34.89302    40.31262     22.76824 5.017826e+00
#>   20 6.015152e+00     12.84203    15.15265     20.31087 1.124807e+01
#> 
#> $N_at_length
#>       year
#> length            1            2            3            4            5
#>    1   4.238584e-58 4.124484e-58 8.010760e-58 4.212477e-58 4.701605e-58
#>    4   5.126530e-18 4.988528e-18 9.688944e-18 5.094954e-18 5.686550e-18
#>    7   3.751013e-04 3.650038e-04 7.089269e-04 3.727909e-04 4.160772e-04
#>    10  1.565867e+02 1.523716e+02 2.959429e+02 1.556223e+02 1.736922e+02
#>    13  1.874088e+04 1.823639e+04 3.541954e+04 1.862545e+04 2.078813e+04
#>    16  4.301669e+04 4.185883e+04 8.129884e+04 4.276269e+04 4.771631e+04
#>    19  8.180771e+03 7.974930e+03 1.532942e+04 9.514933e+03 9.137085e+03
#>    22  6.187999e+03 6.182522e+03 1.021713e+04 2.166181e+04 7.570153e+03
#>    25  1.256324e+04 1.256320e+04 2.064685e+04 4.501272e+04 1.564486e+04
#>    28  8.210330e+03 8.210330e+03 1.355060e+04 2.904105e+04 1.280573e+04
#>    31  4.388738e+03 4.388738e+03 7.431850e+03 1.427636e+04 1.534231e+04
#>    34  4.248201e+03 4.248201e+03 7.303094e+03 1.300365e+04 2.028253e+04
#>    37  3.479884e+03 3.479884e+03 5.949618e+03 1.056650e+04 1.679492e+04
#>    40  2.468831e+03 2.468831e+03 4.173221e+03 7.512038e+03 1.143593e+04
#>    43  1.871558e+03 1.871558e+03 3.198294e+03 5.795130e+03 8.542077e+03
#>    46  1.380688e+03 1.380688e+03 2.483625e+03 4.466606e+03 6.641027e+03
#>    49  9.484029e+02 9.484029e+02 1.841179e+03 3.295670e+03 5.037820e+03
#>    52  6.393474e+02 6.393474e+02 1.319812e+03 2.409772e+03 3.757344e+03
#>    55  4.327000e+02 4.327000e+02 9.114113e+02 1.745635e+03 2.732532e+03
#>    58  2.917827e+02 2.917827e+02 6.056691e+02 1.228893e+03 1.920145e+03
#>    61  1.951089e+02 1.951089e+02 3.927587e+02 8.328541e+02 1.305882e+03
#>    64  1.291661e+02 1.291661e+02 2.518772e+02 5.433822e+02 8.619322e+02
#>    67  8.443910e+01 8.443910e+01 1.605590e+02 3.431810e+02 5.527442e+02
#>    70  5.435770e+01 5.435770e+01 1.016804e+02 2.115041e+02 3.448850e+02
#>    73  3.437002e+01 3.437002e+01 6.378557e+01 1.281208e+02 2.098615e+02
#>    76  2.127992e+01 2.127992e+01 3.948377e+01 7.663359e+01 1.249026e+02
#>    79  1.285227e+01 1.285227e+01 2.402138e+01 4.535320e+01 7.294750e+01
#>    82  7.540669e+00 7.540669e+00 1.430976e+01 2.655896e+01 4.194246e+01
#>    85  4.281595e+00 4.281595e+00 8.317859e+00 1.536463e+01 2.380282e+01
#>    88  2.345910e+00 2.345910e+00 4.702815e+00 8.754596e+00 1.335142e+01
#>    91  1.238226e+00 1.238226e+00 2.579261e+00 4.894416e+00 7.400868e+00
#>    94  6.293347e-01 6.293347e-01 1.369450e+00 2.674481e+00 4.047703e+00
#>    97  3.081987e-01 3.081987e-01 7.030698e-01 1.423728e+00 2.178699e+00
#>    100 1.456403e-01 1.456403e-01 3.489160e-01 7.366253e-01 1.150731e+00
#>    103 6.654564e-02 6.654564e-02 1.674659e-01 3.699349e-01 5.947467e-01
#>    106 2.947043e-02 2.947043e-02 7.782279e-02 1.802564e-01 3.001197e-01
#>    109 1.268246e-02 1.268246e-02 3.507194e-02 8.524929e-02 1.476346e-01
#>    112 5.317549e-03 5.317549e-03 1.535736e-02 3.916603e-02 7.073797e-02
#>    115 2.177847e-03 2.177847e-03 6.547585e-03 1.750210e-02 3.300699e-02
#>    118 8.733974e-04 8.733974e-04 2.723844e-03 7.618577e-03 1.500353e-02
#>    121 3.437549e-04 3.437549e-04 1.107991e-03 3.235592e-03 6.648621e-03
#>    124 1.330558e-04 1.330558e-04 4.415924e-04 1.342893e-03 2.875129e-03
#>    127 5.074217e-05 5.074217e-05 1.727674e-04 5.455604e-04 1.214752e-03
#>    130 1.909703e-05 1.909703e-05 6.646863e-05 2.172921e-04 5.020936e-04
#>    133 7.103139e-06 7.103139e-06 2.518706e-05 8.497674e-05 2.032981e-04
#>    136 2.614409e-06 2.614409e-06 9.413879e-06 3.267609e-05 8.074608e-05
#>    139 9.532839e-07 9.532839e-07 3.474966e-06 1.237128e-05 3.150129e-05
#>    142 3.446910e-07 3.446910e-07 1.268312e-06 4.617378e-06 1.208692e-05
#>    145 1.237051e-07 1.237051e-07 4.581910e-07 1.700886e-06 4.566906e-06
#>    148 4.410126e-08 4.410126e-08 1.639904e-07 6.190429e-07 1.701219e-06
#>    151 1.562966e-08 1.562966e-08 5.819837e-08 2.228254e-07 6.254813e-07
#>    154 5.510440e-09 5.510440e-09 2.049554e-08 7.939767e-08 2.272166e-07
#>    157 1.933958e-09 1.933958e-09 7.167610e-09 2.802995e-08 8.163280e-08
#>    160 6.760643e-10 6.760643e-10 2.490801e-09 9.811881e-09 2.903267e-08
#>    163 2.355325e-10 2.355325e-10 8.606359e-10 3.408153e-09 1.023010e-08
#>    166 8.182081e-11 8.182081e-11 2.958476e-10 1.175502e-09 3.574297e-09
#>    169 2.835079e-11 2.835079e-11 1.012256e-10 4.028403e-10 1.239187e-09
#>    172 9.804625e-12 9.804625e-12 3.449460e-11 1.372552e-10 4.266086e-10
#>    175 3.383547e-12 3.383547e-12 1.170960e-11 4.651631e-11 1.459228e-10
#>    178 1.166966e-12 1.166966e-12 3.963911e-12 1.569312e-11 4.962872e-11
#>    181 4.014738e-13 4.014738e-13 1.337397e-12 5.270833e-12 1.678858e-11
#>    184 1.378263e-13 1.378263e-13 4.494516e-13 1.762150e-12 5.650536e-12
#>    187 4.750845e-14 4.750845e-14 1.514758e-13 5.886137e-13 1.895542e-12
#>    190 1.625759e-14 1.625759e-14 5.066919e-14 1.957291e-13 6.332989e-13
#>    193 5.531302e-15 5.531302e-15 1.679548e-14 6.434550e-14 2.098762e-13
#>    196 1.937223e-15 1.937223e-15 5.774691e-15 2.182766e-14 7.058593e-14
#>    199 6.465906e-16 6.465906e-16 1.866366e-15 6.998016e-15 2.298786e-14
#>    202 2.231924e-16 2.231924e-16 6.301992e-16 2.336657e-15 7.667261e-15
#>    205 7.260181e-17 7.260181e-17 1.960077e-16 7.111910e-16 2.359931e-15
#>    208 2.511093e-17 2.511093e-17 6.638243e-17 2.380953e-16 7.883720e-16
#>    211 9.772244e-18 9.772244e-18 2.632981e-17 9.655514e-17 3.159845e-16
#>    214 2.784654e-18 2.784654e-18 6.863201e-18 2.359222e-17 7.797945e-17
#>    217 1.107489e-18 1.107489e-18 3.005882e-18 1.048280e-17 3.475307e-17
#>    220 3.057298e-19 3.057298e-19 6.723328e-19 2.183426e-18 7.134646e-18
#>    223 9.610281e-20 9.610281e-20 1.863754e-19 5.150263e-19 1.732618e-18
#>    226 3.480166e-20 3.480166e-20 6.834055e-20 1.985730e-19 6.961251e-19
#>    229 9.183657e-21 9.183657e-21 1.616438e-20 3.755024e-20 1.038410e-19
#>    232 4.678346e-21 4.678346e-21 9.346238e-21 2.224566e-20 6.898237e-20
#>    235 1.194383e-21 1.194383e-21 1.967679e-21 4.802468e-21 1.051818e-20
#>    238 3.023635e-22 3.023635e-22 4.118265e-22 8.142343e-22 1.974608e-21
#>       year
#> length            6            7            8            9           10
#>    1   2.610166e-58 5.666616e-58 5.954986e-58 9.794735e-58 6.609625e-58
#>    4   3.156974e-18 6.853723e-18 7.202504e-18 1.184665e-17 7.994284e-18
#>    7   2.309915e-04 5.014777e-04 5.269975e-04 8.668031e-04 5.849309e-04
#>    10  9.642784e+01 2.093428e+02 2.199961e+02 3.618486e+02 2.441806e+02
#>    13  1.154084e+04 2.505492e+04 2.632995e+04 4.330738e+04 2.922444e+04
#>    16  2.649327e+04 5.750857e+04 6.043969e+04 9.940437e+04 6.709106e+04
#>    19  5.432556e+03 1.081180e+04 1.193744e+04 1.880581e+04 1.415652e+04
#>    22  8.233569e+03 6.871664e+03 1.366669e+04 1.319504e+04 2.532937e+04
#>    25  1.702962e+04 1.392616e+04 2.806454e+04 2.680637e+04 5.251077e+04
#>    28  1.123726e+04 9.911702e+03 1.806461e+04 1.857520e+04 3.440225e+04
#>    31  6.439253e+03 7.972460e+03 8.761628e+03 1.338638e+04 1.869182e+04
#>    34  7.161352e+03 9.472494e+03 8.049565e+03 1.499055e+04 1.853050e+04
#>    37  8.222265e+03 8.037174e+03 7.086454e+03 1.173175e+04 1.605038e+04
#>    40  9.611171e+03 6.225090e+03 5.948506e+03 7.215367e+03 1.269720e+04
#>    43  1.007783e+04 6.113066e+03 5.323064e+03 5.027477e+03 1.038729e+04
#>    46  8.780530e+03 6.802273e+03 4.672255e+03 4.132587e+03 7.738448e+03
#>    49  6.946808e+03 7.200368e+03 4.285653e+03 3.586377e+03 5.290486e+03
#>    52  5.411595e+03 6.799394e+03 4.334858e+03 3.195906e+03 3.745057e+03
#>    55  4.182368e+03 5.805644e+03 4.479106e+03 2.999420e+03 2.932938e+03
#>    58  3.154432e+03 4.679651e+03 4.378986e+03 3.008010e+03 2.529741e+03
#>    61  2.299428e+03 3.663938e+03 3.971188e+03 3.086393e+03 2.370569e+03
#>    64  1.613932e+03 2.792821e+03 3.373278e+03 3.058047e+03 2.351216e+03
#>    67  1.090240e+03 2.053262e+03 2.717941e+03 2.843011e+03 2.354582e+03
#>    70  7.097477e+02 1.445302e+03 2.088764e+03 2.470156e+03 2.279396e+03
#>    73  4.460605e+02 9.720521e+02 1.530989e+03 2.015567e+03 2.083817e+03
#>    76  2.711683e+02 6.256309e+02 1.069012e+03 1.552407e+03 1.786795e+03
#>    79  1.598560e+02 3.865609e+02 7.113341e+02 1.132396e+03 1.438595e+03
#>    82  9.167635e+01 2.301216e+02 4.520740e+02 7.841529e+02 1.091219e+03
#>    85  5.133375e+01 1.324716e+02 2.753484e+02 5.167105e+02 7.824799e+02
#>    88  2.816542e+01 7.400707e+01 1.613592e+02 3.249121e+02 5.320423e+02
#>    91  1.518792e+01 4.026323e+01 9.133343e+01 1.955962e+02 3.440252e+02
#>    94  8.065614e+00 2.139959e+01 5.011215e+01 1.131134e+02 2.121754e+02
#>    97  4.222200e+00 1.114134e+01 2.673604e+01 6.305149e+01 1.252022e+02
#>    100 2.178464e+00 5.693853e+00 1.390758e+01 3.398531e+01 7.091465e+01
#>    103 1.106806e+00 2.860269e+00 7.069090e+00 1.776528e+01 3.867808e+01
#>    106 5.529689e-01 1.413313e+00 3.517220e+00 9.029742e+00 2.037784e+01
#>    109 2.712579e-01 6.869959e-01 1.715346e+00 4.473044e+00 1.040165e+01
#>    112 1.304738e-01 3.284259e-01 8.208435e-01 2.163845e+00 5.158073e+00
#>    115 6.147032e-02 1.543414e-01 3.856916e-01 1.023981e+00 2.491115e+00
#>    118 2.834774e-02 7.126330e-02 1.780368e-01 4.747183e-01 1.174318e+00
#>    121 1.279266e-02 3.231473e-02 8.076478e-02 2.158718e-01 5.413945e-01
#>    124 5.649679e-03 1.438690e-02 3.601571e-02 9.638848e-02 2.445227e-01
#>    127 2.442678e-03 6.288245e-03 1.579142e-02 4.229689e-02 1.083538e-01
#>    130 1.034538e-03 2.698583e-03 6.809500e-03 1.825481e-02 4.716760e-02
#>    133 4.295321e-04 1.137396e-03 2.888667e-03 7.753961e-03 2.019283e-02
#>    136 1.749835e-04 4.710306e-04 1.205911e-03 3.243480e-03 8.509841e-03
#>    139 7.001096e-05 1.917752e-04 4.956134e-04 1.336863e-03 3.533322e-03
#>    142 2.753817e-05 7.681158e-05 2.006232e-04 5.432335e-04 1.446469e-03
#>    145 1.065967e-05 3.028762e-05 8.003026e-05 2.177420e-04 5.842456e-04
#>    148 4.064709e-06 1.176629e-05 3.147792e-05 8.613601e-05 2.329784e-04
#>    151 1.528345e-06 4.507050e-06 1.221506e-05 3.364693e-05 9.177539e-05
#>    154 5.672004e-07 1.703608e-06 4.679435e-06 1.298547e-05 3.573315e-05
#>    157 2.079584e-07 6.359396e-07 1.770826e-06 4.954000e-06 1.375897e-05
#>    160 7.539184e-08 2.346227e-07 6.624026e-07 1.869288e-06 5.242010e-06
#>    163 2.704870e-08 8.561760e-08 2.450820e-07 6.979968e-07 1.977105e-06
#>    166 9.611478e-09 3.092549e-08 8.974723e-08 2.580612e-07 7.385831e-07
#>    169 3.385154e-09 1.106458e-08 3.254762e-08 9.451783e-08 2.734131e-07
#>    172 1.182576e-09 3.923939e-09 1.169706e-08 3.431302e-08 1.003459e-07
#>    175 4.100298e-10 1.380212e-09 4.168103e-09 1.235303e-08 3.652924e-08
#>    178 1.412051e-10 4.818474e-10 1.473604e-09 4.412627e-09 1.319631e-08
#>    181 4.832021e-11 1.670381e-10 5.171309e-10 1.564634e-09 4.732776e-09
#>    184 1.643756e-11 5.752739e-11 1.802173e-10 5.509233e-10 1.685715e-09
#>    187 5.566140e-12 1.970505e-11 6.243276e-11 1.928117e-10 5.967519e-10
#>    190 1.875267e-12 6.711276e-12 2.149651e-11 6.706268e-11 2.099689e-10
#>    193 6.277671e-13 2.271341e-12 7.353322e-12 2.317242e-11 7.340309e-11
#>    196 2.111716e-13 7.696546e-13 2.514472e-12 7.998468e-12 2.561247e-11
#>    199 6.976714e-14 2.573286e-13 8.495923e-13 2.729691e-12 8.846979e-12
#>    202 2.330370e-14 8.643784e-14 2.876704e-13 9.327097e-13 3.055977e-12
#>    205 7.392355e-15 2.814993e-14 9.522310e-14 3.123444e-13 1.037857e-12
#>    208 2.467983e-15 9.424192e-15 3.207252e-14 1.060773e-13 3.561468e-13
#>    211 9.529736e-16 3.444310e-15 1.141014e-14 3.756703e-14 1.262198e-13
#>    214 2.503583e-16 1.000949e-15 3.525333e-15 1.190306e-14 4.088098e-14
#>    217 1.097396e-16 4.156631e-16 1.351544e-15 4.386920e-15 1.489961e-14
#>    220 2.307421e-17 9.584053e-17 3.580770e-16 1.265883e-15 4.518184e-15
#>    223 5.366076e-18 2.219867e-17 8.866190e-17 3.502070e-16 1.355356e-15
#>    226 2.096307e-18 8.793035e-18 3.573425e-17 1.374685e-16 5.020792e-16
#>    229 3.362219e-19 1.332329e-18 4.953690e-18 2.120368e-17 1.005418e-16
#>    232 2.516871e-19 9.559914e-19 3.628840e-18 1.623826e-17 7.369037e-17
#>    235 2.868622e-20 1.418453e-19 4.694417e-19 1.844625e-18 1.017159e-17
#>    238 3.880331e-21 1.323531e-20 5.513802e-20 1.823100e-19 9.297453e-19
#>       year
#> length           11           12           13           14           15
#>    1   8.962460e-58 6.381519e-58 8.258338e-58 1.446070e-57 9.341718e-58
#>    4   1.084002e-17 7.718391e-18 9.988388e-18 1.749009e-17 1.129873e-17
#>    7   7.931494e-04 5.647442e-04 7.308369e-04 1.279726e-03 8.267126e-04
#>    10  3.311018e+02 2.357536e+02 3.050893e+02 5.342242e+02 3.451128e+02
#>    13  3.962749e+04 2.821586e+04 3.651421e+04 6.393793e+04 4.130438e+04
#>    16  9.095919e+04 6.477054e+04 8.381026e+04 1.467531e+05 9.481712e+04
#>    19  1.738027e+04 1.301998e+04 1.565365e+04 2.713634e+04 1.923815e+04
#>    22  1.400996e+04 1.719556e+04 8.858813e+03 1.244080e+04 2.717050e+04
#>    25  2.881954e+04 3.547988e+04 1.784337e+04 2.463719e+04 5.599973e+04
#>    28  2.238403e+04 2.349529e+04 1.254417e+04 1.582180e+04 3.552776e+04
#>    31  2.365271e+04 1.369710e+04 9.632006e+03 7.566103e+03 1.545158e+04
#>    34  3.039221e+04 1.502910e+04 1.134516e+04 6.942607e+03 1.259278e+04
#>    37  2.525902e+04 1.608602e+04 9.948237e+03 6.356690e+03 9.904070e+03
#>    40  1.756574e+04 1.739732e+04 8.134531e+03 5.735804e+03 6.850599e+03
#>    43  1.370084e+04 1.755258e+04 7.873618e+03 5.429509e+03 5.475442e+03
#>    46  1.131319e+04 1.500204e+04 8.105048e+03 4.898928e+03 4.838514e+03
#>    49  9.056534e+03 1.176096e+04 8.032604e+03 4.433228e+03 4.322748e+03
#>    52  6.856784e+03 9.205389e+03 7.375183e+03 4.223558e+03 3.821507e+03
#>    55  4.891477e+03 7.189458e+03 6.313489e+03 4.063236e+03 3.367929e+03
#>    58  3.428652e+03 5.433651e+03 5.196774e+03 3.754237e+03 3.015652e+03
#>    61  2.545501e+03 3.949725e+03 4.183557e+03 3.275010e+03 2.727336e+03
#>    64  2.114330e+03 2.845496e+03 3.289457e+03 2.710484e+03 2.422433e+03
#>    67  1.953104e+03 2.148609e+03 2.537284e+03 2.154036e+03 2.067298e+03
#>    70  1.902570e+03 1.778186e+03 1.969887e+03 1.669520e+03 1.686423e+03
#>    73  1.844878e+03 1.601459e+03 1.598332e+03 1.291677e+03 1.326024e+03
#>    76  1.715033e+03 1.494568e+03 1.382047e+03 1.028675e+03 1.023452e+03
#>    79  1.502416e+03 1.375657e+03 1.251014e+03 8.633616e+02 7.952966e+02
#>    82  1.234505e+03 1.211741e+03 1.139860e+03 7.615297e+02 6.376104e+02
#>    85  9.525488e+02 1.007948e+03 1.009868e+03 6.862896e+02 5.325047e+02
#>    88  6.924281e+02 7.888975e+02 8.524603e+02 6.108038e+02 4.575367e+02
#>    91  4.759131e+02 5.815469e+02 6.796848e+02 5.236580e+02 3.940988e+02
#>    94  3.103538e+02 4.049293e+02 5.108989e+02 4.266561e+02 3.318206e+02
#>    97  1.926579e+02 2.672494e+02 3.625593e+02 3.285933e+02 2.684331e+02
#>    100 1.142047e+02 1.677799e+02 2.436077e+02 2.390425e+02 2.067492e+02
#>    103 6.484637e+01 1.005393e+02 1.555038e+02 1.645268e+02 1.510859e+02
#>    106 3.537584e+01 5.769168e+01 9.462997e+01 1.074291e+02 1.047412e+02
#>    109 1.859655e+01 3.179812e+01 5.508110e+01 6.675639e+01 6.899732e+01
#>    112 9.447241e+00 1.688313e+01 3.076309e+01 3.960506e+01 4.329602e+01
#>    115 4.650592e+00 8.658557e+00 1.653444e+01 2.250444e+01 2.595367e+01
#>    118 2.224107e+00 4.300139e+00 8.575764e+00 1.228451e+01 1.490588e+01
#>    121 1.035815e+00 2.072975e+00 4.303165e+00 6.460385e+00 8.225748e+00
#>    124 4.708031e-01 9.721584e-01 2.093945e+00 3.281953e+00 4.373734e+00
#>    127 2.092641e-01 4.444241e-01 9.902876e-01 1.614601e+00 2.246587e+00
#>    130 9.112415e-02 1.984236e-01 4.561039e-01 7.710243e-01 1.117513e+00
#>    133 3.893707e-02 8.667168e-02 2.049725e-01 3.581637e-01 5.395534e-01
#>    136 1.635003e-02 3.709730e-02 9.003657e-02 1.621733e-01 2.533927e-01
#>    139 6.755663e-03 1.558208e-02 3.872038e-02 7.170870e-02 1.159822e-01
#>    142 2.749922e-03 6.431507e-03 1.632717e-02 3.101777e-02 5.183510e-02
#>    145 1.103907e-03 2.611824e-03 6.759860e-03 1.314595e-02 2.265857e-02
#>    148 4.374353e-04 1.044759e-03 2.751565e-03 5.467145e-03 9.702946e-03
#>    151 1.712518e-04 4.120872e-04 1.102443e-03 2.234157e-03 4.076372e-03
#>    154 6.628754e-05 1.604306e-04 4.352589e-04 8.982643e-04 1.682417e-03
#>    157 2.538695e-05 6.170263e-05 1.695122e-04 3.557490e-04 6.830165e-04
#>    160 9.626136e-06 2.346410e-05 6.518241e-05 1.389334e-04 2.730705e-04
#>    163 3.615896e-06 8.829308e-06 2.476978e-05 5.355898e-05 1.076309e-04
#>    166 1.346305e-06 3.289940e-06 9.309689e-06 2.039991e-05 4.186547e-05
#>    169 4.971187e-07 1.214736e-06 3.463415e-06 7.683736e-06 1.608572e-05
#>    172 1.821286e-07 4.447168e-07 1.276270e-06 2.864285e-06 6.110405e-06
#>    175 6.623618e-08 1.615282e-07 4.661673e-07 1.057514e-06 2.296667e-06
#>    178 2.392254e-08 5.823977e-08 1.688789e-07 3.869777e-07 8.547800e-07
#>    181 8.583985e-09 2.085547e-08 6.071565e-08 1.404426e-07 3.152437e-07
#>    184 3.061076e-09 7.420633e-09 2.167435e-08 5.058092e-08 1.152818e-07
#>    187 1.085575e-09 2.625095e-09 7.687169e-09 1.808847e-08 4.182798e-08
#>    190 3.829093e-10 9.236175e-10 2.709926e-09 6.426570e-09 1.506661e-08
#>    193 1.342508e-10 3.231168e-10 9.497598e-10 2.269269e-09 5.390612e-09
#>    196 4.701516e-11 1.127675e-10 3.314543e-10 7.970583e-10 1.916777e-09
#>    199 1.629991e-11 3.904017e-11 1.149437e-10 2.783929e-10 6.776357e-10
#>    202 5.655879e-12 1.351034e-11 3.975927e-11 9.682921e-11 2.383029e-10
#>    205 1.926991e-12 4.597846e-12 1.357458e-11 3.339789e-11 8.330025e-11
#>    208 6.647526e-13 1.582410e-12 4.665534e-12 1.152930e-11 2.903006e-11
#>    211 2.375087e-13 5.646973e-13 1.649867e-12 4.040171e-12 1.013410e-11
#>    214 7.699528e-14 1.826648e-13 5.391253e-13 1.352405e-12 3.491632e-12
#>    217 2.850795e-14 6.792214e-14 1.981617e-13 4.919462e-13 1.231027e-12
#>    220 8.586163e-15 2.017968e-14 5.958985e-14 1.520088e-13 4.067339e-13
#>    223 2.614964e-15 5.995000e-15 1.769858e-14 4.612428e-14 1.284962e-13
#>    226 9.463961e-16 2.216745e-15 6.588222e-15 1.678989e-14 4.633062e-14
#>    229 2.182970e-16 4.903127e-16 1.379738e-15 3.819161e-15 1.127674e-14
#>    232 1.402947e-16 2.977058e-16 8.967728e-16 2.490611e-15 6.823393e-15
#>    235 2.864933e-17 6.257259e-17 1.585876e-16 4.392637e-16 1.437811e-15
#>    238 2.957659e-18 9.637389e-18 2.368434e-17 6.428896e-17 2.253898e-16
#>       year
#> length           16           17           18           19           20
#>    1   7.038430e-58 8.072878e-58 4.777795e-58 6.912978e-58 6.461665e-58
#>    4   8.512920e-18 9.764076e-18 5.778701e-18 8.361187e-18 7.815328e-18
#>    7   6.228788e-04 7.144242e-04 4.228198e-04 6.117767e-04 5.718369e-04
#>    10  2.600220e+02 2.982378e+02 1.765069e+02 2.553874e+02 2.387144e+02
#>    13  3.112039e+04 3.569420e+04 2.112500e+04 3.056571e+04 2.857023e+04
#>    16  7.143475e+04 8.192797e+04 4.849530e+04 7.015950e+04 6.558128e+04
#>    19  1.394939e+04 1.528375e+04 1.001064e+04 1.344671e+04 1.283914e+04
#>    22  1.436468e+04 8.454040e+03 1.581606e+04 1.126224e+04 1.355346e+04
#>    25  2.959937e+04 1.700246e+04 3.267199e+04 2.309537e+04 2.783214e+04
#>    28  2.109689e+04 1.188330e+04 2.082223e+04 1.679449e+04 1.855195e+04
#>    31  1.702887e+04 8.942582e+03 9.401214e+03 1.454664e+04 1.114126e+04
#>    34  2.002202e+04 1.070622e+04 8.152471e+03 1.739606e+04 1.182566e+04
#>    37  1.602190e+04 1.023137e+04 7.235056e+03 1.349953e+04 1.062769e+04
#>    40  1.021045e+04 9.319090e+03 6.341021e+03 7.929211e+03 8.864817e+03
#>    43  6.994804e+03 8.432068e+03 6.081093e+03 5.177855e+03 7.474550e+03
#>    46  5.048538e+03 6.629243e+03 5.660336e+03 4.111964e+03 5.557321e+03
#>    49  3.663066e+03 4.661016e+03 4.917224e+03 3.565321e+03 3.747267e+03
#>    52  2.821507e+03 3.228237e+03 3.938469e+03 3.148044e+03 2.655828e+03
#>    55  2.328170e+03 2.320759e+03 2.900605e+03 2.687509e+03 2.115733e+03
#>    58  1.987730e+03 1.759001e+03 2.035982e+03 2.154849e+03 1.789022e+03
#>    61  1.719221e+03 1.403698e+03 1.437771e+03 1.617586e+03 1.494347e+03
#>    64  1.495061e+03 1.156409e+03 1.055242e+03 1.156106e+03 1.190290e+03
#>    67  1.292923e+03 9.607065e+02 8.020306e+02 8.086002e+02 8.981926e+02
#>    70  1.095402e+03 7.936942e+02 6.177892e+02 5.670552e+02 6.479219e+02
#>    73  9.008980e+02 6.486039e+02 4.739424e+02 4.031867e+02 4.537954e+02
#>    76  7.211745e+02 5.237275e+02 3.600716e+02 2.905808e+02 3.133711e+02
#>    79  5.699708e+02 4.188199e+02 2.717208e+02 2.115980e+02 2.158106e+02
#>    82  4.541900e+02 3.338975e+02 2.048621e+02 1.555123e+02 1.492847e+02
#>    85  3.716968e+02 2.680602e+02 1.550734e+02 1.153996e+02 1.041876e+02
#>    88  3.138992e+02 2.186823e+02 1.182119e+02 8.641034e+01 7.353716e+01
#>    91  2.701779e+02 1.816191e+02 9.086632e+01 6.511517e+01 5.247049e+01
#>    94  2.318336e+02 1.523046e+02 7.037410e+01 4.917858e+01 3.770759e+01
#>    97  1.941544e+02 1.270312e+02 5.470201e+01 3.705689e+01 2.712330e+01
#>    100 1.563468e+02 1.037072e+02 4.236992e+01 2.772737e+01 1.939030e+01
#>    103 1.200647e+02 8.183290e+01 3.240198e+01 2.049776e+01 1.368778e+01
#>    106 8.763160e+01 6.191339e+01 2.423932e+01 1.489166e+01 9.490565e+00
#>    109 6.076846e+01 4.473208e+01 1.760197e+01 1.057621e+01 6.437222e+00
#>    112 4.009262e+01 3.082416e+01 1.234063e+01 7.308743e+00 4.258217e+00
#>    115 2.522314e+01 2.026895e+01 8.326452e+00 4.896642e+00 2.740956e+00
#>    118 1.517176e+01 1.273852e+01 5.399157e+00 3.172700e+00 1.714082e+00
#>    121 8.749533e+00 7.667839e+00 3.364369e+00 1.985439e+00 1.040352e+00
#>    124 4.851178e+00 4.431223e+00 2.016251e+00 1.199538e+00 6.125474e-01
#>    127 2.592880e+00 2.464535e+00 1.163699e+00 6.999232e-01 3.498641e-01
#>    130 1.339341e+00 1.322395e+00 6.479223e-01 3.947659e-01 1.939175e-01
#>    133 6.702056e-01 6.861535e-01 3.486525e-01 2.154797e-01 1.043718e-01
#>    136 3.256124e-01 3.450529e-01 1.816679e-01 1.139903e-01 5.459961e-02
#>    139 1.539115e-01 1.685277e-01 9.183423e-02 5.853189e-02 2.779071e-02
#>    142 7.091803e-02 8.010116e-02 4.512090e-02 2.921930e-02 1.377921e-02
#>    145 3.191070e-02 3.711878e-02 2.158605e-02 1.420332e-02 6.663497e-03
#>    148 1.404537e-02 1.679918e-02 1.007233e-02 6.733342e-03 3.146904e-03
#>    151 6.056445e-03 7.437440e-03 4.591440e-03 3.117802e-03 1.453180e-03
#>    154 2.562204e-03 3.225919e-03 2.047818e-03 1.412125e-03 6.569810e-04
#>    157 1.064878e-03 1.372737e-03 8.949105e-04 6.264777e-04 2.911478e-04
#>    160 4.353250e-04 5.738423e-04 3.837055e-04 2.725935e-04 1.266231e-04
#>    163 1.752491e-04 2.359382e-04 1.616199e-04 1.164775e-04 5.410565e-05
#>    166 6.954907e-05 9.552084e-05 6.695516e-05 4.893208e-05 2.273903e-05
#>    169 2.723667e-05 3.811994e-05 2.731161e-05 2.023252e-05 9.409098e-06
#>    172 1.053532e-05 1.501033e-05 1.098084e-05 8.242546e-06 3.837032e-06
#>    175 4.028550e-06 5.837325e-06 4.355838e-06 3.311709e-06 1.543534e-06
#>    178 1.524084e-06 2.243871e-06 1.706285e-06 1.313472e-06 6.130436e-07
#>    181 5.708949e-07 8.532829e-07 6.606123e-07 5.146853e-07 2.405914e-07
#>    184 2.118837e-07 3.212386e-07 2.529907e-07 1.994191e-07 9.337314e-08
#>    187 7.796873e-08 1.198145e-07 9.590736e-08 7.645862e-08 3.586226e-08
#>    190 2.846385e-08 4.430228e-08 3.601597e-08 2.902897e-08 1.364046e-08
#>    193 1.031493e-08 1.624977e-08 1.340665e-08 1.092129e-08 5.141388e-09
#>    196 3.712622e-09 5.916005e-09 4.949959e-09 4.074085e-09 1.921605e-09
#>    199 1.327863e-09 2.138975e-09 1.813786e-09 1.507837e-09 7.125679e-10
#>    202 4.721666e-10 7.684258e-10 6.599619e-10 5.539799e-10 2.623100e-10
#>    205 1.669306e-10 2.744025e-10 2.385626e-10 2.021425e-10 9.589968e-11
#>    208 5.875666e-11 9.746965e-11 8.571845e-11 7.329902e-11 3.484302e-11
#>    211 2.062589e-11 3.445058e-11 3.063279e-11 2.642716e-11 1.258946e-11
#>    214 7.201880e-12 1.213069e-11 1.089343e-11 9.476251e-12 4.521987e-12
#>    217 2.508083e-12 4.245576e-12 3.849021e-12 3.378748e-12 1.616405e-12
#>    220 8.635473e-13 1.484771e-12 1.361299e-12 1.201427e-12 5.755872e-13
#>    223 2.862046e-13 5.109134e-13 4.777018e-13 4.262474e-13 2.038977e-13
#>    226 1.024292e-13 1.786561e-13 1.641096e-13 1.492471e-13 7.133926e-14
#>    229 2.663140e-14 5.128600e-14 5.250333e-14 4.961883e-14 2.446411e-14
#>    232 1.496506e-14 2.785493e-14 2.504703e-14 1.975870e-14 9.613279e-15
#>    235 3.495815e-15 6.725406e-15 7.840164e-15 7.037702e-15 3.054663e-15
#>    238 6.678160e-16 1.425751e-15 1.682282e-15 2.254960e-15 1.248786e-15
#> 
#> $sim_length
#> function (age = NULL, length_age_key = FALSE) 
#> {
#>     pred_length <- Linf - (Linf - L0) * exp(-K * age)
#>     if (length_age_key) {
#>         breaks <- seq(0, ceiling(max(pred_length)) * 10, length_group)
#>         lak <- matrix(NA, ncol = length(pred_length), nrow = length(breaks) - 
#>             1, dimnames = list(length = group_lengths(breaks, 
#>             length_group)[-length(breaks)], age = age))
#>         for (i in seq_along(breaks)[-1]) {
#>             for (j in seq_along(pred_length)) {
#>                 lak[i - 1, j] <- stats::pnorm(log(breaks[i]), 
#>                   log(pred_length[j]), sd = log_sd) - stats::pnorm(log(breaks[i - 
#>                   1]), log(pred_length[j]), sd = log_sd)
#>             }
#>         }
#>         lak <- lak[rowSums(lak) > 0, ]
#>         if (plot) 
#>             graphics::image(x = as.numeric(colnames(lak)), y = as.numeric(rownames(lak)), 
#>                 z = t(lak), xlab = "Age", ylab = "Length", main = "P(Length | Age)", 
#>                 col = viridis::viridis(100))
#>         return(lak)
#>     }
#>     else {
#>         log_length <- stats::rnorm(length(age), log(pred_length), 
#>             sd = log_sd)
#>         length <- round(exp(log_length), digits)
#>         if (plot) 
#>             plot(age, length)
#>         return(length)
#>     }
#> }
#> <bytecode: 0x55d5ac817108>
#> <environment: 0x55d5aaecc5f8>
#> 
sim_abundance(years = 1:20,
              R = sim_R(log_mean = log(c(rep(100000, 10), rep(10000, 10))), plot = TRUE))

#> $ages
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
#> 
#> $lengths
#>  [1]   1   4   7  10  13  16  19  22  25  28  31  34  37  40  43  46  49  52  55
#> [20]  58  61  64  67  70  73  76  79  82  85  88  91  94  97 100 103 106 109 112
#> [39] 115 118 121 124 127 130 133 136 139 142 145 148 151 154 157 160 163 166 169
#> [58] 172 175 178 181 184 187 190 193 196 199 202 205 208 211 214 217 220 223 226
#> [77] 229 232 235 238
#> 
#> $years
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
#> 
#> $R
#>          1          2          3          4          5          6          7 
#> 124639.115 287676.222 300418.658 191723.911 104455.160  39024.572  32200.669 
#>          8          9         10         11         12         13         14 
#>  30831.837  14042.926  44746.043   7118.644  30998.976  75058.156 164036.144 
#>         15         16         17         18         19         20 
#>  84523.755  37172.991  36837.810  60775.489  52398.997  30942.342 
#> 
#> $N0
#>  [1] 1.246391e+05 8.640242e+04 5.222411e+04 2.906227e+04 1.643073e+04
#>  [6] 9.585385e+03 5.258970e+03 3.434320e+03 1.926276e+03 1.266238e+03
#> [11] 8.416135e+02 5.788716e+02 4.191351e+02 3.240319e+02 2.405250e+02
#> [16] 1.629286e+02 9.217118e+01 4.661873e+01 2.327737e+01 9.443353e+00
#> 
#> $Z
#>     year
#> age          1         2         3         4         5         6         7
#>   1  0.3664068 0.3308918 0.2399852 0.4633640 0.3459653 0.3350275 0.6092645
#>   2  0.5034715 0.3737387 0.2800219 0.4538409 0.3286237 0.4489796 0.8476077
#>   3  0.5861034 0.3600981 0.3988325 0.5525517 0.3554269 0.4999998 0.7309234
#>   4  0.5702875 0.3566888 0.4391959 0.6804192 0.5673344 0.8060228 0.9137263
#>   5  0.5389139 0.2687083 0.4856549 0.6843447 0.6147316 0.7783271 0.9653518
#>   6  0.6003043 0.3394181 0.6275394 0.7080756 0.8188388 0.9498667 0.8922027
#>   7  0.4261163 0.2395055 0.5284919 0.6718674 0.9158176 0.6593823 0.6486014
#>   8  0.5782303 0.3145330 0.7107527 0.8840463 1.3608354 0.9170965 0.5033296
#>   9  0.4195382 0.2246830 0.7691507 0.8155574 0.9101894 0.6986219 0.3866246
#>   10 0.4084848 0.2193918 0.7843400 0.7843584 0.7920816 0.3179757 0.2382180
#>   11 0.3742402 0.2954103 0.8599480 0.8313053 0.7287111 0.3630004 0.3257083
#>   12 0.3228874 0.1729641 0.6563115 0.6630183 0.6071966 0.4901763 0.5189743
#>   13 0.2573513 0.2344807 0.6154838 0.6955356 1.0026564 0.6605368 0.7068781
#>   14 0.2980180 0.3164511 0.9350752 0.7574296 1.0317305 0.8845703 0.6561749
#>   15 0.3895119 0.3274971 1.1779413 0.6396639 0.8202019 0.7984797 0.6598390
#>   16 0.5696646 0.4188090 1.4664393 0.7149026 0.8031693 0.7262737 0.5769675
#>   17 0.6816451 0.5090740 1.4856040 0.5101676 0.7742707 0.7399035 0.4722356
#>   18 0.6945207 0.6342885 1.4957157 0.6043327 0.7242240 0.7491038 0.4359311
#>   19 0.9021705 0.6261680 1.1821270 0.4917772 0.5628559 0.9390803 0.6558515
#>   20 0.8417709 0.6417861 0.9115193 0.5465466 0.4203939 0.7313360 0.6001382
#>     year
#> age          8         9        10        11        12        13        14
#>   1  0.7058399 0.6979602 0.6164377 0.4543653 0.4664921 0.4434456 0.7078195
#>   2  1.0471660 1.2323907 0.8226561 0.5550551 0.5475558 0.3792458 0.7685793
#>   3  0.6598344 0.9319177 1.0552807 0.5375069 0.5892393 0.4676017 1.1117947
#>   4  0.8098948 0.9890291 0.9431456 0.7995149 0.6363420 0.4417207 0.7121209
#>   5  0.7017482 0.7458152 0.7334075 0.6127460 0.6861483 0.4951231 0.7752311
#>   6  0.5585191 0.8042149 0.8590919 0.8186717 0.9222140 0.4746721 0.6986147
#>   7  0.4642634 0.7411624 0.7443737 0.7565252 0.7639888 0.5810166 0.6787885
#>   8  0.3665380 0.7247980 1.1574550 1.0285719 0.7242286 0.6794864 0.6709409
#>   9  0.2689730 0.4453038 0.6632496 0.7958090 0.8094824 0.7940276 0.7995645
#>   10 0.2267901 0.3817290 0.6696065 0.7764910 0.7720056 0.7161723 0.5229900
#>   11 0.3710889 0.3235999 0.5169084 0.6301283 0.6304280 0.6754839 0.5078002
#>   12 0.3990075 0.3398763 0.4612794 0.4344313 0.4590061 0.5601974 0.5498842
#>   13 0.4007818 0.3515991 0.4724091 0.3269128 0.5299978 0.7630783 0.5658084
#>   14 0.4349690 0.4644023 0.6666353 0.4026849 0.4352387 0.6314150 0.7820437
#>   15 0.6422780 0.5201544 0.8504729 0.5851692 0.6722898 0.7603324 0.8668132
#>   16 0.5087437 0.6822695 0.8174994 0.7009672 0.9681762 1.1959499 1.3433810
#>   17 0.4945016 0.6046330 0.6003313 0.5050031 0.8036498 0.6039651 1.0492955
#>   18 0.5231671 0.7482262 0.6458435 0.4073804 0.8214519 0.6940461 0.9919873
#>   19 0.9211997 0.9930169 0.8662930 0.5143304 0.6575922 0.6011948 0.8200839
#>   20 0.9347314 0.8927916 1.2434932 0.6279305 0.8444776 0.7129155 0.6061310
#>     year
#> age         15        16        17        18        19        20
#>   1  0.2392773 0.3854013 0.7500095 0.7877181 0.4866980 0.4811511
#>   2  0.2690460 0.3636259 0.6716149 0.5622168 0.4020689 0.2782048
#>   3  0.2879935 0.3635826 0.6191453 0.5917670 0.5684573 0.4402922
#>   4  0.2659290 0.4663741 0.5920934 0.7393141 0.5164688 0.3196332
#>   5  0.2590385 0.5549891 0.8005377 0.7242419 0.3322269 0.4725862
#>   6  0.2200187 0.7235702 0.8552268 0.9195396 0.5055049 0.5690751
#>   7  0.2563862 0.8486764 0.8196156 0.7580138 0.5151990 0.5620427
#>   8  0.2241089 0.6254162 0.7211342 0.5588731 0.6281440 0.5843211
#>   9  0.2532503 0.6955977 0.7036831 0.6215217 0.6892840 0.5575635
#>   10 0.3118571 0.9776962 0.8056134 0.7041021 0.7560851 0.7557053
#>   11 0.3126760 0.9270545 0.8463685 0.6531376 0.9326376 0.8092676
#>   12 0.3782880 0.6946464 0.6708073 0.5496348 0.6590564 0.7880465
#>   13 0.3759315 0.8989101 0.6597163 0.3942707 0.5702021 1.0800830
#>   14 0.4368790 0.8650955 1.0063249 0.4763306 0.5481139 1.0751160
#>   15 0.6474548 1.0902821 0.7507485 0.3772254 0.5021328 1.0333877
#>   16 0.7296217 0.8918430 0.7439323 0.4370703 0.4295610 0.7106430
#>   17 1.0484745 1.0383687 0.7103058 0.4296873 0.3965337 0.4518542
#>   18 1.1457753 1.0144244 0.6044016 0.4453447 0.3379072 0.4895673
#>   19 0.9336231 0.8943754 0.5942878 0.4624779 0.4172816 0.3913583
#>   20 1.1571731 1.2168381 0.6144723 0.4976448 0.5461007 0.6668776
#> 
#> $N
#>     year
#> age             1            2            3            4            5
#>   1  1.246391e+05 2.876762e+05 300418.65770 1.917239e+05 1.044552e+05
#>   2  8.640242e+04 8.640242e+04 206632.91413 2.363212e+05 1.206257e+05
#>   3  5.222411e+04 5.222411e+04  59458.40831 1.561664e+05 1.501074e+05
#>   4  2.906227e+04 2.906227e+04  36431.94976 3.990272e+04 8.987054e+04
#>   5  1.643073e+04 1.643073e+04  20343.30959 2.348238e+04 2.020692e+04
#>   6  9.585385e+03 9.585385e+03  12559.09462 1.251712e+04 1.184500e+04
#>   7  5.258970e+03 5.258970e+03   6826.56344 6.705350e+03 6.165823e+03
#>   8  3.434320e+03 3.434320e+03   4138.89876 4.024213e+03 3.424784e+03
#>   9  1.926276e+03 1.926276e+03   2507.49938 2.033334e+03 1.662435e+03
#>   10 1.266238e+03 1.266238e+03   1538.65045 1.161991e+03 8.995323e+02
#>   11 8.416135e+02 8.416135e+02   1016.79819 7.022722e+02 5.303474e+02
#>   12 5.788716e+02 5.788716e+02    626.35083 4.302928e+02 3.058258e+02
#>   13 4.191351e+02 4.191351e+02    486.92817 3.249265e+02 2.217272e+02
#>   14 3.240319e+02 3.240319e+02    331.52812 2.631259e+02 1.620757e+02
#>   15 2.405250e+02 2.405250e+02    236.13199 1.301435e+02 1.233719e+02
#>   16 1.629286e+02 1.629286e+02    173.35248 7.270787e+01 6.864673e+01
#>   17 9.217118e+01 9.217118e+01    107.17929 4.000033e+01 3.557158e+01
#>   18 4.661873e+01 4.661873e+01     55.39966 2.426170e+01 2.401599e+01
#>   19 2.327737e+01 2.327737e+01     24.72250 1.241441e+01 1.325754e+01
#>   20 9.443353e+00 9.443353e+00     12.44493 7.580559e+00 7.591889e+00
#>     year
#> age             6            7            8            9           10
#>   1   39024.57216 32200.668685 30831.837437 14042.926430 44746.043336
#>   2   73905.89302 27914.994274 17509.134298 15221.485864  6987.750028
#>   3   86840.11830 47172.585996 11959.862583  6144.495637  4438.503728
#>   4  105206.39048 52671.203779 22711.912349  6182.494819  2419.688811
#>   5   50959.73379 46988.422619 21122.579086 10104.639981  2299.502467
#>   6   10927.62265 23399.360979 17895.502021 10470.841414  4793.110409
#>   7    5222.97289  4226.723272  9587.939635 10237.221573  4685.063475
#>   8    2467.49640  2701.168561  2209.631198  6026.959066  4878.646508
#>   9     878.27358   986.203603  1632.895654  1531.561285  2919.593920
#>   10    669.04345   436.739198   669.973522  1247.799857   981.163512
#>   11    407.39911   486.809717   344.163972   534.027898   851.848058
#>   12    255.90879   283.381174   351.484300   237.467155   386.390379
#>   13    166.63723   156.748847   168.648831   235.840937   169.042984
#>   14     81.35247    86.080458    77.305626   112.960349   165.928749
#>   15     57.76211    33.589745    44.661309    50.038753    70.996781
#>   16     54.32591    25.993676    17.363699    23.495986    29.744474
#>   17     30.74737    26.277882    14.598019    10.439932    11.876482
#>   18     16.39992    14.671411    16.387059     8.902963     5.703073
#>   19     11.64057     7.753719     9.487448     9.711637     4.212928
#>   20      7.55123     4.551313     4.024180     3.776396     3.597747
#>     year
#> age            11           12           13           14           15
#>   1   7118.644215 30998.976379 75058.155823 1.640361e+05 84523.755338
#>   2  24156.786227  4519.276614 19442.513210 4.817391e+04 80823.458741
#>   3   3069.462807 13866.976422  2613.776454 1.330602e+04 22336.861922
#>   4   1545.019699  1793.189176  7692.692802 1.637539e+03  4377.253966
#>   5    942.229213   694.558929   949.000206 4.945856e+03   803.380756
#>   6   1104.381261   510.557146   349.718573 5.784117e+02  2278.048312
#>   7   2030.105207   487.050994   203.016768 2.175561e+02   287.628917
#>   8   2225.553760   952.716786   226.870647 1.135533e+02   110.351207
#>   9   1533.285502   795.673667   461.780219 1.149956e+02    58.051528
#>   10  1504.100293   691.843010   354.145101 2.087342e+02    51.693347
#>   11   502.267403   691.912287   319.690530 1.730420e+02   123.726257
#>   12   508.009285   267.469194   368.349112 1.626937e+02   104.139804
#>   13   243.610056   329.003515   169.016826 2.103628e+02    93.877001
#>   14   105.398025   175.678565   193.653528 7.880055e+01   119.465229
#>   15    85.193331    70.460975   113.683390 1.029924e+02    36.048898
#>   16    30.330737    47.453674    35.973020 5.314824e+01    43.286570
#>   17    13.133207    15.047237    18.021721 1.087884e+01    13.869662
#>   18     6.515792     7.925939     6.736528 9.851391e+00     3.809598
#>   19     2.989666     4.335549     3.485770 3.365237e+00     3.653280
#>   20     1.771568     1.787524     2.246237 1.910747e+00     1.482033
#>     year
#> age            16           17           18           19           20
#>   1  37172.990709 3.683781e+04 6.077549e+04 52398.996630 30942.342010
#>   2  66536.809231 2.528424e+04 1.740078e+04 27645.651419 32207.180199
#>   3  61757.858825 4.625314e+04 1.291728e+04  9917.476090 18493.134143
#>   4  16747.429240 4.293291e+04 2.490290e+04  7147.762188  5617.243888
#>   5   3355.136839 1.050520e+04 2.374911e+04 11889.670493  4264.523825
#>   6    620.043865 1.926112e+03 4.717754e+03 11511.002485  8528.752154
#>   7   1828.142441 3.007322e+02 8.189573e+02  1880.980691  6943.447749
#>   8    222.579635 7.824103e+02 1.325029e+02   383.760306  1123.663438
#>   9     88.195785 1.190887e+02 3.804083e+02    75.772194   204.767287
#>   10    45.063867 4.398996e+01 5.892030e+01   204.327364    38.032742
#>   11    37.843983 1.695198e+01 1.965532e+01    29.139176    95.931873
#>   12    90.504137 1.497553e+01 7.271889e+00    10.228832    11.466685
#>   13    71.339220 4.518427e+01 7.656923e+00     4.197047     5.291777
#>   14    64.460584 2.903599e+01 2.336018e+01     5.162079     2.373057
#>   15    77.180462 2.713864e+01 1.061440e+01    14.508028     2.983883
#>   16    18.867135 2.594202e+01 1.280979e+01     7.278944     8.780816
#>   17    20.868080 7.733631e+00 1.232873e+01     8.274178     4.737098
#>   18     4.860928 7.387963e+00 3.801033e+00     8.022456     5.565606
#>   19     1.211366 1.762626e+00 4.036792e+00     2.434954     5.722109
#>   20     1.436202 4.952825e-01 9.728914e-01     2.542054     1.604234
#> 
#> $N_at_length
#>       year
#> length            1            2            3            4            5
#>    1   7.572844e-58 1.747868e-57 1.825289e-57 1.164879e-57 6.346504e-58
#>    4   9.159289e-18 2.114031e-17 2.207671e-17 1.408911e-17 7.676041e-18
#>    7   6.701728e-04 1.546808e-03 1.615323e-03 1.030881e-03 5.616456e-04
#>    10  2.797649e+02 6.457180e+02 6.743196e+02 4.303434e+02 2.344600e+02
#>    13  3.348330e+04 7.728192e+04 8.070508e+04 5.150510e+04 2.806105e+04
#>    16  7.686084e+04 1.773837e+05 1.852581e+05 1.182452e+05 6.442122e+04
#>    19  1.528478e+04 3.315543e+04 3.681051e+04 2.545405e+04 1.371525e+04
#>    22  1.854895e+04 1.902448e+04 4.436040e+04 5.029987e+04 2.570093e+04
#>    25  3.826430e+04 3.826781e+04 9.115312e+04 1.047269e+05 5.383978e+04
#>    28  2.602978e+04 2.602979e+04 5.811583e+04 7.202885e+04 4.121973e+04
#>    31  1.730213e+04 1.730213e+04 2.629328e+04 5.020368e+04 4.199398e+04
#>    34  1.911156e+04 1.911156e+04 2.261474e+04 5.533503e+04 5.427395e+04
#>    37  1.645322e+04 1.645322e+04 1.922348e+04 4.294545e+04 4.791695e+04
#>    40  1.274055e+04 1.274055e+04 1.538023e+04 2.575611e+04 3.732135e+04
#>    43  1.078734e+04 1.078734e+04 1.335206e+04 1.701065e+04 2.990695e+04
#>    46  9.093940e+03 9.093940e+03 1.134515e+04 1.301151e+04 2.164269e+04
#>    49  7.461341e+03 7.461341e+03 9.343560e+03 1.044310e+04 1.405329e+04
#>    52  6.126313e+03 6.126313e+03 7.725870e+03 8.471068e+03 9.225265e+03
#>    55  5.017531e+03 5.017531e+03 6.387840e+03 6.806123e+03 6.589286e+03
#>    58  4.074824e+03 4.074824e+03 5.224935e+03 5.393484e+03 5.011560e+03
#>    61  3.289489e+03 3.289489e+03 4.223352e+03 4.238509e+03 3.884859e+03
#>    64  2.647696e+03 2.647696e+03 3.384024e+03 3.311764e+03 2.996957e+03
#>    67  2.127068e+03 2.127068e+03 2.697667e+03 2.569597e+03 2.283485e+03
#>    70  1.705221e+03 1.705221e+03 2.144419e+03 1.975932e+03 1.716900e+03
#>    73  1.364108e+03 1.364108e+03 1.700767e+03 1.505153e+03 1.275887e+03
#>    76  1.089985e+03 1.089985e+03 1.345671e+03 1.137929e+03 9.401971e+02
#>    79  8.711986e+02 8.711986e+02 1.062096e+03 8.567997e+02 6.900884e+02
#>    82  6.967803e+02 6.967803e+02 8.360553e+02 6.444685e+02 5.067287e+02
#>    85  5.566004e+02 5.566004e+02 6.556811e+02 4.846067e+02 3.732394e+02
#>    88  4.421816e+02 4.421816e+02 5.110198e+02 3.633691e+02 2.756847e+02
#>    91  3.472667e+02 3.472667e+02 3.941814e+02 2.702772e+02 2.034855e+02
#>    94  2.678302e+02 2.678302e+02 2.993848e+02 1.981300e+02 1.492094e+02
#>    97  2.016030e+02 2.016030e+02 2.226794e+02 1.422451e+02 1.079494e+02
#>    100 1.473530e+02 1.473530e+02 1.613965e+02 9.950666e+01 7.655560e+01
#>    103 1.041906e+02 1.041906e+02 1.135366e+02 6.758464e+01 5.293711e+01
#>    106 7.110191e+01 7.110191e+01 7.729799e+01 4.447473e+01 3.555627e+01
#>    109 4.677386e+01 4.677386e+01 5.084342e+01 2.832996e+01 2.314264e+01
#>    112 2.965392e+01 2.965392e+01 3.228431e+01 1.746667e+01 1.457903e+01
#>    115 1.812604e+01 1.812604e+01 1.978882e+01 1.042824e+01 8.886407e+00
#>    118 1.069198e+01 1.069198e+01 1.171506e+01 6.033958e+00 5.242497e+00
#>    121 6.093638e+00 6.093638e+00 6.704416e+00 3.387044e+00 2.995565e+00
#>    124 3.360260e+00 3.360260e+00 3.713486e+00 1.846494e+00 1.659505e+00
#>    127 1.795592e+00 1.795592e+00 1.993389e+00 9.787781e-01 8.923574e-01
#>    130 9.312418e-01 9.312418e-01 1.038530e+00 5.050534e-01 4.663377e-01
#>    133 4.694839e-01 4.694839e-01 5.259059e-01 2.539885e-01 2.371504e-01
#>    136 2.304388e-01 2.304388e-01 2.592438e-01 1.246285e-01 1.175099e-01
#>    139 1.102866e-01 1.102866e-01 1.245834e-01 5.973699e-02 5.680865e-02
#>    142 5.154107e-02 5.154107e-02 5.845039e-02 2.800143e-02 2.682847e-02
#>    145 2.355343e-02 2.355343e-02 2.680981e-02 1.285010e-02 1.239246e-02
#>    148 1.053910e-02 1.053910e-02 1.203811e-02 5.779506e-03 5.605592e-03
#>    151 4.623290e-03 4.623290e-03 5.298273e-03 2.550283e-03 2.485947e-03
#>    154 1.990765e-03 1.990765e-03 2.288490e-03 1.105204e-03 1.082065e-03
#>    157 8.423735e-04 8.423735e-04 9.711866e-04 4.708497e-04 4.627768e-04
#>    160 3.506499e-04 3.506499e-04 4.053866e-04 1.973882e-04 1.946665e-04
#>    163 1.437374e-04 1.437374e-04 1.666088e-04 8.150008e-05 8.061901e-05
#>    166 5.807798e-05 5.807798e-05 6.748577e-05 3.317227e-05 3.290150e-05
#>    169 2.315228e-05 2.315228e-05 2.696576e-05 1.332107e-05 1.324377e-05
#>    172 9.113590e-06 9.113590e-06 1.063843e-05 5.282024e-06 5.262498e-06
#>    175 3.545283e-06 3.545283e-06 4.147281e-06 2.069633e-06 2.065881e-06
#>    178 1.363988e-06 1.363988e-06 1.598847e-06 8.019307e-07 8.018305e-07
#>    181 5.193756e-07 5.193756e-07 6.099932e-07 3.074922e-07 3.079194e-07
#>    184 1.958663e-07 1.958663e-07 2.304714e-07 1.167544e-07 1.170755e-07
#>    187 7.320249e-08 7.320249e-08 8.629120e-08 4.392682e-08 4.410134e-08
#>    190 2.712957e-08 2.712957e-08 3.203606e-08 1.638562e-08 1.646876e-08
#>    193 9.975986e-09 9.975986e-09 1.180002e-08 6.063380e-09 6.100173e-09
#>    196 3.641797e-09 3.641797e-09 4.314690e-09 2.227100e-09 2.242582e-09
#>    199 1.320432e-09 1.320432e-09 1.566881e-09 8.123056e-10 8.186181e-10
#>    202 4.757733e-10 4.757733e-10 5.654393e-10 2.943870e-10 2.968812e-10
#>    205 1.703715e-10 1.703715e-10 2.027893e-10 1.060025e-10 1.069849e-10
#>    208 6.070684e-11 6.070684e-11 7.236244e-11 3.797699e-11 3.834922e-11
#>    211 2.155322e-11 2.155322e-11 2.572152e-11 1.355826e-11 1.368996e-11
#>    214 7.602095e-12 7.602095e-12 9.086730e-12 4.802261e-12 4.854824e-12
#>    217 2.678620e-12 2.678620e-12 3.202952e-12 1.700556e-12 1.719484e-12
#>    220 9.339873e-13 9.339873e-13 1.119965e-12 5.960593e-13 6.031776e-13
#>    223 3.207654e-13 3.207654e-13 3.857457e-13 2.067862e-13 2.095390e-13
#>    226 1.122648e-13 1.122648e-13 1.350975e-13 7.221490e-14 7.301224e-14
#>    229 3.333614e-14 3.333614e-14 4.061790e-14 2.251408e-14 2.288261e-14
#>    232 1.663487e-14 1.663487e-14 1.993009e-14 1.049981e-14 1.066729e-14
#>    235 4.681153e-15 4.681153e-15 5.508080e-15 3.061498e-15 3.157621e-15
#>    238 1.048423e-15 1.048423e-15 1.381665e-15 8.416111e-16 8.428690e-16
#>       year
#> length            6            7            8            9           10
#>    1   2.371061e-58 1.956454e-58 1.873286e-58 8.532225e-59 2.718688e-58
#>    4   2.867778e-18 2.366314e-18 2.265723e-18 1.031965e-18 3.288229e-18
#>    7   2.098315e-04 1.731400e-04 1.657799e-04 7.550749e-05 2.405953e-04
#>    10  8.759454e+01 7.227761e+01 6.920513e+01 3.152075e+01 1.004370e+02
#>    13  1.048364e+04 8.650453e+03 8.282727e+03 3.772520e+03 1.202067e+04
#>    16  2.407213e+04 1.985792e+04 1.901241e+04 8.660625e+03 2.758984e+04
#>    19  5.665762e+03 4.053902e+03 3.708395e+03 1.825175e+03 5.035913e+03
#>    22  1.567329e+04 5.972329e+03 3.775274e+03 3.244371e+03 1.601269e+03
#>    25  3.295857e+04 1.252751e+04 7.761774e+03 6.724187e+03 3.096522e+03
#>    28  2.493971e+04 1.032911e+04 5.364586e+03 4.393009e+03 2.118720e+03
#>    31  2.476563e+04 1.269122e+04 3.890585e+03 2.354549e+03 1.448692e+03
#>    34  3.331509e+04 1.786432e+04 4.933345e+03 2.383650e+03 1.620474e+03
#>    37  3.484534e+04 1.844274e+04 5.945876e+03 2.340541e+03 1.396671e+03
#>    40  3.586319e+04 1.899740e+04 7.410393e+03 2.439809e+03 1.102909e+03
#>    43  3.544933e+04 2.010511e+04 8.612391e+03 2.895239e+03 1.027111e+03
#>    46  2.997936e+04 1.971049e+04 8.922498e+03 3.483899e+03 1.087463e+03
#>    49  2.252429e+04 1.802213e+04 8.807223e+03 4.062949e+03 1.280049e+03
#>    52  1.581273e+04 1.534889e+04 8.437983e+03 4.499431e+03 1.587785e+03
#>    55  1.046917e+04 1.198260e+04 7.695103e+03 4.726961e+03 1.918776e+03
#>    58  6.659392e+03 8.592373e+03 6.584234e+03 4.720824e+03 2.178394e+03
#>    61  4.243144e+03 5.750213e+03 5.256109e+03 4.449119e+03 2.314985e+03
#>    64  2.794327e+03 3.678667e+03 3.924515e+03 3.920843e+03 2.310964e+03
#>    67  1.904195e+03 2.320674e+03 2.773723e+03 3.221657e+03 2.167959e+03
#>    70  1.324576e+03 1.487389e+03 1.892740e+03 2.480976e+03 1.909858e+03
#>    73  9.324882e+02 9.854059e+02 1.275807e+03 1.812091e+03 1.583723e+03
#>    76  6.645290e+02 6.768143e+02 8.658481e+02 1.275447e+03 1.244770e+03
#>    79  4.807628e+02 4.797263e+02 5.975471e+02 8.792223e+02 9.367247e+02
#>    82  3.528739e+02 3.481603e+02 4.193703e+02 6.011052e+02 6.821548e+02
#>    85  2.613445e+02 2.559421e+02 2.973893e+02 4.102714e+02 4.849546e+02
#>    88  1.937917e+02 1.882122e+02 2.112023e+02 2.797448e+02 3.383592e+02
#>    91  1.428360e+02 1.369009e+02 1.489276e+02 1.899479e+02 2.321090e+02
#>    94  1.040710e+02 9.773316e+01 1.035494e+02 1.278222e+02 1.564232e+02
#>    97  7.465776e+01 6.820474e+01 7.066276e+01 8.484028e+01 1.033463e+02
#>    100 5.256377e+01 4.646829e+01 4.720790e+01 5.532332e+01 6.677879e+01
#>    103 3.621711e+01 3.090820e+01 3.084736e+01 3.534216e+01 4.211506e+01
#>    106 2.435482e+01 2.007585e+01 1.971336e+01 2.207943e+01 2.588499e+01
#>    109 1.594614e+01 1.273266e+01 1.232196e+01 1.347703e+01 1.549176e+01
#>    112 1.014571e+01 7.880770e+00 7.532077e+00 8.034585e+00 9.025593e+00
#>    115 6.264336e+00 4.756066e+00 4.500433e+00 4.678270e+00 5.119851e+00
#>    118 3.750635e+00 2.796124e+00 2.626494e+00 2.660744e+00 2.829309e+00
#>    121 2.177136e+00 1.600169e+00 1.495987e+00 1.478323e+00 1.524333e+00
#>    124 1.225559e+00 8.910029e-01 8.310074e-01 8.024727e-01 8.013957e-01
#>    127 6.694605e-01 4.826735e-01 4.499959e-01 4.256323e-01 4.115240e-01
#>    130 3.551801e-01 2.544454e-01 2.375039e-01 2.206216e-01 2.066036e-01
#>    133 1.832208e-01 1.305977e-01 1.221957e-01 1.117817e-01 1.015022e-01
#>    136 9.200747e-02 6.531455e-02 6.131217e-02 5.537918e-02 4.884155e-02
#>    139 4.503405e-02 3.185842e-02 3.002083e-02 2.683919e-02 2.303785e-02
#>    142 2.151231e-02 1.517170e-02 1.435613e-02 1.273154e-02 1.066052e-02
#>    145 1.004198e-02 7.061959e-03 6.711128e-03 5.915143e-03 4.843191e-03
#>    148 4.586551e-03 3.216597e-03 3.069984e-03 2.693652e-03 2.161841e-03
#>    151 2.052211e-03 1.435326e-03 1.375676e-03 1.203248e-03 9.487922e-04
#>    154 9.006207e-04 6.281787e-04 6.045049e-04 5.276792e-04 4.097184e-04
#>    157 3.880978e-04 2.699473e-04 2.607653e-04 2.273845e-04 1.742108e-04
#>    160 1.643966e-04 1.140268e-04 1.105404e-04 9.636213e-05 7.298691e-05
#>    163 6.852478e-05 4.739332e-05 4.609518e-05 4.019619e-05 3.015067e-05
#>    166 2.813417e-05 1.940175e-05 1.892696e-05 1.651845e-05 1.228935e-05
#>    169 1.138830e-05 7.830489e-06 7.659613e-06 6.693061e-06 4.945767e-06
#>    172 4.548907e-06 3.118537e-06 3.057917e-06 2.676120e-06 1.966520e-06
#>    175 1.794500e-06 1.226583e-06 1.205344e-06 1.056706e-06 7.730428e-07
#>    178 6.997023e-07 4.768446e-07 4.694802e-07 4.123828e-07 3.006231e-07
#>    181 2.698624e-07 1.833672e-07 1.808345e-07 1.591694e-07 1.157229e-07
#>    184 1.030241e-07 6.979808e-08 6.893207e-08 6.080405e-08 4.412148e-08
#>    187 3.895787e-08 2.631716e-08 2.602196e-08 2.300429e-08 1.667114e-08
#>    190 1.460110e-08 9.835258e-09 9.734689e-09 8.625028e-09 6.245966e-09
#>    193 5.427095e-09 3.645372e-09 3.611020e-09 3.206590e-09 2.321521e-09
#>    196 2.001700e-09 1.340839e-09 1.329055e-09 1.182844e-09 8.565349e-10
#>    199 7.329739e-10 4.896460e-10 4.855713e-10 4.331101e-10 3.137939e-10
#>    202 2.666127e-10 1.776364e-10 1.762147e-10 1.575219e-10 1.142290e-10
#>    205 9.635914e-11 6.403006e-11 6.353072e-11 5.690568e-11 4.130394e-11
#>    208 3.463329e-11 2.295660e-11 2.277824e-11 2.044627e-11 1.486277e-11
#>    211 1.238895e-11 8.193620e-12 8.129371e-12 7.316229e-12 5.334479e-12
#>    214 4.407838e-12 2.906754e-12 2.882596e-12 2.598023e-12 1.894330e-12
#>    217 1.561027e-12 1.026694e-12 1.019339e-12 9.211549e-13 6.753199e-13
#>    220 5.504632e-13 3.616313e-13 3.586376e-13 3.240276e-13 2.366481e-13
#>    223 1.920380e-13 1.261381e-13 1.253820e-13 1.134289e-13 8.246819e-14
#>    226 6.721002e-14 4.410996e-14 4.327029e-14 3.934394e-14 2.893891e-14
#>    229 2.124224e-14 1.366225e-14 1.362776e-14 1.242875e-14 9.294398e-15
#>    232 9.435611e-15 6.382309e-15 6.606608e-15 5.660429e-15 3.965207e-15
#>    235 2.969072e-15 1.871430e-15 1.946866e-15 1.916737e-15 1.266589e-15
#>    238 8.383549e-16 5.052973e-16 4.467737e-16 4.192641e-16 3.994302e-16
#>       year
#> length           11           12           13           14           15
#>    1   4.325158e-59 1.883441e-58 4.560396e-58 9.966535e-58 5.135508e-58
#>    4   5.231241e-19 2.278005e-18 5.515759e-18 1.205444e-17 6.211353e-18
#>    7   3.827628e-05 1.666786e-04 4.035806e-04 8.820069e-04 4.544763e-04
#>    10  1.597851e+01 6.958029e+01 1.684755e+02 3.681955e+02 1.897220e+02
#>    13  1.912368e+03 8.327627e+03 2.016377e+04 4.406700e+04 2.270663e+04
#>    16  4.392688e+03 1.911353e+04 4.628105e+04 1.011460e+05 5.212632e+04
#>    19  1.234035e+03 3.482719e+03 8.592399e+03 1.888504e+04 1.078289e+04
#>    22  5.103966e+03 1.042722e+03 4.310138e+03 1.061619e+04 1.725506e+04
#>    25  1.063465e+04 2.062627e+03 8.561552e+03 2.125020e+04 3.564836e+04
#>    28  6.548729e+03 2.064209e+03 5.280870e+03 1.351274e+04 2.267199e+04
#>    31  2.175913e+03 3.449825e+03 1.810711e+03 5.974575e+03 1.003337e+04
#>    34  1.247489e+03 4.739237e+03 1.279022e+03 4.844976e+03 8.187152e+03
#>    37  9.541661e+02 3.571343e+03 1.641739e+03 3.457688e+03 5.977147e+03
#>    40  7.090946e+02 1.813799e+03 2.172253e+03 1.852913e+03 3.280227e+03
#>    43  5.932497e+02 8.999998e+02 2.221231e+03 1.263450e+03 1.829166e+03
#>    46  5.243560e+02 5.460729e+02 1.635475e+03 1.317635e+03 1.146647e+03
#>    49  4.969818e+02 3.875676e+02 9.467780e+02 1.375321e+03 8.080569e+02
#>    52  5.343562e+02 3.136762e+02 5.049579e+02 1.173045e+03 6.909597e+02
#>    55  6.326276e+02 2.897966e+02 2.916425e+02 8.118927e+02 6.459275e+02
#>    58  7.675152e+02 3.004419e+02 2.001643e+02 4.845376e+02 5.581926e+02
#>    61  9.014257e+02 3.359917e+02 1.671543e+02 2.751811e+02 4.193040e+02
#>    64  9.970000e+02 3.837114e+02 1.655535e+02 1.681334e+02 2.780105e+02
#>    67  1.032113e+03 4.279784e+02 1.811907e+02 1.225540e+02 1.725125e+02
#>    70  1.003961e+03 4.560045e+02 2.030862e+02 1.086234e+02 1.102922e+02
#>    73  9.234147e+02 4.616477e+02 2.223602e+02 1.095797e+02 8.096146e+01
#>    76  8.075016e+02 4.448836e+02 2.332540e+02 1.158703e+02 7.105107e+01
#>    79  6.742150e+02 4.093467e+02 2.332799e+02 1.215633e+02 7.013005e+01
#>    82  5.394169e+02 3.603719e+02 2.224155e+02 1.230991e+02 7.142923e+01
#>    85  4.149368e+02 3.038840e+02 2.022265e+02 1.188841e+02 7.107808e+01
#>    88  3.078170e+02 2.456018e+02 1.752992e+02 1.089803e+02 6.741439e+01
#>    91  2.207545e+02 1.903375e+02 1.447962e+02 9.467974e+01 6.040488e+01
#>    94  1.532988e+02 1.415099e+02 1.139322e+02 7.795763e+01 5.103682e+01
#>    97  1.031748e+02 1.009850e+02 8.542006e+01 6.089122e+01 4.070621e+01
#>    100 6.732960e+01 6.922266e+01 6.107607e+01 4.518686e+01 3.071945e+01
#>    103 4.261398e+01 4.562263e+01 4.170437e+01 3.192126e+01 2.199739e+01
#>    106 2.616628e+01 2.894599e+01 2.724388e+01 2.151421e+01 1.499136e+01
#>    109 1.559432e+01 1.770563e+01 1.706217e+01 1.386701e+01 9.752987e+00
#>    112 9.025858e+00 1.045838e+01 1.026725e+01 8.568708e+00 6.075007e+00
#>    115 5.077321e+00 5.975912e+00 5.950362e+00 5.088456e+00 3.633306e+00
#>    118 2.778309e+00 3.309009e+00 3.329048e+00 2.910973e+00 2.092049e+00
#>    121 1.480254e+00 1.778677e+00 1.802114e+00 1.607982e+00 1.162663e+00
#>    124 7.686563e-01 9.296508e-01 9.459946e-01 8.595692e-01 6.251316e-01
#>    127 3.894138e-01 4.731981e-01 4.825528e-01 4.456089e-01 3.258932e-01
#>    130 1.926727e-01 2.349079e-01 2.396604e-01 2.244729e-01 1.650617e-01
#>    133 9.319757e-02 1.138861e-01 1.160978e-01 1.100831e-01 8.137653e-02
#>    136 4.411687e-02 5.398939e-02 5.494712e-02 5.264775e-02 3.911901e-02
#>    139 2.045752e-02 2.505656e-02 2.544571e-02 2.459489e-02 1.836581e-02
#>    142 9.301902e-03 1.139696e-02 1.154599e-02 1.124008e-02 8.433592e-03
#>    145 4.151187e-03 5.085848e-03 5.139738e-03 5.032220e-03 3.793109e-03
#>    148 1.819926e-03 2.228817e-03 2.247213e-03 2.209932e-03 1.673079e-03
#>    151 7.845164e-04 9.601329e-04 9.660535e-04 9.531255e-04 7.245962e-04
#>    154 3.328060e-04 4.069355e-04 4.087303e-04 4.041661e-04 3.084745e-04
#>    157 1.390535e-04 1.698370e-04 1.703516e-04 1.686792e-04 1.292231e-04
#>    160 5.726933e-05 6.985725e-05 7.000011e-05 6.935508e-05 5.331927e-05
#>    163 2.326735e-05 2.834059e-05 2.838185e-05 2.811942e-05 2.168957e-05
#>    166 9.332095e-06 1.134897e-05 1.136316e-05 1.125168e-05 8.705946e-06
#>    169 3.697677e-06 4.489239e-06 4.495560e-06 4.446926e-06 3.450905e-06
#>    172 1.448420e-06 1.755348e-06 1.758687e-06 1.737253e-06 1.351872e-06
#>    175 5.612570e-07 6.789237e-07 6.807592e-07 6.713306e-07 5.237677e-07
#>    178 2.152808e-07 2.599120e-07 2.608949e-07 2.567870e-07 2.008352e-07
#>    181 8.178754e-08 9.854798e-08 9.905116e-08 9.728579e-08 7.626420e-08
#>    184 3.079342e-08 3.702884e-08 3.727502e-08 3.652810e-08 2.869770e-08
#>    187 1.149641e-08 1.379597e-08 1.391156e-08 1.360054e-08 1.070712e-08
#>    190 4.258231e-09 5.099351e-09 5.151761e-09 5.024249e-09 3.963112e-09
#>    193 1.565512e-09 1.870865e-09 1.893893e-09 1.842426e-09 1.455990e-09
#>    196 5.716552e-10 6.817038e-10 6.915546e-10 6.710421e-10 5.312247e-10
#>    199 2.073527e-10 2.467579e-10 2.508840e-10 2.428323e-10 1.925528e-10
#>    202 7.477181e-11 8.879960e-11 9.048869e-11 8.735533e-11 6.938210e-11
#>    205 2.678952e-11 3.174238e-11 3.242626e-11 3.123417e-11 2.484125e-11
#>    208 9.557854e-12 1.130198e-11 1.157367e-11 1.111776e-11 8.855814e-12
#>    211 3.403648e-12 4.020170e-12 4.128361e-12 3.948158e-12 3.152287e-12
#>    214 1.199087e-12 1.413147e-12 1.452278e-12 1.390515e-12 1.111206e-12
#>    217 4.268229e-13 4.993738e-13 5.179895e-13 4.939425e-13 3.914261e-13
#>    220 1.472569e-13 1.731377e-13 1.783423e-13 1.701222e-13 1.364717e-13
#>    223 5.050780e-14 5.886565e-14 6.126360e-14 5.752153e-14 4.631586e-14
#>    226 1.771596e-14 2.057508e-14 2.163285e-14 1.990210e-14 1.638489e-14
#>    229 5.394697e-15 6.179061e-15 6.535398e-15 6.194493e-15 4.842490e-15
#>    232 2.567339e-15 3.033371e-15 3.018195e-15 3.113770e-15 2.221373e-15
#>    235 7.252867e-16 8.782526e-16 8.857629e-16 7.978874e-16 7.346729e-16
#>    238 1.966835e-16 1.984550e-16 2.493824e-16 2.121355e-16 1.645387e-16
#>       year
#> length           16           17           18           19           20
#>    1   2.258563e-58 2.238198e-58 3.692607e-58 3.183667e-58 1.880000e-58
#>    4   2.731712e-18 2.707081e-18 4.466176e-18 3.850617e-18 2.273844e-18
#>    7   1.998757e-04 1.980734e-04 3.267841e-04 2.817445e-04 1.663741e-04
#>    10  8.343848e+01 8.268614e+01 1.364166e+02 1.176148e+02 6.945317e+01
#>    13  9.986229e+03 9.896184e+03 1.632685e+04 1.407657e+04 8.312414e+03
#>    16  2.292941e+04 2.271663e+04 3.747457e+04 3.231145e+04 1.908272e+04
#>    19  5.324384e+03 4.512768e+03 6.988513e+03 6.262793e+03 3.996592e+03
#>    22  1.411482e+04 5.432217e+03 3.839909e+03 5.970826e+03 6.868908e+03
#>    25  2.958271e+04 1.136627e+04 7.720016e+03 1.220644e+04 1.425767e+04
#>    28  2.140336e+04 9.577371e+03 5.396874e+03 7.899608e+03 9.640465e+03
#>    31  1.822133e+04 1.228051e+04 4.111809e+03 3.975631e+03 6.205441e+03
#>    34  2.173110e+04 1.718065e+04 5.331457e+03 3.766831e+03 6.613515e+03
#>    37  1.706596e+04 1.676301e+04 6.473392e+03 3.387613e+03 5.211673e+03
#>    40  1.023462e+04 1.536909e+04 8.107198e+03 3.100657e+03 3.322812e+03
#>    43  6.365484e+03 1.370171e+04 9.368385e+03 3.429293e+03 2.460368e+03
#>    46  4.052223e+03 1.024710e+04 9.339522e+03 4.027053e+03 2.253163e+03
#>    49  2.404253e+03 6.513391e+03 8.269473e+03 4.537166e+03 2.409097e+03
#>    52  1.404376e+03 3.840597e+03 6.468208e+03 4.640895e+03 2.776367e+03
#>    55  9.011552e+02 2.201608e+03 4.409719e+03 4.206516e+03 3.090441e+03
#>    58  6.735834e+02 1.242940e+03 2.668431e+03 3.358229e+03 3.111731e+03
#>    61  5.555471e+02 7.156657e+02 1.493099e+03 2.366851e+03 2.776472e+03
#>    64  4.532707e+02 4.445042e+02 8.088947e+02 1.491237e+03 2.195865e+03
#>    67  3.418101e+02 3.035319e+02 4.443929e+02 8.613506e+02 1.551813e+03
#>    70  2.359284e+02 2.180982e+02 2.585101e+02 4.734399e+02 9.919699e+02
#>    73  1.541810e+02 1.556188e+02 1.624178e+02 2.591574e+02 5.831647e+02
#>    76  1.021578e+02 1.073553e+02 1.081165e+02 1.474123e+02 3.223532e+02
#>    79  7.434709e+01 7.246253e+01 7.347205e+01 8.903646e+01 1.723370e+02
#>    82  6.150902e+01 4.983980e+01 4.984398e+01 5.673944e+01 9.205395e+01
#>    85  5.562142e+01 3.654591e+01 3.390636e+01 3.743099e+01 5.067547e+01
#>    88  5.149508e+01 2.899350e+01 2.366875e+01 2.528045e+01 2.939134e+01
#>    91  4.659474e+01 2.423007e+01 1.732572e+01 1.752975e+01 1.813622e+01
#>    94  4.027751e+01 2.044593e+01 1.330604e+01 1.257801e+01 1.190543e+01
#>    97  3.297666e+01 1.685875e+01 1.049164e+01 9.336006e+00 8.252653e+00
#>    100 2.552558e+01 1.334232e+01 8.255512e+00 7.072835e+00 5.952937e+00
#>    103 1.870136e+01 1.005947e+01 6.340175e+00 5.358420e+00 4.379077e+00
#>    106 1.300021e+01 7.212092e+00 4.690998e+00 3.984184e+00 3.216890e+00
#>    109 8.599437e+00 4.921192e+00 3.323872e+00 2.870112e+00 2.319639e+00
#>    112 5.429452e+00 3.202590e+00 2.251558e+00 1.988997e+00 1.622830e+00
#>    115 3.281866e+00 1.992756e+00 1.458825e+00 1.322109e+00 1.094236e+00
#>    118 1.904721e+00 1.188726e+00 9.055294e-01 8.425986e-01 7.089816e-01
#>    121 1.064369e+00 6.815873e-01 5.396242e-01 5.153803e-01 4.411240e-01
#>    124 5.741656e-01 3.765883e-01 3.094245e-01 3.030625e-01 2.637571e-01
#>    127 2.997282e-01 2.009804e-01 1.711136e-01 1.716793e-01 1.517789e-01
#>    130 1.517582e-01 1.038385e-01 9.146339e-02 9.388922e-02 8.421581e-02
#>    133 7.468426e-02 5.204704e-02 4.735520e-02 4.967673e-02 4.514722e-02
#>    136 3.579398e-02 2.535857e-02 2.379703e-02 2.548170e-02 2.343240e-02
#>    139 1.673722e-02 1.203225e-02 1.162894e-02 1.269695e-02 1.179849e-02
#>    142 7.648551e-03 5.569461e-03 5.536030e-03 6.157119e-03 5.774332e-03
#>    145 3.421157e-03 2.518984e-03 2.571747e-03 2.910893e-03 2.751966e-03
#>    148 1.499998e-03 1.114910e-03 1.167657e-03 1.343886e-03 1.279397e-03
#>    151 6.455235e-04 4.835829e-04 5.189229e-04 6.068173e-04 5.811640e-04
#>    154 2.730080e-04 2.058225e-04 2.260440e-04 2.683752e-04 2.583380e-04
#>    157 1.136006e-04 8.606827e-05 9.663862e-05 1.164138e-04 1.125375e-04
#>    160 4.655780e-05 3.540180e-05 4.059805e-05 4.959021e-05 4.810705e-05
#>    163 1.881238e-05 1.433875e-05 1.677847e-05 2.076983e-05 2.020543e-05
#>    166 7.501335e-06 5.724571e-06 6.829006e-06 8.562468e-06 8.348061e-06
#>    169 2.954292e-06 2.254938e-06 2.740039e-06 3.478138e-06 3.396553e-06
#>    172 1.150115e-06 8.771532e-07 1.084824e-06 1.393480e-06 1.362301e-06
#>    175 4.429261e-07 3.372332e-07 4.241792e-07 5.511361e-07 5.391480e-07
#>    178 1.688625e-07 1.282454e-07 1.639409e-07 2.153744e-07 2.107341e-07
#>    181 6.377301e-08 4.827614e-08 6.267753e-08 8.322551e-08 8.141802e-08
#>    184 2.387342e-08 1.800133e-08 2.372145e-08 3.182545e-08 3.111783e-08
#>    187 8.863871e-09 6.653392e-09 8.893540e-09 1.205195e-08 1.177400e-08
#>    190 3.265914e-09 2.439025e-09 3.305168e-09 4.522663e-09 4.413341e-09
#>    193 1.194759e-09 8.873076e-10 1.218320e-09 1.682898e-09 1.639925e-09
#>    196 4.341907e-10 3.205250e-10 4.456878e-10 6.213055e-10 6.044529e-10
#>    199 1.568136e-10 1.150247e-10 1.618945e-10 2.277081e-10 2.211220e-10
#>    202 5.631190e-11 4.102843e-11 5.842444e-11 8.288970e-11 8.032831e-11
#>    205 2.010294e-11 1.454689e-11 2.095267e-11 2.998278e-11 2.899250e-11
#>    208 7.147176e-12 5.133246e-12 7.474022e-12 1.078290e-11 1.040165e-11
#>    211 2.535457e-12 1.806011e-12 2.653972e-12 3.857447e-12 3.711516e-12
#>    214 8.907909e-13 6.316272e-13 9.376050e-13 1.373274e-12 1.318458e-12
#>    217 3.170038e-13 2.207326e-13 3.291975e-13 4.866654e-13 4.650099e-13
#>    220 1.085371e-13 7.628897e-14 1.154357e-13 1.719264e-13 1.642186e-13
#>    223 3.722965e-14 2.542111e-14 4.002237e-14 6.021022e-14 5.749985e-14
#>    226 1.347230e-14 8.698359e-15 1.409380e-14 2.092210e-14 1.982266e-14
#>    229 3.788284e-15 2.537778e-15 4.050910e-15 6.769829e-15 6.186831e-15
#>    232 1.765351e-15 1.541535e-15 1.966423e-15 3.124688e-15 2.957104e-15
#>    235 4.533895e-16 3.056657e-16 6.641993e-16 8.347837e-16 9.914932e-16
#>    238 1.594505e-16 5.498740e-17 1.080126e-16 2.822247e-16 1.781058e-16
#> 
#> $sim_length
#> function (age = NULL, length_age_key = FALSE) 
#> {
#>     pred_length <- Linf - (Linf - L0) * exp(-K * age)
#>     if (length_age_key) {
#>         breaks <- seq(0, ceiling(max(pred_length)) * 10, length_group)
#>         lak <- matrix(NA, ncol = length(pred_length), nrow = length(breaks) - 
#>             1, dimnames = list(length = group_lengths(breaks, 
#>             length_group)[-length(breaks)], age = age))
#>         for (i in seq_along(breaks)[-1]) {
#>             for (j in seq_along(pred_length)) {
#>                 lak[i - 1, j] <- stats::pnorm(log(breaks[i]), 
#>                   log(pred_length[j]), sd = log_sd) - stats::pnorm(log(breaks[i - 
#>                   1]), log(pred_length[j]), sd = log_sd)
#>             }
#>         }
#>         lak <- lak[rowSums(lak) > 0, ]
#>         if (plot) 
#>             graphics::image(x = as.numeric(colnames(lak)), y = as.numeric(rownames(lak)), 
#>                 z = t(lak), xlab = "Age", ylab = "Length", main = "P(Length | Age)", 
#>                 col = viridis::viridis(100))
#>         return(lak)
#>     }
#>     else {
#>         log_length <- stats::rnorm(length(age), log(pred_length), 
#>             sd = log_sd)
#>         length <- round(exp(log_length), digits)
#>         if (plot) 
#>             plot(age, length)
#>         return(length)
#>     }
#> }
#> <bytecode: 0x55d5ac817108>
#> <environment: 0x55d5a9130450>
#> 

Z_fun <- sim_Z(log_mean = log(0.5), log_sd = 0.1, phi_age = 0.9, phi_year = 0.9, plot = TRUE)
Z_fun(years = 1:100, ages = 1:20)

#>     year
#> age          1         2         3         4         5         6         7
#>   1  0.4681845 0.3123019 0.3669207 0.4258628 0.4372891 0.8560683 0.9308546
#>   2  0.7011996 0.3446811 0.3838099 0.4505322 0.4389773 0.8431613 0.9215119
#>   3  0.8209396 0.3810726 0.4652074 0.4637953 0.4384995 0.7788920 0.8571649
#>   4  0.6615773 0.3597674 0.4242742 0.4213227 0.3868485 0.6999696 0.8307021
#>   5  0.7187608 0.4781034 0.5594914 0.5954222 0.5541544 0.8777167 1.2265065
#>   6  0.7367453 0.5000310 0.6974626 0.6029792 0.5580711 0.9268667 1.2375734
#>   7  0.5734550 0.4418663 0.6687790 0.5629801 0.6134274 0.9273008 1.2330777
#>   8  0.4582357 0.3593031 0.5099084 0.5693719 0.5617024 0.7549020 0.8200470
#>   9  0.4609889 0.4046337 0.5744204 0.5572263 0.6028555 0.8359749 0.8732411
#>   10 0.5184292 0.4079270 0.6099439 0.6986041 0.7253622 0.9352374 0.7464902
#>   11 0.6977021 0.5404473 0.7947732 0.8308526 0.7845450 0.9768360 0.7470763
#>   12 0.7067948 0.5663344 0.8215920 1.0185964 1.0042055 1.2278444 1.0652967
#>   13 0.7270011 0.6680149 0.8998602 1.2213197 1.1333277 1.2480577 0.9834925
#>   14 0.7114284 0.6410892 0.8072065 1.0264732 1.0181028 1.1559396 0.9297523
#>   15 0.5514763 0.6305437 0.7654835 0.8248791 0.7591054 0.8551862 0.7853410
#>   16 0.5016615 0.5173229 0.6247067 0.7060929 0.6830287 0.7939981 0.7846366
#>   17 0.4133846 0.5564867 0.6363457 0.8105441 0.7118453 0.8655708 0.8779625
#>   18 0.6485531 0.6818691 0.7258134 0.9531332 0.8604071 0.9772106 0.9129324
#>   19 0.4265646 0.5353985 0.5972082 0.8061765 0.6500369 0.6092105 0.6956422
#>   20 0.3121439 0.4016659 0.4097254 0.4731499 0.3782773 0.4203942 0.4387673
#>     year
#> age          8         9        10        11        12        13        14
#>   1  0.7773777 1.0087611 1.2049060 0.9847128 0.7308335 1.1263366 1.2225082
#>   2  0.8034360 1.0033078 1.0986317 0.7814784 0.5671982 0.9313784 0.9283867
#>   3  0.8425125 0.9520399 1.2801667 0.8582040 0.7386917 1.1688305 1.0785072
#>   4  0.8842075 1.0614958 1.3569418 0.8550267 0.8829059 1.2759153 1.2710119
#>   5  1.3547696 1.3613721 1.7005366 1.1412438 1.0901617 1.4564789 1.3263172
#>   6  1.2375461 1.1944291 1.2930956 0.9739900 0.9151493 1.1967099 1.1720254
#>   7  1.3984172 1.2200327 1.3224891 0.9550196 0.9105228 0.9768092 1.0266497
#>   8  0.9139764 0.8925690 1.0620728 0.9315175 0.7468722 0.7307082 0.6653427
#>   9  1.1143294 1.1898079 1.3516663 1.0727848 0.7556045 0.7493069 0.6641316
#>   10 0.9523876 0.9923428 1.1682456 1.1588016 0.6896343 0.6518047 0.5411947
#>   11 0.8473085 0.7493843 0.8951991 0.7509147 0.4356423 0.4221233 0.3856685
#>   12 1.2769378 1.2298132 1.5812417 1.2449194 0.6806397 0.6266043 0.6628662
#>   13 0.9594622 1.0141811 1.2220991 0.9651628 0.6339980 0.5841071 0.6684367
#>   14 0.8322079 0.9563031 1.1622399 0.8138929 0.5924082 0.5518191 0.6095598
#>   15 0.8099238 0.8181258 0.9372536 0.6921356 0.4965259 0.4766512 0.6889493
#>   16 0.8032162 0.7567313 0.8464876 0.7033376 0.5370695 0.5415931 0.8127962
#>   17 0.8012922 0.8547072 0.8724475 0.7247970 0.5251588 0.5522704 0.7968200
#>   18 0.7321462 0.8584274 0.8527802 0.7000104 0.4849561 0.5529490 0.7651602
#>   19 0.6390056 0.7573842 0.7414326 0.7122746 0.5242660 0.6601415 0.7521087
#>   20 0.3501357 0.4843217 0.5360040 0.5493105 0.4115139 0.5451432 0.7155330
#>     year
#> age         15        16        17        18        19        20        21
#>   1  1.0574475 0.8790966 0.6102912 0.7127476 1.0856478 0.9490423 0.8084917
#>   2  0.7778526 0.6347713 0.5349997 0.7252486 0.9902981 0.9162223 0.7126909
#>   3  0.8517819 0.7424926 0.5737438 0.6296607 0.8457889 0.7520735 0.6886052
#>   4  1.0053414 0.7532308 0.6030271 0.6212708 0.9334382 0.7005000 0.5957199
#>   5  1.0382811 0.8700888 0.7228455 0.8073872 1.1888164 1.0042666 0.8873841
#>   6  0.9315900 0.8103465 0.7900501 0.8656488 1.2162209 1.2405169 1.0340610
#>   7  0.7618165 0.6372246 0.5706753 0.5912276 0.8814162 0.8924806 0.8156569
#>   8  0.5667156 0.4642974 0.4908424 0.5499906 0.7742263 0.7503613 0.7901295
#>   9  0.4389743 0.3567257 0.3694527 0.4380617 0.5803932 0.5294897 0.5188840
#>   10 0.4568597 0.3488456 0.3614694 0.4269111 0.5564974 0.5224516 0.4708747
#>   11 0.2827602 0.2302610 0.2963468 0.3774553 0.4203175 0.4069894 0.3811602
#>   12 0.4648644 0.3610913 0.4681314 0.5417519 0.6281218 0.6035908 0.5294223
#>   13 0.5363707 0.4667420 0.5763276 0.6228627 0.6334592 0.6604241 0.5892426
#>   14 0.4933441 0.4270391 0.5656977 0.5608493 0.5386416 0.5409893 0.4849065
#>   15 0.5743684 0.5001472 0.6133411 0.6524468 0.6168823 0.7491866 0.6926536
#>   16 0.6596051 0.6127329 0.7042196 0.6581059 0.7195786 1.1059629 0.9724777
#>   17 0.7716201 0.6694835 0.6887970 0.7009572 0.8768095 1.2579083 1.1555893
#>   18 0.7847326 0.6929736 0.8135686 0.7619430 1.0119707 1.2736879 1.0513832
#>   19 0.8301595 0.7632155 0.8477139 0.7052453 0.9235485 1.3009547 1.0975279
#>   20 0.7513511 0.7457802 0.7064270 0.5648604 0.7981213 1.0318082 0.8563101
#>     year
#> age         22        23        24        25        26        27        28
#>   1  0.7989859 0.7722710 1.0961286 1.1952035 1.1993372 0.8813499 0.6624166
#>   2  0.6371631 0.6022153 0.8647211 0.9941620 1.0533051 0.7296793 0.5977869
#>   3  0.6689024 0.5863030 0.8379322 1.0738291 1.1456235 0.7805897 0.6360330
#>   4  0.4656389 0.4196445 0.7129097 0.9752613 0.9450266 0.6942423 0.6344815
#>   5  0.7087135 0.6573410 1.1036850 1.4587188 1.2269769 0.7515793 0.6882993
#>   6  0.8006345 0.7898866 1.4230632 1.5752939 1.3200058 0.7404336 0.6750809
#>   7  0.6682806 0.6720708 1.0716629 1.1282040 0.8580204 0.6063674 0.6302154
#>   8  0.6626211 0.7348756 1.1625791 1.4629376 1.3523343 0.8400890 0.9308046
#>   9  0.4330211 0.5053097 0.7379748 1.0681612 0.9703197 0.5187213 0.6959873
#>   10 0.4651211 0.4929853 0.6555333 1.1265642 0.8979696 0.4859684 0.6025734
#>   11 0.3734491 0.4164852 0.5394539 1.0548069 0.8638339 0.5868573 0.8220455
#>   12 0.4866004 0.4541775 0.4814790 0.9583643 0.9944186 0.6849809 0.9497059
#>   13 0.5674190 0.6006454 0.7475772 1.1894422 1.1023295 0.7392188 1.1427962
#>   14 0.4543181 0.4692182 0.5183778 0.7837447 0.7814883 0.5956274 0.9100631
#>   15 0.5616021 0.5595071 0.5990624 0.8086189 0.7915186 0.5217624 0.8562700
#>   16 0.7771571 0.7519091 0.9071097 1.0649576 1.0359397 0.7548375 1.1835233
#>   17 0.8008084 0.6742388 0.9017716 0.9596543 0.9621856 0.7901188 1.2463440
#>   18 0.7357221 0.6268975 0.7108930 0.8407677 0.9541433 0.8201551 1.3773963
#>   19 0.7794207 0.6183210 0.7605767 0.8712522 0.9530044 0.8407091 1.7107617
#>   20 0.7414901 0.5919717 0.7683361 0.7638934 0.8174274 0.7000748 1.2759658
#>     year
#> age         29        30        31        32        33        34        35
#>   1  0.6421298 0.5359420 0.3804688 0.3837800 0.4002798 0.4521042 0.6838981
#>   2  0.5486031 0.4352299 0.3216874 0.2957092 0.3418679 0.4074845 0.6466794
#>   3  0.6342229 0.5265050 0.4214360 0.3733966 0.4423001 0.4720104 0.7492538
#>   4  0.6137123 0.4590264 0.3697686 0.2716250 0.3530273 0.3403303 0.4778758
#>   5  0.6203582 0.4722795 0.3522991 0.2470587 0.2682809 0.3022650 0.4557199
#>   6  0.6688386 0.6092916 0.4883991 0.3958634 0.3952771 0.4357639 0.5709072
#>   7  0.6628290 0.5701895 0.4549438 0.3589045 0.3278319 0.3976477 0.3989689
#>   8  1.0444049 0.8517672 0.6322244 0.4781175 0.4421202 0.4706131 0.4591185
#>   9  0.7176854 0.5918087 0.5498963 0.4396551 0.4132069 0.4714283 0.4189071
#>   10 0.5646202 0.4967565 0.4805939 0.3895656 0.3516542 0.4322217 0.3315126
#>   11 0.6852173 0.6926037 0.6914799 0.6147180 0.6030944 0.6630219 0.4060811
#>   12 0.7695694 0.8550072 0.7917534 0.7504168 0.7152321 0.8211490 0.4789188
#>   13 1.0935280 0.9975949 0.8668873 0.8343727 0.7611533 0.8452049 0.4773746
#>   14 0.7739397 0.6759119 0.6157345 0.5764486 0.4819619 0.5627997 0.3724711
#>   15 0.8105095 0.6531913 0.5447272 0.4490989 0.4776446 0.5187321 0.3818470
#>   16 0.9216452 0.7256203 0.5869134 0.5197841 0.5734506 0.6077779 0.4793856
#>   17 1.0406662 0.8567914 0.6606050 0.5466990 0.4974169 0.4246970 0.3357060
#>   18 1.1952193 1.1150643 0.9293516 0.7500508 0.6460831 0.4940048 0.4587752
#>   19 1.5462516 1.4817787 1.3293270 1.1227991 0.7945841 0.5266379 0.4319702
#>   20 1.2035041 1.1855774 0.9416231 0.8421475 0.6607713 0.4544013 0.3518956
#>     year
#> age         36        37        38        39        40        41        42
#>   1  0.5406449 1.0059526 1.3314747 0.9818774 1.0494332 0.6485690 0.5563853
#>   2  0.6193262 1.3536095 1.6969486 1.0894108 1.1416387 0.6353335 0.5012347
#>   3  0.6747299 1.3725389 2.0524802 1.4291903 1.4265729 0.7471473 0.6318349
#>   4  0.4425658 0.8904291 1.2422958 0.8943716 0.8437527 0.6188470 0.5805399
#>   5  0.4175558 0.7835396 1.1169654 0.8814029 0.8527243 0.5867910 0.5162372
#>   6  0.5903697 0.9618129 1.2974154 0.7988789 0.8263605 0.5269709 0.5512346
#>   7  0.4341088 0.6258330 0.8543699 0.6024916 0.5493784 0.4154412 0.5280419
#>   8  0.4153603 0.6260315 0.9672996 0.7861777 0.7472964 0.5300130 0.5611464
#>   9  0.3548479 0.5741847 0.8965310 0.7294755 0.7125075 0.6588727 0.9333332
#>   10 0.2482210 0.3592022 0.5299858 0.4233054 0.4869360 0.5444670 0.8515757
#>   11 0.3006170 0.4801502 0.6542586 0.5895108 0.8044639 0.7760631 0.8813475
#>   12 0.3569026 0.4565290 0.6666875 0.5832940 0.8137708 0.8020342 0.9426647
#>   13 0.3688421 0.4683960 0.6591457 0.5730145 0.7962906 0.8554070 0.9571836
#>   14 0.3060303 0.3742101 0.4780985 0.4319675 0.6314509 0.6799818 0.7211601
#>   15 0.3288824 0.4246565 0.5892134 0.5198580 0.7624952 0.6085339 0.7310247
#>   16 0.4112880 0.5736411 0.6059346 0.4551404 0.6468801 0.6155678 0.6277993
#>   17 0.3002904 0.3975158 0.4123116 0.2846425 0.3692577 0.3513484 0.3459599
#>   18 0.3991977 0.5459320 0.5646249 0.3695006 0.4594659 0.4454289 0.4782737
#>   19 0.3404756 0.4846758 0.5580132 0.3271778 0.3534749 0.3183579 0.3187484
#>   20 0.2896205 0.4303493 0.4606547 0.2725384 0.2882977 0.2628641 0.2918790
#>     year
#> age         43        44        45        46        47        48        49
#>   1  0.4736790 0.6706345 0.5850988 0.5542639 0.7257117 0.6587091 0.7734822
#>   2  0.4314835 0.6525793 0.6006163 0.5798748 0.7554642 0.7077089 0.7155068
#>   3  0.5776401 0.7740688 0.6575865 0.6557372 0.8039443 0.6120302 0.6312040
#>   4  0.5759292 0.7367048 0.6479650 0.6433121 0.8459484 0.6525031 0.6207945
#>   5  0.5080120 0.6687139 0.5402104 0.4736264 0.5263163 0.3530484 0.3246357
#>   6  0.5081920 0.6206320 0.5157609 0.5407953 0.6315837 0.4017389 0.3717192
#>   7  0.4473461 0.6716847 0.6602251 0.6772427 0.6591501 0.4012408 0.3616451
#>   8  0.5350610 0.7944511 0.8208451 0.8040527 0.8067276 0.5623838 0.5968794
#>   9  0.9944336 1.5016668 1.3383201 1.1217192 1.0585814 0.7616933 0.7921398
#>   10 0.8517599 1.3451934 1.1030612 1.0097666 1.0144639 0.8073932 0.7402857
#>   11 0.8989103 1.2279308 1.1058385 0.8390716 0.7960888 0.6432380 0.7434088
#>   12 0.8978614 1.1025846 0.9703169 0.8111506 0.8255751 0.6994914 0.7490773
#>   13 0.9434579 1.1593616 0.9305799 0.9661816 0.9615533 0.9083669 0.9392941
#>   14 0.8642140 0.9455230 0.8484965 0.9403195 0.9852468 0.9001667 1.0434153
#>   15 0.8168136 0.8706479 0.6456599 0.7124855 0.7554580 0.6927884 0.9725720
#>   16 0.6997070 0.8151726 0.5877557 0.6055146 0.6674821 0.6112921 0.9269830
#>   17 0.3878323 0.5161712 0.3769518 0.3810303 0.3663401 0.4145674 0.5464704
#>   18 0.5687151 0.7597206 0.4792990 0.4112378 0.4100984 0.4731809 0.5558805
#>   19 0.4008753 0.6075693 0.3893248 0.3816594 0.4160022 0.3913191 0.4169782
#>   20 0.4244230 0.6669179 0.4147800 0.4507522 0.4850547 0.4123783 0.4900771
#>     year
#> age         50        51        52        53        54        55        56
#>   1  0.7659672 0.5744983 0.5756981 0.5731379 0.6394709 0.6644920 0.7466799
#>   2  0.6632586 0.5927141 0.5959989 0.6983830 0.7871549 0.7204531 0.7681461
#>   3  0.5370550 0.4846756 0.5433448 0.5730445 0.6679425 0.6371021 0.6387348
#>   4  0.4428846 0.3938435 0.3809600 0.4089853 0.4363121 0.4784599 0.4734543
#>   5  0.2328443 0.2498878 0.2742422 0.2980614 0.3976101 0.4349789 0.3998258
#>   6  0.2614359 0.2893554 0.3159591 0.3408857 0.4263596 0.4157810 0.4067319
#>   7  0.2272883 0.2397468 0.2578457 0.2923496 0.3458124 0.3745314 0.4029040
#>   8  0.3464895 0.3912172 0.4443593 0.4232292 0.4733475 0.4817343 0.5144121
#>   9  0.4094698 0.3438934 0.3622692 0.3379448 0.4028386 0.4165654 0.4069410
#>   10 0.3892493 0.4114412 0.3783764 0.3095359 0.4339622 0.4382425 0.3906605
#>   11 0.3538602 0.4473259 0.3859049 0.3753347 0.5101364 0.5119175 0.4933236
#>   12 0.3661379 0.3917481 0.2833165 0.2928500 0.4046339 0.4516803 0.4455558
#>   13 0.5036775 0.4513295 0.3185450 0.3205773 0.4373184 0.5475157 0.6201365
#>   14 0.5891324 0.6572365 0.4484887 0.3910378 0.4834394 0.6388684 0.7331902
#>   15 0.5261538 0.5892759 0.5663759 0.6048223 0.7531332 1.0086894 0.9741384
#>   16 0.5515066 0.6139002 0.6379399 0.6555209 0.8692424 1.1787026 1.0244348
#>   17 0.3922167 0.4609891 0.4774138 0.5442863 0.6543021 0.9151845 1.0453040
#>   18 0.3508223 0.4321495 0.5048376 0.4940468 0.5885657 0.8216577 1.0463172
#>   19 0.2909914 0.3711421 0.3725067 0.3971822 0.4676701 0.5188894 0.5644760
#>   20 0.3365498 0.3556857 0.4066719 0.4670631 0.5160146 0.5840014 0.5802588
#>     year
#> age         57        58        59        60        61        62        63
#>   1  0.6911453 0.5744697 0.6077918 0.5399013 0.4289813 0.6122493 0.4966583
#>   2  0.6969602 0.5392307 0.5704372 0.4714576 0.4686581 0.7307081 0.6640843
#>   3  0.6077563 0.4350644 0.4617211 0.3628976 0.4053075 0.6172388 0.5961551
#>   4  0.6089408 0.4329840 0.3340472 0.2645635 0.3320342 0.4647546 0.4747423
#>   5  0.5974700 0.3858596 0.3023130 0.2600634 0.3158405 0.5056183 0.6092786
#>   6  0.5049681 0.3430091 0.2336113 0.2551177 0.3066490 0.4764771 0.6706496
#>   7  0.5026029 0.3003472 0.2122201 0.2563328 0.2621149 0.4002287 0.5719152
#>   8  0.6032955 0.4236374 0.2949748 0.3346435 0.3539882 0.4631491 0.6824408
#>   9  0.4892265 0.3695824 0.2474419 0.2772523 0.2715383 0.3542351 0.4688429
#>   10 0.5443493 0.4333919 0.3426873 0.3336932 0.3080809 0.3974768 0.4471711
#>   11 0.5970497 0.4115344 0.3006981 0.2747036 0.2615659 0.3445681 0.3619796
#>   12 0.5381689 0.3951682 0.3175833 0.3163001 0.2661716 0.2950997 0.3244842
#>   13 0.6895774 0.5405866 0.4060577 0.4482944 0.3471625 0.4324756 0.4891383
#>   14 0.7291988 0.4766474 0.3282124 0.3210382 0.2391905 0.3174131 0.3757812
#>   15 0.6853075 0.5366978 0.3578815 0.3482911 0.2803615 0.3564821 0.4551601
#>   16 0.7884266 0.6828576 0.4044188 0.4318567 0.3155406 0.3963289 0.4769259
#>   17 0.7208120 0.6329730 0.3767314 0.3985727 0.3089271 0.3386168 0.3836436
#>   18 0.6620608 0.6002439 0.3258701 0.2938918 0.2062204 0.2509096 0.2700235
#>   19 0.3578706 0.2600946 0.1854252 0.1869149 0.1374670 0.1809155 0.1914282
#>   20 0.3987251 0.3127252 0.2105203 0.1926342 0.1772178 0.2372494 0.2498121
#>     year
#> age         64        65        66        67        68        69        70
#>   1  0.3592293 0.2819173 0.2337983 0.2199535 0.1895827 0.2639086 0.3749744
#>   2  0.4236845 0.3385255 0.3293986 0.3190211 0.2621560 0.2989189 0.3572061
#>   3  0.3823444 0.2444435 0.2514675 0.2538135 0.2213367 0.2674613 0.3496677
#>   4  0.3086293 0.2476269 0.2273197 0.2253639 0.1997908 0.2033341 0.3198322
#>   5  0.4056970 0.3102501 0.2360930 0.2662387 0.2333871 0.2487931 0.3430466
#>   6  0.3822206 0.3140230 0.2229714 0.2333107 0.2149525 0.2716526 0.3925627
#>   7  0.3061839 0.2461717 0.1853492 0.1944173 0.1974510 0.2244936 0.3143671
#>   8  0.3611985 0.2693719 0.2039301 0.1812716 0.1646468 0.2042771 0.2613552
#>   9  0.2634119 0.1928464 0.1429680 0.1488904 0.1648212 0.2411591 0.2590549
#>   10 0.3350063 0.2634672 0.2130678 0.2207081 0.2371623 0.3011019 0.3369917
#>   11 0.2806519 0.2003241 0.1627675 0.2004581 0.2214331 0.3177178 0.2788204
#>   12 0.2793080 0.2429547 0.1976538 0.2180818 0.2638699 0.3555313 0.3349508
#>   13 0.4476146 0.3373384 0.2607193 0.2485581 0.3584721 0.4897210 0.5178781
#>   14 0.3575720 0.3262088 0.2178961 0.2285586 0.3644393 0.5558177 0.5861100
#>   15 0.4907084 0.4189360 0.2357218 0.2610771 0.4422046 0.7062355 0.7337475
#>   16 0.5209189 0.4638842 0.3177200 0.2791100 0.4776698 0.6632035 0.6402329
#>   17 0.4501268 0.4615702 0.3112335 0.3088939 0.5032276 0.6387656 0.6656553
#>   18 0.3200318 0.3042507 0.1977529 0.2165645 0.3560502 0.4366632 0.5150319
#>   19 0.1984618 0.2243428 0.1612065 0.1487702 0.2447248 0.3566350 0.3827079
#>   20 0.2455209 0.2668279 0.2180722 0.1765779 0.2723676 0.3881583 0.4168584
#>     year
#> age         71        72        73        74        75        76        77
#>   1  0.3104326 0.2198442 0.2295509 0.3092386 0.3675777 0.3732385 0.3362293
#>   2  0.3229256 0.2493816 0.2321365 0.2666943 0.3174337 0.3575527 0.3285779
#>   3  0.3088461 0.2734018 0.2570692 0.3327672 0.3706843 0.4021137 0.4480505
#>   4  0.3113041 0.3086485 0.2920049 0.4347102 0.5008844 0.5437912 0.5546336
#>   5  0.3380542 0.3268533 0.3188059 0.4747558 0.5833034 0.6130126 0.6029356
#>   6  0.3383059 0.3302536 0.3695490 0.4832824 0.5309349 0.4461312 0.3831199
#>   7  0.2506858 0.1982047 0.2440264 0.3058531 0.3495615 0.3302453 0.2958566
#>   8  0.2100872 0.1334961 0.1681776 0.1932209 0.2254083 0.2168723 0.1507516
#>   9  0.2038040 0.1408151 0.1777669 0.1637017 0.1923719 0.1871938 0.1367503
#>   10 0.2592694 0.1928927 0.2176964 0.2152851 0.2649065 0.2441966 0.1898906
#>   11 0.2263882 0.1680844 0.2197132 0.2141155 0.2357803 0.2341935 0.2099962
#>   12 0.2906882 0.2138221 0.2391702 0.2438007 0.2655268 0.2671079 0.2232090
#>   13 0.4496390 0.3083907 0.3359930 0.3958865 0.3723156 0.4018139 0.4155240
#>   14 0.5269088 0.4523971 0.4850244 0.5562909 0.4174705 0.4431255 0.4112823
#>   15 0.6950429 0.5650254 0.6028747 0.6584829 0.3882189 0.3541784 0.3237970
#>   16 0.5906155 0.4924423 0.4295126 0.4718085 0.2873718 0.3114715 0.2890548
#>   17 0.6823519 0.5939497 0.5776361 0.6298732 0.2861783 0.3256253 0.3123916
#>   18 0.4647175 0.4248257 0.4696062 0.4838841 0.2286369 0.2577992 0.2102166
#>   19 0.3572202 0.3217943 0.3666672 0.3677356 0.2137716 0.2575890 0.2369763
#>   20 0.3849930 0.4270337 0.4952913 0.4606249 0.3185734 0.4046529 0.3461560
#>     year
#> age         78        79        80        81        82        83        84
#>   1  0.2944523 0.3536035 0.2185715 0.2569755 0.2546114 0.1523236 0.1115982
#>   2  0.3082324 0.3801878 0.2421477 0.2584267 0.2656527 0.1530975 0.1062957
#>   3  0.3634017 0.4770299 0.3739726 0.3896432 0.3758299 0.2169155 0.1655482
#>   4  0.4068493 0.5411000 0.4099478 0.3762904 0.3067899 0.1622315 0.1437522
#>   5  0.4135247 0.5280665 0.4434719 0.3983993 0.3471174 0.1956470 0.1736611
#>   6  0.2856991 0.3341804 0.3555174 0.2590971 0.2352602 0.1367499 0.1424806
#>   7  0.2741939 0.3093396 0.3848969 0.3008785 0.2957386 0.1875203 0.1963840
#>   8  0.1538169 0.2359623 0.2705242 0.2279672 0.2659061 0.1771215 0.1503439
#>   9  0.1273823 0.1720857 0.1786927 0.1570096 0.1957308 0.1586262 0.1164272
#>   10 0.1672117 0.2059281 0.2088676 0.1630947 0.1885284 0.1720246 0.1478998
#>   11 0.1502970 0.1666232 0.2029975 0.1606502 0.2091143 0.2078312 0.1996957
#>   12 0.1481165 0.1521753 0.1963378 0.1682730 0.2246458 0.2244070 0.2440094
#>   13 0.2561943 0.2505128 0.2982171 0.2340877 0.3072737 0.3016334 0.3137826
#>   14 0.2369351 0.2771541 0.3586738 0.2558243 0.3671709 0.3298037 0.3127640
#>   15 0.1630386 0.1941200 0.2690647 0.1731548 0.2750536 0.2679836 0.2420384
#>   16 0.1658932 0.2169466 0.3258494 0.2355764 0.2978818 0.2762889 0.2562944
#>   17 0.1738627 0.2160231 0.3740321 0.2801147 0.3317903 0.3303169 0.3189631
#>   18 0.1153608 0.1613601 0.2393249 0.1829914 0.1956845 0.2169190 0.2270530
#>   19 0.1492311 0.1924029 0.2667202 0.2220485 0.2562980 0.2283821 0.2338300
#>   20 0.2339556 0.3171604 0.4232090 0.3623516 0.4542156 0.3514481 0.3991083
#>     year
#> age         85         86         87        88        89        90        91
#>   1  0.1150125 0.09544863 0.09295771 0.1017458 0.1348308 0.1783884 0.2571780
#>   2  0.1089931 0.10915740 0.10966474 0.1191126 0.1543761 0.1667738 0.2169995
#>   3  0.1579811 0.18028194 0.20318418 0.1922128 0.2296162 0.2488918 0.3331716
#>   4  0.1423590 0.17034439 0.16617534 0.1533364 0.2519578 0.2819276 0.3805013
#>   5  0.1910511 0.23147074 0.23051675 0.2571739 0.4144261 0.4511692 0.5322475
#>   6  0.1894325 0.23729778 0.23992760 0.2926883 0.4296370 0.5792894 0.6691646
#>   7  0.2560771 0.31586853 0.29958434 0.3366403 0.4095124 0.5033423 0.5465812
#>   8  0.1772066 0.23457270 0.24942404 0.2667536 0.3918014 0.4863371 0.5146695
#>   9  0.1479552 0.20600962 0.23775596 0.2667905 0.3825443 0.4582752 0.5544020
#>   10 0.1773936 0.27400231 0.34546425 0.3264432 0.4961908 0.4447664 0.4859595
#>   11 0.2987594 0.37683434 0.41932731 0.3361140 0.4420710 0.4007311 0.4756961
#>   12 0.3171222 0.34352599 0.35301252 0.2955997 0.4609546 0.4690974 0.5037870
#>   13 0.4061947 0.39977721 0.37061717 0.3579252 0.5160709 0.4493017 0.4629064
#>   14 0.3617857 0.35487543 0.32889854 0.3721857 0.5190728 0.3660089 0.4395911
#>   15 0.2712796 0.26320936 0.25026155 0.2709515 0.3746182 0.2701804 0.2839443
#>   16 0.2680943 0.25124603 0.21587758 0.2325846 0.3232933 0.2606797 0.2764809
#>   17 0.3379173 0.31136584 0.27550079 0.2557006 0.3257944 0.2441343 0.2831986
#>   18 0.2515014 0.25754153 0.22063521 0.2280900 0.2519848 0.2215831 0.2467367
#>   19 0.2348635 0.25215976 0.24918544 0.2836633 0.3185245 0.2728762 0.2923621
#>   20 0.3035102 0.37010440 0.33836283 0.3733673 0.3636921 0.2778307 0.2720887
#>     year
#> age         92        93        94        95        96        97        98
#>   1  0.3500785 0.3912119 0.3371310 0.2533324 0.1838364 0.2482422 0.2830624
#>   2  0.3140288 0.3877371 0.3109971 0.2754787 0.1824071 0.2577353 0.3382613
#>   3  0.4867354 0.5663066 0.4441289 0.3330453 0.2197501 0.2613014 0.2885040
#>   4  0.5305376 0.6394236 0.5265320 0.4831103 0.2755416 0.3526258 0.3715642
#>   5  0.7782803 0.8564119 0.6020002 0.6227196 0.3915703 0.5116710 0.4967534
#>   6  0.8850816 1.0814886 0.6721820 0.7475360 0.4218332 0.5507823 0.6120019
#>   7  0.6807427 0.7797362 0.5013558 0.4931920 0.3311575 0.4683716 0.4551147
#>   8  0.6185492 0.7844591 0.7576442 0.5554704 0.3657668 0.4317973 0.3947792
#>   9  0.6203559 0.8001773 0.6630900 0.4716141 0.2797617 0.3148146 0.2673386
#>   10 0.5656055 0.7408378 0.6035195 0.4218741 0.2430185 0.2857911 0.2791171
#>   11 0.6641974 0.7789899 0.6802096 0.4615452 0.2398408 0.2869490 0.2644127
#>   12 0.7851140 0.9717512 0.8050582 0.4927589 0.2642583 0.3035400 0.2871609
#>   13 0.6013202 0.7743871 0.6972801 0.5113254 0.3307515 0.3898492 0.4850398
#>   14 0.5109100 0.6956760 0.7855768 0.6458484 0.4602211 0.5041400 0.6035158
#>   15 0.3531756 0.4249471 0.5273758 0.4327643 0.3477042 0.3450775 0.4902616
#>   16 0.3235189 0.3742997 0.4724589 0.4049117 0.3540581 0.3646639 0.4742145
#>   17 0.3297805 0.3091823 0.3844473 0.3545041 0.3465454 0.3791468 0.4474237
#>   18 0.2881880 0.3144741 0.3477040 0.2846191 0.3058354 0.3844436 0.3767684
#>   19 0.3104327 0.3989878 0.4758431 0.3278383 0.3297325 0.3898685 0.4150593
#>   20 0.2681214 0.3977699 0.5182677 0.3622576 0.3749866 0.4638202 0.4805854
#>     year
#> age         99       100
#>   1  0.3213550 0.4270198
#>   2  0.4704090 0.5541222
#>   3  0.3460150 0.4038747
#>   4  0.3863365 0.4913243
#>   5  0.6461321 0.8485991
#>   6  0.8657952 0.9961565
#>   7  0.6117729 0.6726445
#>   8  0.5445287 0.6454928
#>   9  0.3815791 0.4499536
#>   10 0.2983940 0.3223417
#>   11 0.3189658 0.3320689
#>   12 0.3301350 0.3287060
#>   13 0.4804822 0.4428496
#>   14 0.5436761 0.4871974
#>   15 0.4690995 0.3933610
#>   16 0.4117025 0.3846823
#>   17 0.3787413 0.4045504
#>   18 0.3623802 0.3489912
#>   19 0.3667322 0.3734500
#>   20 0.4154296 0.5722510
sim_abundance(Z = sim_Z(log_mean = log(0.5), log_sd = 0.1, plot = TRUE))

#> $ages
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
#> 
#> $lengths
#>  [1]   1   4   7  10  13  16  19  22  25  28  31  34  37  40  43  46  49  52  55
#> [20]  58  61  64  67  70  73  76  79  82  85  88  91  94  97 100 103 106 109 112
#> [39] 115 118 121 124 127 130 133 136 139 142 145 148 151 154 157 160 163 166 169
#> [58] 172 175 178 181 184 187 190 193 196 199 202 205 208 211 214 217 220 223 226
#> [77] 229 232 235 238
#> 
#> $years
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
#> 
#> $R
#>          1          2          3          4          5          6          7 
#> 18952249.7 10612096.4  5996256.2  4828954.4  2006819.1  1438393.9   834731.5 
#>          8          9         10         11         12         13         14 
#>  1253357.0  3582909.1  3927590.0  5619541.5  4210916.7  2123033.5  3353011.6 
#>         15         16         17         18         19         20 
#>  3689773.3  8211660.5  3719173.1  2298016.7  2803152.0  1772154.9 
#> 
#> $N0
#>  [1] 18952249.688 11148528.473  6872141.311  4288167.289  2416536.717
#>  [6]  1460776.168   848378.233   508854.013   294075.097   178899.834
#> [11]   120591.681    79202.063    53754.623    39972.054    29961.043
#> [16]    20750.866    14360.964    10503.143     7801.343     5320.158
#> 
#> $Z
#>     year
#> age          1         2         3         4         5         6         7
#>   1  0.5306151 0.4336797 0.3796888 0.5998676 0.8303568 0.5181386 0.5167172
#>   2  0.4838318 0.4037536 0.3699216 0.5035085 0.7047236 0.4404034 0.4643066
#>   3  0.4716163 0.4620573 0.3362514 0.4774514 0.8107588 0.5079503 0.4774855
#>   4  0.5735240 0.5787376 0.4167831 0.4648865 0.7313401 0.4300319 0.4263936
#>   5  0.5033675 0.5342560 0.4149782 0.4165148 0.6025071 0.4800621 0.5003451
#>   6  0.5433966 0.5409577 0.3702743 0.3804536 0.5278560 0.4569759 0.4717786
#>   7  0.5111654 0.5332475 0.3236015 0.4150858 0.5717589 0.4562567 0.4718323
#>   8  0.5483260 0.5045251 0.2947461 0.5250283 0.6494142 0.5427778 0.5275648
#>   9  0.4970091 0.4004338 0.2900594 0.5146182 0.5922953 0.5423348 0.5259981
#>   10 0.3944158 0.3696252 0.2986380 0.5195519 0.5754128 0.5243137 0.5472126
#>   11 0.4204080 0.4231242 0.3349837 0.5771269 0.6593598 0.5615790 0.4767722
#>   12 0.3875727 0.4206952 0.3431501 0.5678508 0.6618265 0.5072610 0.4019968
#>   13 0.2962491 0.3161313 0.2821302 0.4181726 0.5855917 0.5571276 0.3968495
#>   14 0.2882826 0.3220712 0.2950894 0.4134421 0.5572875 0.5526171 0.3841819
#>   15 0.3673100 0.3411170 0.3344566 0.4351325 0.5044701 0.4520022 0.3490997
#>   16 0.3680743 0.3113906 0.3630496 0.4566112 0.5572458 0.5396214 0.4421168
#>   17 0.3128392 0.2934942 0.4090813 0.4694343 0.5317164 0.6851860 0.5026829
#>   18 0.2973786 0.3236666 0.4162972 0.4273114 0.4936904 0.7555669 0.5867858
#>   19 0.3827928 0.3998848 0.5216927 0.3737574 0.5521521 0.8477074 0.5338315
#>   20 0.4061144 0.3923283 0.5263835 0.3913087 0.5789238 0.8313483 0.5490234
#>     year
#> age          8         9        10        11        12        13        14
#>   1  0.2197602 0.2773737 0.3096556 0.3783646 0.4328611 0.3824796 0.4045964
#>   2  0.2378527 0.2544394 0.3102907 0.4269129 0.4166749 0.4018602 0.3467750
#>   3  0.2756368 0.2957761 0.3772995 0.5336207 0.4832961 0.4314365 0.4685962
#>   4  0.2809384 0.3515158 0.4174541 0.6654565 0.5306583 0.4286095 0.4119239
#>   5  0.3313189 0.3989780 0.4612765 0.5835051 0.4619578 0.3951409 0.3698155
#>   6  0.2877760 0.3473755 0.4140214 0.6003560 0.5449212 0.3687367 0.3609221
#>   7  0.2846573 0.3570785 0.4079737 0.4447915 0.4218805 0.3466656 0.3493339
#>   8  0.3022461 0.3738097 0.4598132 0.3999390 0.3920480 0.4291130 0.3550185
#>   9  0.3408289 0.3924415 0.5204190 0.3915083 0.3817587 0.3696279 0.3726576
#>   10 0.3294738 0.3679418 0.5541889 0.3649433 0.4189484 0.4134910 0.4030338
#>   11 0.2974165 0.3200060 0.4712074 0.2913080 0.4017613 0.3820629 0.4129606
#>   12 0.3405115 0.4105866 0.4472750 0.2929812 0.3518675 0.4042779 0.4149815
#>   13 0.3155370 0.3658238 0.4188163 0.2860900 0.3541181 0.3242542 0.3628142
#>   14 0.3370877 0.3196502 0.4690910 0.3338740 0.3613901 0.3343969 0.4414534
#>   15 0.2802847 0.3137734 0.5121390 0.3636264 0.3433208 0.2930007 0.3445746
#>   16 0.2937865 0.3486043 0.4433051 0.3275778 0.3208615 0.2948216 0.3862837
#>   17 0.3415666 0.4295814 0.4434081 0.3020464 0.3190591 0.3299426 0.3886125
#>   18 0.3323286 0.4495641 0.4557857 0.3501499 0.3919666 0.3550334 0.4433622
#>   19 0.3243754 0.4077593 0.4490863 0.4021836 0.3929064 0.3558480 0.4243193
#>   20 0.3002289 0.3544608 0.4526216 0.3838507 0.3460991 0.3377824 0.4616527
#>     year
#> age         15        16        17        18        19        20
#>   1  0.5149735 0.5783485 0.3490419 0.3590558 0.3499625 0.3132340
#>   2  0.5052952 0.6534669 0.4328916 0.4847255 0.4267500 0.3924791
#>   3  0.7226010 0.6579899 0.5243016 0.5237629 0.4393321 0.3950711
#>   4  0.7939020 0.7778403 0.6155135 0.5481702 0.4515306 0.3398277
#>   5  0.8166807 0.7401212 0.5577717 0.5325461 0.5636974 0.3939336
#>   6  0.5870884 0.6019510 0.5579456 0.6606848 0.5873611 0.4166970
#>   7  0.5109209 0.5635833 0.5188943 0.5778178 0.6125575 0.4084682
#>   8  0.4606459 0.4425526 0.4274577 0.5220473 0.6607877 0.4720704
#>   9  0.4932773 0.5294812 0.4353659 0.5957663 0.8037824 0.5096675
#>   10 0.4949563 0.4429815 0.4803537 0.5572365 0.7664463 0.5799329
#>   11 0.4781762 0.3968575 0.4873766 0.4877999 0.7542501 0.6066037
#>   12 0.4464008 0.4120636 0.4934198 0.5872975 0.7989065 0.6632562
#>   13 0.3764400 0.3364649 0.4262982 0.4808942 0.6487769 0.6440599
#>   14 0.4071630 0.3791509 0.4650016 0.5173337 0.7158577 0.6781419
#>   15 0.3455881 0.3699930 0.4012025 0.5687304 0.6210659 0.6588245
#>   16 0.4239809 0.3969392 0.3855514 0.5695073 0.6017854 0.6617015
#>   17 0.4363529 0.3856654 0.3849851 0.6180989 0.5984872 0.6214989
#>   18 0.4905524 0.4757207 0.4830877 0.6087001 0.7399387 0.7077484
#>   19 0.5331136 0.4930515 0.4314895 0.5388671 0.6546686 0.6952971
#>   20 0.5579600 0.4639678 0.3722209 0.5010830 0.5357118 0.6374221
#> 
#> $N
#>     year
#> age             1            2           3           4           5           6
#>   1  18952249.688 10612096.436 5996256.187 4828954.443 2006819.067 1438393.883
#>   2  11148528.473 11148528.473 6877910.113 4101884.331 2650537.421  874759.839
#>   3   6872141.311  6872141.311 7445083.953 4751180.947 2479204.971 1310015.273
#>   4   4288167.289  4288167.289 4329354.666 5319091.697 2947454.188 1102057.822
#>   5   2416536.717  2416536.717 2403970.762 2853754.219 3341487.497 1418502.491
#>   6   1460776.168  1460776.168 1416344.711 1587473.370 1881596.388 1829255.410
#>   7    848378.233   848378.233  850449.859  978049.566 1085119.426 1109894.038
#>   8    508854.013   508854.013  497740.590  615333.215  645790.123  612584.227
#>   9    294075.097   294075.097  307242.110  370677.699  363993.369  337329.544
#>   10   178899.834   178899.834  197038.936  229884.433  221564.733  201308.860
#>   11   120591.681   120591.681  123618.581  146168.974  136732.274  124624.094
#>   12    79202.063    79202.063   78987.226   88430.524   82075.242   70715.516
#>   13    53754.623    53754.623   52003.299   56043.942   50117.308   42343.287
#>   14    39972.054    39972.054   39185.169   39219.612   36890.848   27904.131
#>   15    29961.043    29961.043   28965.612   29171.988   25938.668   21129.624
#>   16    20750.866    20750.866   21301.575   20731.468   18879.496   15662.428
#>   17    14360.964    14360.964   15198.509   14816.352   13131.863   10813.883
#>   18    10503.143    10503.143   10708.303   10095.765    9265.494    7716.224
#>   19     7801.343     7801.343    7598.933    7061.957    6585.068    5655.377
#>   20     5320.158     5320.158    5229.999    4510.081    4859.643    3791.086
#>     year
#> age            7           8           9          10          11          12
#>   1   834731.537 1253356.970 3582909.098 3927590.033 5619541.528 4210916.669
#>   2   856747.984  497896.854 1006083.779 2715025.660 2881671.276 3849277.370
#>   3   563149.965  538526.770  392501.468  780068.077 1990748.496 1880349.202
#>   4   788272.423  349345.158  408789.532  292003.028  534901.016 1167529.490
#>   5   716875.746  514631.004  263781.733  287632.797  192348.742  274959.883
#>   6   877691.304  434657.107  369492.783  176998.977  181346.241  107318.924
#>   7  1158276.523  547584.265  325962.213  261061.424  116993.986   99489.502
#>   8   703285.656  722600.225  411932.319  228081.494  173604.901   74988.219
#>   9   355992.134  414966.748  534114.382  283453.852  144011.019  116377.943
#>   10  196119.767  210378.981  295116.301  360743.974  168448.542   97356.696
#>   11  119167.092  113467.101  151326.048  204266.955  207261.144  116943.043
#>   12   71074.098   73977.017   84275.945  109884.606  127513.252  154883.250
#>   13   42580.824   47547.356   52627.717   55896.953   70256.705   95129.501
#>   14   24256.443   28632.847   34680.902   36503.901   36770.415   52776.486
#>   15   16057.204   16518.821   20439.450   25192.313   22835.770   26332.913
#>   16   13445.895   11325.512   12481.103   14934.791   15095.549   15874.306
#>   17    9130.709    8641.334    8442.440    8807.569    9586.812   10878.868
#>   18    5450.159    5523.217    6141.017    5494.183    5653.096    7087.566
#>   19    3624.652    3030.898    3961.537    3917.393    3483.036    3983.072
#>   20    2422.740    2125.329    2191.275    2634.972    2500.123    2329.656
#>     year
#> age           13          14          15          16          17          18
#>   1  2123033.472 3353011.559 3689773.335 8211660.525 3719173.149 2298016.661
#>   2  2731413.472 1448265.019 2237283.843 2204700.113 4605294.692 2623369.162
#>   3  2537579.134 1827518.534 1023871.789 1349814.717 1146971.015 2987135.879
#>   4  1159700.083 1648348.771 1143807.815  497077.309  699057.321  678970.862
#>   5   686761.424  755445.161 1091824.494  517089.591  228355.882  377744.953
#>   6   173238.177  462592.272  521908.195  482472.874  246680.751  130729.927
#>   7    62232.898  119812.822  322442.209  290151.531  264270.641  141196.049
#>   8    65246.453   44001.258   84486.925  193446.888  165144.367  157288.147
#>   9    50667.416   42481.076   30851.941   53300.775  124269.228  107701.378
#>   10   79446.539   35010.749   29265.259   18838.871   31389.381   80405.658
#>   11   64035.212   52540.972   23397.316   17840.029   12096.799   19416.360
#>   12   78251.318   43700.965   34765.750   14504.299   11996.168    7430.286
#>   13  108940.742   52229.517   28858.041   22247.550    9605.938    7324.080
#>   14   66761.132   78771.389   36336.893   19805.283   15891.223    6271.925
#>   15   36769.755   47785.590   50657.961   24183.499   13555.573    9981.819
#>   16   18680.848   27431.032   33857.128   35855.907   16704.490    9075.652
#>   17   11517.185   13910.963   18641.518   22157.336   24108.613   11360.316
#>   18    7907.116    8280.453    9431.590   12049.682   15066.945   16404.966
#>   19    4789.258    5544.075    5315.013    5774.850    7488.119    9294.432
#>   20    2688.940    3355.254    3627.017    3118.718    3527.046    4863.839
#>     year
#> age           19          20
#>   1  2803151.965 1772154.858
#>   2  1604786.325 1975421.920
#>   3  1615644.500 1047326.402
#>   4  1769243.704 1041229.125
#>   5   392449.573 1126394.219
#>   6   221777.161  223343.427
#>   7    67521.682  123261.977
#>   8    79228.143   36594.254
#>   9    93319.782   40916.927
#>   10   59358.547   41772.981
#>   11   46055.538   27581.627
#>   12   11921.173   21662.830
#>   13    4129.956    5362.389
#>   14    4527.968    2158.665
#>   15    3738.743    2213.147
#>   16    5652.144    2009.094
#>   17    5135.042    3096.429
#>   18    6122.848    2822.437
#>   19    8925.247    2921.475
#>   20    5422.454    4637.685
#> 
#> $N_at_length
#>       year
#> length            1            2            3            4            5
#>    1   1.151504e-55 6.447715e-56 3.643215e-56 2.933984e-56 1.219306e-56
#>    4   1.392734e-15 7.798455e-16 4.406437e-16 3.548628e-16 1.474741e-16
#>    7   1.019045e-01 5.706024e-02 3.224131e-02 2.596483e-02 1.079048e-02
#>    10  4.254021e+04 2.381991e+04 1.345920e+04 1.083907e+04 4.504506e+03
#>    13  5.091371e+06 2.850855e+06 1.610846e+06 1.297260e+06 5.391160e+05
#>    16  1.168693e+07 6.544694e+06 3.698098e+06 2.977969e+06 1.237726e+06
#>    19  2.286786e+06 1.372614e+06 7.864493e+05 6.063557e+05 2.697567e+05
#>    22  2.401761e+06 2.377435e+06 1.465437e+06 8.776506e+05 5.638091e+05
#>    25  4.938044e+06 4.937865e+06 3.063799e+06 1.828931e+06 1.178566e+06
#>    28  3.367155e+06 3.367154e+06 2.279871e+06 1.379775e+06 8.542067e+05
#>    31  2.265260e+06 2.265260e+06 2.136727e+06 1.356712e+06 7.396871e+05
#>    34  2.529799e+06 2.529799e+06 2.694073e+06 1.807784e+06 9.536086e+05
#>    37  2.226617e+06 2.226617e+06 2.367711e+06 1.850095e+06 9.976950e+05
#>    40  1.798406e+06 1.798406e+06 1.863844e+06 1.858094e+06 1.070079e+06
#>    43  1.570459e+06 1.570459e+06 1.594216e+06 1.837510e+06 1.196276e+06
#>    46  1.338487e+06 1.338487e+06 1.344776e+06 1.608262e+06 1.259330e+06
#>    49  1.103958e+06 1.103958e+06 1.100908e+06 1.311395e+06 1.242255e+06
#>    52  9.132291e+05 9.132291e+05 9.047186e+05 1.062741e+06 1.141679e+06
#>    55  7.561594e+05 7.561594e+05 7.456712e+05 8.648302e+05 9.811512e+05
#>    58  6.213633e+05 6.213633e+05 6.118839e+05 7.050703e+05 8.084846e+05
#>    61  5.059620e+05 5.059620e+05 4.992384e+05 5.762476e+05 6.534762e+05
#>    64  4.082703e+05 4.082703e+05 4.047499e+05 4.710196e+05 5.230080e+05
#>    67  3.266128e+05 3.266128e+05 3.260097e+05 3.833675e+05 4.151476e+05
#>    70  2.593599e+05 2.593599e+05 2.610905e+05 3.096157e+05 3.267329e+05
#>    73  2.048185e+05 2.048185e+05 2.081006e+05 2.476699e+05 2.549598e+05
#>    76  1.612241e+05 1.612241e+05 1.651478e+05 1.961402e+05 1.973715e+05
#>    79  1.267723e+05 1.267723e+05 1.305034e+05 1.538394e+05 1.517163e+05
#>    82  9.969859e+04 9.969859e+04 1.026913e+05 1.195947e+05 1.159140e+05
#>    85  7.839676e+04 7.839676e+04 8.046562e+04 9.222418e+04 8.809040e+04
#>    88  6.151454e+04 6.151454e+04 6.275421e+04 7.057242e+04 6.660795e+04
#>    91  4.799314e+04 4.799314e+04 4.863243e+04 5.356148e+04 5.007748e+04
#>    94  3.705652e+04 3.705652e+04 3.733348e+04 4.024359e+04 3.736122e+04
#>    97  2.816832e+04 2.816832e+04 2.826379e+04 2.983891e+04 2.756800e+04
#>    100 2.097131e+04 2.097131e+04 2.099484e+04 2.174295e+04 2.003106e+04
#>    103 1.522181e+04 1.522181e+04 1.522643e+04 1.550203e+04 1.426522e+04
#>    106 1.073195e+04 1.073195e+04 1.073655e+04 1.077040e+04 9.913654e+03
#>    109 7.329852e+03 7.329852e+03 7.337459e+03 7.268186e+03 6.699116e+03
#>    112 4.841408e+03 4.841408e+03 4.850066e+03 4.752943e+03 4.390412e+03
#>    115 3.089813e+03 3.089813e+03 3.097424e+03 3.007733e+03 2.786105e+03
#>    118 1.905025e+03 1.905025e+03 1.910639e+03 1.840793e+03 1.710663e+03
#>    121 1.135098e+03 1.135098e+03 1.138723e+03 1.089654e+03 1.016187e+03
#>    124 6.541190e+02 6.541190e+02 6.562137e+02 6.242082e+02 5.842728e+02
#>    127 3.649381e+02 3.649381e+02 3.660317e+02 3.463507e+02 3.254193e+02
#>    130 1.973558e+02 1.973558e+02 1.978709e+02 1.863539e+02 1.757595e+02
#>    133 1.035928e+02 1.035928e+02 1.038081e+02 9.735338e+01 9.216720e+01
#>    136 5.285255e+01 5.285255e+01 5.292862e+01 4.944752e+01 4.698850e+01
#>    139 2.624697e+01 2.624697e+01 2.626591e+01 2.445267e+01 2.332175e+01
#>    142 1.270538e+01 1.270538e+01 1.270478e+01 1.178978e+01 1.128462e+01
#>    145 6.003437e+00 6.003437e+00 5.998358e+00 5.549896e+00 5.330479e+00
#>    148 2.772739e+00 2.772739e+00 2.768146e+00 2.554175e+00 2.461402e+00
#>    151 1.253395e+00 1.253395e+00 1.250304e+00 1.150723e+00 1.112506e+00
#>    154 5.552477e-01 5.552477e-01 5.534359e-01 5.081490e-01 4.928000e-01
#>    157 2.413417e-01 2.413417e-01 2.403665e-01 2.202083e-01 2.141953e-01
#>    160 1.030449e-01 1.030449e-01 1.025509e-01 9.375534e-02 9.145728e-02
#>    163 4.326593e-02 4.326593e-02 4.302718e-02 3.926008e-02 3.840343e-02
#>    166 1.788313e-02 1.788313e-02 1.777205e-02 1.618630e-02 1.587505e-02
#>    169 7.283624e-03 7.283624e-03 7.233570e-03 6.576731e-03 6.466661e-03
#>    172 2.925926e-03 2.925926e-03 2.903982e-03 2.635970e-03 2.598175e-03
#>    175 1.160310e-03 1.160310e-03 1.150917e-03 1.043082e-03 1.030533e-03
#>    178 4.546125e-04 4.546125e-04 4.506768e-04 4.078519e-04 4.038504e-04
#>    181 1.761193e-04 1.761193e-04 1.745011e-04 1.576998e-04 1.564894e-04
#>    184 6.751387e-05 6.751387e-05 6.685974e-05 6.034253e-05 6.000340e-05
#>    187 2.562736e-05 2.562736e-05 2.536698e-05 2.286555e-05 2.278228e-05
#>    190 9.638870e-06 9.638870e-06 9.536663e-06 8.585970e-06 8.571057e-06
#>    193 3.594420e-06 3.594420e-06 3.554808e-06 3.196782e-06 3.197096e-06
#>    196 1.329760e-06 1.329760e-06 1.314584e-06 1.180900e-06 1.183102e-06
#>    199 4.883034e-07 4.883034e-07 4.825511e-07 4.330273e-07 4.345729e-07
#>    202 1.780806e-07 1.780806e-07 1.759212e-07 1.577098e-07 1.585317e-07
#>    205 6.452283e-08 6.452283e-08 6.371951e-08 5.706801e-08 5.745649e-08
#>    208 2.324293e-08 2.324293e-08 2.294651e-08 2.053256e-08 2.070364e-08
#>    211 8.330339e-09 8.330339e-09 8.221663e-09 7.350738e-09 7.422545e-09
#>    214 2.969241e-09 2.969241e-09 2.929821e-09 2.617185e-09 2.646453e-09
#>    217 1.053499e-09 1.053499e-09 1.039138e-09 9.276434e-10 9.391949e-10
#>    220 3.723629e-10 3.723629e-10 3.672448e-10 3.275192e-10 3.320707e-10
#>    223 1.306899e-10 1.306899e-10 1.288210e-10 1.147417e-10 1.165532e-10
#>    226 4.556986e-11 4.556986e-11 4.493610e-11 4.001854e-11 4.067659e-11
#>    229 1.467173e-11 1.467173e-11 1.443446e-11 1.276923e-11 1.312502e-11
#>    232 6.442267e-12 6.442267e-12 6.360042e-12 5.693242e-12 5.728028e-12
#>    235 2.047436e-12 2.047436e-12 2.004944e-12 1.785474e-12 1.810147e-12
#>    238 5.906562e-13 5.906562e-13 5.806465e-13 5.007196e-13 5.395287e-13
#>       year
#> length            6            7            8            9           10
#>    1   8.739418e-57 5.071676e-57 7.615167e-57 2.176910e-56 2.386332e-56
#>    4   1.057025e-16 6.134148e-17 9.210478e-17 2.632954e-16 2.886247e-16
#>    7   7.734109e-03 4.488273e-03 6.739182e-03 1.926497e-02 2.111828e-02
#>    10  3.228619e+03 1.873638e+03 2.813285e+03 8.042197e+03 8.815868e+03
#>    13  3.864130e+05 2.242440e+05 3.367043e+05 9.625199e+05 1.055116e+06
#>    16  8.869920e+05 5.147928e+05 7.728489e+05 2.209243e+06 2.422014e+06
#>    19  1.740952e+05 1.075887e+05 1.467341e+05 4.116241e+05 4.815052e+05
#>    22  1.883876e+05 1.827619e+05 1.084736e+05 2.221826e+05 5.828099e+05
#>    25  3.916605e+05 3.796598e+05 2.218059e+05 4.444266e+05 1.197687e+06
#>    28  3.129708e+05 2.610498e+05 1.650207e+05 2.895019e+05 7.634991e+05
#>    31  3.570033e+05 1.839908e+05 1.547346e+05 1.525095e+05 3.444356e+05
#>    34  4.841436e+05 2.225083e+05 1.962887e+05 1.528230e+05 2.901892e+05
#>    37  4.660103e+05 2.419931e+05 1.777693e+05 1.493162e+05 2.281389e+05
#>    40  4.439425e+05 2.714431e+05 1.545917e+05 1.471371e+05 1.568116e+05
#>    43  4.831855e+05 3.034824e+05 1.615233e+05 1.484456e+05 1.276015e+05
#>    46  5.462476e+05 3.189254e+05 1.815514e+05 1.416442e+05 1.191241e+05
#>    49  6.196834e+05 3.387529e+05 2.020567e+05 1.384832e+05 1.148197e+05
#>    52  6.813265e+05 3.743637e+05 2.187900e+05 1.461324e+05 1.112357e+05
#>    55  7.021196e+05 4.173225e+05 2.357044e+05 1.603913e+05 1.104584e+05
#>    58  6.698576e+05 4.511327e+05 2.574704e+05 1.769256e+05 1.152690e+05
#>    61  5.944364e+05 4.594337e+05 2.805516e+05 1.947077e+05 1.253038e+05
#>    64  4.979455e+05 4.350144e+05 2.949538e+05 2.124402e+05 1.381532e+05
#>    67  4.006157e+05 3.834081e+05 2.918837e+05 2.257103e+05 1.511822e+05
#>    70  3.140359e+05 3.178390e+05 2.693499e+05 2.286235e+05 1.614151e+05
#>    73  2.421929e+05 2.514051e+05 2.323861e+05 2.177341e+05 1.654611e+05
#>    76  1.848314e+05 1.924800e+05 1.892889e+05 1.942342e+05 1.607791e+05
#>    79  1.399944e+05 1.443288e+05 1.474627e+05 1.629601e+05 1.471318e+05
#>    82  1.053724e+05 1.068519e+05 1.113156e+05 1.297086e+05 1.267731e+05
#>    85  7.886142e+04 7.845238e+04 8.231260e+04 9.898741e+04 1.033043e+05
#>    88  5.870168e+04 5.721862e+04 6.005613e+04 7.317625e+04 8.017896e+04
#>    91  4.345463e+04 4.144533e+04 4.337606e+04 5.283824e+04 5.974553e+04
#>    94  3.195671e+04 2.977064e+04 3.101149e+04 3.746756e+04 4.305774e+04
#>    97  2.328970e+04 2.115639e+04 2.189817e+04 2.615094e+04 3.018520e+04
#>    100 1.675671e+04 1.482790e+04 1.522245e+04 1.796068e+04 2.065876e+04
#>    103 1.184764e+04 1.021266e+04 1.038089e+04 1.211487e+04 1.382421e+04
#>    106 8.193456e+03 6.886776e+03 6.922387e+03 8.004119e+03 9.043786e+03
#>    109 5.519838e+03 4.531517e+03 4.501605e+03 5.165745e+03 5.777763e+03
#>    112 3.611246e+03 2.901511e+03 2.848758e+03 3.249197e+03 3.599504e+03
#>    115 2.289609e+03 1.804243e+03 1.751782e+03 1.988365e+03 2.183825e+03
#>    118 1.405264e+03 1.088261e+03 1.045826e+03 1.182537e+03 1.289010e+03
#>    121 8.346552e+02 6.363824e+02 6.059558e+02 6.831241e+02 7.398098e+02
#>    124 4.798779e+02 3.608115e+02 3.407740e+02 3.832890e+02 4.128170e+02
#>    127 2.672631e+02 1.984450e+02 1.860942e+02 2.089476e+02 2.240150e+02
#>    130 1.443349e+02 1.059636e+02 9.875438e+01 1.107396e+02 1.182808e+02
#>    133 7.567472e+01 5.499009e+01 5.097312e+01 5.710672e+01 6.081351e+01
#>    136 3.857001e+01 2.776757e+01 2.561838e+01 2.868270e+01 3.047418e+01
#>    139 1.913665e+01 1.366049e+01 1.255135e+01 1.404672e+01 1.489887e+01
#>    142 9.255605e+00 6.555942e+00 6.001797e+00 6.715081e+00 7.114333e+00
#>    145 4.369860e+00 3.073346e+00 2.804509e+00 3.137332e+00 3.321685e+00
#>    148 2.016706e+00 1.409142e+00 1.282175e+00 1.434221e+00 1.518147e+00
#>    151 9.109637e-01 6.327195e-01 5.742151e-01 6.422830e-01 6.799623e-01
#>    154 4.032664e-01 2.785533e-01 2.522011e-01 2.820907e-01 2.987766e-01
#>    157 1.751627e-01 1.203796e-01 1.087565e-01 1.216427e-01 1.289323e-01
#>    160 7.473966e-02 5.112454e-02 4.609688e-02 5.155652e-02 5.469884e-02
#>    163 3.136156e-02 2.135993e-02 1.922415e-02 2.149951e-02 2.283633e-02
#>    166 1.295488e-02 8.788261e-03 7.896099e-03 8.829739e-03 9.391159e-03
#>    169 5.273354e-03 3.564140e-03 3.197255e-03 3.574778e-03 3.807603e-03
#>    172 2.117207e-03 1.426098e-03 1.277408e-03 1.427971e-03 1.523351e-03
#>    175 8.391610e-04 5.634551e-04 5.040089e-04 5.632827e-04 6.018968e-04
#>    178 3.286204e-04 2.200074e-04 1.965401e-04 2.195932e-04 2.350490e-04
#>    181 1.272483e-04 8.496027e-05 7.580511e-05 8.466943e-05 9.078870e-05
#>    184 4.875731e-05 3.247202e-05 2.893951e-05 3.231185e-05 3.470947e-05
#>    187 1.849957e-05 1.229179e-05 1.094271e-05 1.221295e-05 1.314311e-05
#>    190 6.955107e-06 4.611185e-06 4.100878e-06 4.574901e-06 4.932376e-06
#>    193 2.592595e-06 1.715393e-06 1.524076e-06 1.699438e-06 1.835602e-06
#>    196 9.587740e-07 6.331829e-07 5.620507e-07 6.264037e-07 6.778380e-07
#>    199 3.519463e-07 2.320193e-07 2.057749e-07 2.292126e-07 2.484869e-07
#>    202 1.283083e-07 8.444881e-08 7.483572e-08 8.331262e-08 9.048189e-08
#>    205 4.647395e-08 3.053980e-08 2.704123e-08 3.008640e-08 3.273433e-08
#>    208 1.673602e-08 1.098237e-08 9.717302e-09 1.080496e-08 1.177676e-08
#>    211 5.996388e-09 3.930202e-09 3.475637e-09 3.862570e-09 4.217383e-09
#>    214 2.136842e-09 1.398790e-09 1.235833e-09 1.372347e-09 1.501006e-09
#>    217 7.578773e-10 4.955361e-10 4.377146e-10 4.859222e-10 5.326165e-10
#>    220 2.678369e-10 1.748888e-10 1.543437e-10 1.711720e-10 1.877329e-10
#>    223 9.395242e-11 6.115846e-11 5.393757e-11 5.981121e-11 6.567261e-11
#>    226 3.276379e-11 2.137378e-11 1.883597e-11 2.081759e-11 2.293857e-11
#>    229 1.052338e-11 6.787388e-12 5.970492e-12 6.576832e-12 7.322841e-12
#>    232 4.637789e-12 3.023793e-12 2.701949e-12 3.021110e-12 3.235057e-12
#>    235 1.469663e-12 9.403737e-13 8.084152e-13 9.263797e-13 1.019999e-12
#>    238 4.208951e-13 2.689782e-13 2.359590e-13 2.432804e-13 2.925407e-13
#>       year
#> length           11           12           13           14           15
#>    1   3.414330e-56 2.558476e-56 1.289916e-56 2.037228e-56 2.241839e-56
#>    4   4.129603e-16 3.094454e-16 1.560142e-16 2.464010e-16 2.711484e-16
#>    7   3.021575e-02 2.264170e-02 1.141535e-02 1.802883e-02 1.983956e-02
#>    10  1.261362e+04 9.451822e+03 4.765360e+03 7.526169e+03 8.282064e+03
#>    13  1.509645e+06 1.131229e+06 5.703360e+05 9.007598e+05 9.912282e+05
#>    16  3.465236e+06 2.596872e+06 1.309392e+06 2.067562e+06 2.275314e+06
#>    19  6.700921e+05 5.338665e+05 2.840142e+05 3.947309e+05 4.464642e+05
#>    22  6.229309e+05 8.224078e+05 5.811713e+05 3.146967e+05 4.816178e+05
#>    25  1.277569e+06 1.702235e+06 1.214431e+06 6.465990e+05 9.890276e+05
#>    28  8.837762e+05 1.131459e+06 8.788614e+05 4.965881e+05 6.533522e+05
#>    31  6.321302e+05 6.683450e+05 7.505043e+05 5.123309e+05 3.746257e+05
#>    34  7.053769e+05 6.972783e+05 9.097137e+05 6.803423e+05 3.989047e+05
#>    37  5.502496e+05 6.068099e+05 7.653972e+05 6.580899e+05 4.014680e+05
#>    40  3.314898e+05 4.784280e+05 5.533239e+05 6.064213e+05 4.147509e+05
#>    43  2.135266e+05 3.876298e+05 4.430749e+05 5.653091e+05 4.438273e+05
#>    46  1.514606e+05 2.816309e+05 3.629494e+05 4.740436e+05 4.426879e+05
#>    49  1.129535e+05 1.814889e+05 2.836760e+05 3.706205e+05 4.128681e+05
#>    52  9.292585e+04 1.159897e+05 2.092683e+05 2.885290e+05 3.609723e+05
#>    55  8.435368e+04 8.088142e+04 1.445402e+05 2.226402e+05 2.960346e+05
#>    58  8.131898e+04 6.382978e+04 9.603804e+04 1.652295e+05 2.318626e+05
#>    61  8.188058e+04 5.693633e+04 6.577024e+04 1.166496e+05 1.756970e+05
#>    64  8.565361e+04 5.602575e+04 5.010174e+04 7.979272e+04 1.286097e+05
#>    67  9.175764e+04 5.887528e+04 4.398097e+04 5.555582e+04 9.086844e+04
#>    70  9.854887e+04 6.404997e+04 4.351494e+04 4.213759e+04 6.303163e+04
#>    73  1.040226e+05 7.014966e+04 4.616445e+04 3.647404e+04 4.477812e+04
#>    76  1.062019e+05 7.555496e+04 5.014441e+04 3.561259e+04 3.450984e+04
#>    79  1.036363e+05 7.860026e+04 5.394101e+04 3.719536e+04 2.992185e+04
#>    82  9.595527e+04 7.800544e+04 5.620218e+04 3.939739e+04 2.869302e+04
#>    85  8.405868e+04 7.331630e+04 5.593065e+04 4.082232e+04 2.887106e+04
#>    88  6.974171e+04 6.506698e+04 5.274556e+04 4.054097e+04 2.901096e+04
#>    91  5.500103e+04 5.454464e+04 4.697681e+04 3.818875e+04 2.821975e+04
#>    94  4.143552e+04 4.330069e+04 3.950268e+04 3.397146e+04 2.615282e+04
#>    97  2.997573e+04 3.267826e+04 3.141825e+04 2.851496e+04 2.293415e+04
#>    100 2.092188e+04 2.354620e+04 2.370429e+04 2.261311e+04 1.899324e+04
#>    103 1.414039e+04 1.626709e+04 1.702446e+04 1.698368e+04 1.486435e+04
#>    106 9.277484e+03 1.081541e+04 1.168091e+04 1.211697e+04 1.101506e+04
#>    109 5.917143e+03 6.941360e+03 7.682706e+03 8.238437e+03 7.749550e+03
#>    112 3.670757e+03 4.310551e+03 4.858669e+03 5.355187e+03 5.191531e+03
#>    115 2.215124e+03 2.594525e+03 2.962425e+03 3.338178e+03 3.321651e+03
#>    118 1.300156e+03 1.515539e+03 1.745416e+03 2.001162e+03 2.035817e+03
#>    121 7.421938e+02 8.599542e+02 9.956830e+02 1.156703e+03 1.198619e+03
#>    124 4.121000e+02 4.743837e+02 5.508669e+02 6.461821e+02 6.797424e+02
#>    127 2.226290e+02 2.545986e+02 2.960209e+02 3.496337e+02 3.722330e+02
#>    130 1.170788e+02 1.330421e+02 1.547159e+02 1.835882e+02 1.972893e+02
#>    133 5.997872e+01 6.774674e+01 7.874652e+01 9.371839e+01 1.014257e+02
#>    136 2.995773e+01 3.364670e+01 3.907816e+01 4.658731e+01 5.067760e+01
#>    139 1.460263e+01 1.631426e+01 1.892994e+01 2.258580e+01 2.465543e+01
#>    142 6.953656e+00 7.730364e+00 8.961325e+00 1.069416e+01 1.169994e+01
#>    145 3.238351e+00 3.583375e+00 4.150392e+00 4.952016e+00 5.424021e+00
#>    148 1.476519e+00 1.626684e+00 1.882683e+00 2.245378e+00 2.460200e+00
#>    151 6.598333e-01 7.239234e-01 8.373436e-01 9.981309e-01 1.093280e+00
#>    154 2.893202e-01 3.161665e-01 3.655315e-01 4.354805e-01 4.766108e-01
#>    157 1.246037e-01 1.356500e-01 1.567775e-01 1.866814e-01 2.040762e-01
#>    160 5.276358e-02 5.723207e-02 6.613174e-02 7.870990e-02 8.592252e-02
#>    163 2.198960e-02 2.376814e-02 2.746105e-02 3.267212e-02 3.560968e-02
#>    166 9.027977e-03 9.725054e-03 1.123579e-02 1.336435e-02 1.454144e-02
#>    169 3.654655e-03 3.923901e-03 4.533680e-03 5.391679e-03 5.856395e-03
#>    172 1.460022e-03 1.562587e-03 1.805609e-03 2.147189e-03 2.328193e-03
#>    175 5.760841e-04 6.146449e-04 7.103472e-04 8.447586e-04 9.143925e-04
#>    178 2.246799e-04 2.389980e-04 2.762633e-04 3.285789e-04 3.550665e-04
#>    181 8.667930e-05 9.193347e-05 1.062910e-04 1.264456e-04 1.364172e-04
#>    184 3.310118e-05 3.500782e-05 4.048466e-05 4.817481e-05 5.189338e-05
#>    187 1.252097e-05 1.320556e-05 1.527529e-05 1.818319e-05 1.955789e-05
#>    190 4.694303e-06 4.937655e-06 5.712992e-06 6.803298e-06 7.307475e-06
#>    193 1.745406e-06 1.831082e-06 2.119165e-06 2.524753e-06 2.708319e-06
#>    196 6.439877e-07 6.738842e-07 7.800962e-07 9.298492e-07 9.962330e-07
#>    199 2.358898e-07 2.462283e-07 2.851127e-07 3.400303e-07 3.638948e-07
#>    202 8.583235e-08 8.937977e-08 1.035199e-07 1.235272e-07 1.320542e-07
#>    205 3.103018e-08 3.223469e-08 3.734267e-08 4.458860e-08 4.762573e-08
#>    208 1.115674e-08 1.156374e-08 1.339925e-08 1.600869e-08 1.708310e-08
#>    211 3.993131e-09 4.130849e-09 4.788245e-09 5.724436e-09 6.099783e-09
#>    214 1.420465e-09 1.465746e-09 1.698960e-09 2.032660e-09 2.166481e-09
#>    217 5.036398e-10 5.187488e-10 6.019208e-10 7.207712e-10 7.673854e-10
#>    220 1.775012e-10 1.824551e-10 2.115016e-10 2.532169e-10 2.694610e-10
#>    223 6.200882e-11 6.359053e-11 7.373668e-11 8.817924e-11 9.356834e-11
#>    226 2.168427e-11 2.217427e-11 2.568582e-11 3.079998e-11 3.280079e-11
#>    229 6.893078e-12 6.952661e-12 8.079773e-12 9.714015e-12 1.025301e-11
#>    232 3.066426e-12 3.223160e-12 3.732489e-12 4.385395e-12 4.643365e-12
#>    235 9.418335e-13 9.594974e-13 1.128779e-12 1.360532e-12 1.395444e-12
#>    238 2.775694e-13 2.586438e-13 2.985323e-13 3.725080e-13 4.026797e-13
#>       year
#> length           16           17           18           19           20
#>    1   4.989254e-56 2.259701e-56 1.396233e-56 1.703144e-56 1.076729e-56
#>    4   6.034460e-16 2.733089e-16 1.688731e-16 2.059938e-16 1.302294e-16
#>    7   4.415333e-02 1.999764e-02 1.235622e-02 1.507228e-02 9.528710e-03
#>    10  1.843189e+04 8.348055e+03 5.158128e+03 6.291954e+03 3.977778e+03
#>    13  2.205997e+06 9.991263e+05 6.173439e+05 7.530444e+05 4.760753e+05
#>    16  5.063343e+06 2.293793e+06 1.417264e+06 1.728561e+06 1.092940e+06
#>    19  9.415006e+05 4.941666e+05 3.011649e+05 3.374003e+05 2.313535e+05
#>    22  4.879836e+05 9.799755e+05 5.589929e+05 3.460057e+05 4.209280e+05
#>    25  9.765783e+05 2.030524e+06 1.169395e+06 7.142294e+05 8.740163e+05
#>    28  6.652387e+05 1.283982e+06 8.787253e+05 5.244138e+05 5.859283e+05
#>    31  4.444177e+05 5.448300e+05 8.446377e+05 4.739411e+05 3.636426e+05
#>    34  4.848739e+05 4.402647e+05 1.042527e+06 6.145387e+05 4.013823e+05
#>    37  3.927160e+05 3.697617e+05 8.092828e+05 6.210476e+05 3.938108e+05
#>    40  2.700769e+05 2.907359e+05 4.696206e+05 6.039669e+05 3.925884e+05
#>    43  2.219145e+05 2.404983e+05 2.948802e+05 5.545944e+05 4.177942e+05
#>    46  2.139175e+05 1.877949e+05 2.159601e+05 4.185397e+05 4.191058e+05
#>    49  2.161052e+05 1.437599e+05 1.656722e+05 2.727965e+05 3.812357e+05
#>    52  2.156596e+05 1.227414e+05 1.281895e+05 1.762594e+05 3.064652e+05
#>    55  2.061823e+05 1.181129e+05 1.013002e+05 1.219618e+05 2.171508e+05
#>    58  1.872657e+05 1.181592e+05 8.551874e+04 8.961942e+04 1.418545e+05
#>    61  1.616377e+05 1.154913e+05 7.872158e+04 6.918098e+04 9.156980e+04
#>    64  1.328282e+05 1.074566e+05 7.603314e+04 5.706930e+04 6.170822e+04
#>    67  1.040552e+05 9.450492e+04 7.296263e+04 5.062925e+04 4.450376e+04
#>    70  7.793108e+04 7.859255e+04 6.721179e+04 4.682515e+04 3.452662e+04
#>    73  5.641701e+04 6.206750e+04 5.861593e+04 4.313150e+04 2.851579e+04
#>    76  4.056259e+04 4.702033e+04 4.832600e+04 3.831659e+04 2.439540e+04
#>    79  3.030171e+04 3.488429e+04 3.793943e+04 3.239931e+04 2.091308e+04
#>    82  2.462713e+04 2.622045e+04 2.883076e+04 2.609882e+04 1.752730e+04
#>    85  2.204311e+04 2.075542e+04 2.177138e+04 2.024517e+04 1.420544e+04
#>    88  2.102853e+04 1.765760e+04 1.685786e+04 1.540174e+04 1.114482e+04
#>    91  2.035878e+04 1.591236e+04 1.368448e+04 1.174552e+04 8.541553e+03
#>    94  1.926339e+04 1.464114e+04 1.162738e+04 9.139503e+03 6.477238e+03
#>    97  1.744179e+04 1.327915e+04 1.010330e+04 7.291432e+03 4.913772e+03
#>    100 1.496953e+04 1.160406e+04 8.720827e+03 5.904231e+03 3.745457e+03
#>    103 1.214125e+04 9.657583e+03 7.311093e+03 4.764961e+03 2.857233e+03
#>    106 9.308091e+03 7.620841e+03 5.874556e+03 3.765286e+03 2.160362e+03
#>    109 6.757727e+03 5.698333e+03 4.496353e+03 2.876378e+03 1.601154e+03
#>    112 4.658119e+03 4.042833e+03 3.272307e+03 2.108705e+03 1.152532e+03
#>    115 3.057403e+03 2.727751e+03 2.265730e+03 1.478735e+03 8.007433e+02
#>    118 1.916565e+03 1.754961e+03 1.495213e+03 9.912571e+02 5.351767e+02
#>    121 1.150802e+03 1.079677e+03 9.426857e+02 6.357425e+02 3.436673e+02
#>    124 6.637638e+02 6.369386e+02 5.692766e+02 3.907596e+02 2.120855e+02
#>    127 3.687481e+02 3.612886e+02 3.301515e+02 2.306650e+02 1.259188e+02
#>    130 1.978101e+02 1.975541e+02 1.843541e+02 1.310623e+02 7.203928e+01
#>    133 1.027067e+02 1.043887e+02 9.936016e+01 7.184414e+01 3.978773e+01
#>    136 5.172980e+01 5.342611e+01 5.180920e+01 3.807975e+01 2.125577e+01
#>    139 2.532616e+01 2.654119e+01 2.619345e+01 1.955780e+01 1.100537e+01
#>    142 1.207580e+01 1.282409e+01 1.286667e+01 9.753427e+00 5.533059e+00
#>    145 5.617650e+00 6.037906e+00 6.152707e+00 4.731987e+00 2.706210e+00
#>    148 2.553902e+00 2.774976e+00 2.869305e+00 2.237518e+00 1.289902e+00
#>    151 1.136406e+00 1.246961e+00 1.307160e+00 1.032916e+00 6.001704e-01
#>    154 4.956384e-01 5.486897e-01 5.826469e-01 4.662616e-01 2.730207e-01
#>    157 2.121670e-01 2.367533e-01 2.544737e-01 2.061140e-01 1.216074e-01
#>    160 8.925085e-02 1.003075e-01 1.090525e-01 8.935164e-02 5.310903e-02
#>    163 3.693787e-02 4.178057e-02 4.591321e-02 3.803468e-02 2.277106e-02
#>    166 1.505658e-02 1.712842e-02 1.901371e-02 1.591722e-02 9.596919e-03
#>    169 6.050830e-03 6.918757e-03 7.753661e-03 6.556298e-03 3.980225e-03
#>    172 2.399651e-03 2.756400e-03 3.116801e-03 2.660821e-03 1.626197e-03
#>    175 9.399617e-04 1.084093e-03 1.236221e-03 1.065051e-03 6.551805e-04
#>    178 3.639659e-04 4.212904e-04 4.842431e-04 4.208500e-04 2.605416e-04
#>    181 1.394239e-04 1.618988e-04 1.874910e-04 1.643104e-04 1.023532e-04
#>    184 5.287565e-05 6.157247e-05 7.181149e-05 6.343637e-05 3.975490e-05
#>    187 1.986614e-05 2.319118e-05 2.722879e-05 2.423707e-05 1.527845e-05
#>    190 7.399276e-06 8.656574e-06 1.022794e-05 9.170699e-06 5.814077e-06
#>    193 2.733661e-06 3.204281e-06 3.808543e-06 3.438728e-06 2.192247e-06
#>    196 1.002371e-06 1.176892e-06 1.406724e-06 1.278622e-06 8.195662e-07
#>    199 3.649817e-07 4.291461e-07 5.156917e-07 4.717297e-07 3.039637e-07
#>    202 1.320352e-07 1.554415e-07 1.877321e-07 1.727796e-07 1.119047e-07
#>    205 4.747357e-08 5.595062e-08 6.789955e-08 6.285877e-08 4.091583e-08
#>    208 1.697645e-08 2.002599e-08 2.441182e-08 2.272634e-08 1.486527e-08
#>    211 6.041489e-09 7.130390e-09 8.728518e-09 8.169670e-09 5.369018e-09
#>    214 2.141135e-09 2.527674e-09 3.106063e-09 2.922076e-09 1.928987e-09
#>    217 7.539382e-10 8.900922e-10 1.098544e-09 1.038560e-09 6.889255e-10
#>    220 2.651662e-10 3.137258e-10 3.886517e-10 3.687530e-10 2.454825e-10
#>    223 9.167399e-11 1.094211e-10 1.364824e-10 1.304387e-10 8.714395e-11
#>    226 3.206909e-11 3.812965e-11 4.709139e-11 4.537868e-11 3.053927e-11
#>    229 9.788535e-12 1.165503e-11 1.512878e-11 1.487760e-11 1.036382e-11
#>    232 4.697541e-12 5.684948e-12 7.125063e-12 6.273655e-12 4.051370e-12
#>    235 1.333632e-12 1.614510e-12 2.111879e-12 2.194928e-12 1.354122e-12
#>    238 3.462472e-13 3.915808e-13 5.399946e-13 6.020133e-13 5.148865e-13
#> 
#> $sim_length
#> function (age = NULL, length_age_key = FALSE) 
#> {
#>     pred_length <- Linf - (Linf - L0) * exp(-K * age)
#>     if (length_age_key) {
#>         breaks <- seq(0, ceiling(max(pred_length)) * 10, length_group)
#>         lak <- matrix(NA, ncol = length(pred_length), nrow = length(breaks) - 
#>             1, dimnames = list(length = group_lengths(breaks, 
#>             length_group)[-length(breaks)], age = age))
#>         for (i in seq_along(breaks)[-1]) {
#>             for (j in seq_along(pred_length)) {
#>                 lak[i - 1, j] <- stats::pnorm(log(breaks[i]), 
#>                   log(pred_length[j]), sd = log_sd) - stats::pnorm(log(breaks[i - 
#>                   1]), log(pred_length[j]), sd = log_sd)
#>             }
#>         }
#>         lak <- lak[rowSums(lak) > 0, ]
#>         if (plot) 
#>             graphics::image(x = as.numeric(colnames(lak)), y = as.numeric(rownames(lak)), 
#>                 z = t(lak), xlab = "Age", ylab = "Length", main = "P(Length | Age)", 
#>                 col = viridis::viridis(100))
#>         return(lak)
#>     }
#>     else {
#>         log_length <- stats::rnorm(length(age), log(pred_length), 
#>             sd = log_sd)
#>         length <- round(exp(log_length), digits)
#>         if (plot) 
#>             plot(age, length)
#>         return(length)
#>     }
#> }
#> <bytecode: 0x55d5ac817108>
#> <environment: 0x55d5afccdff0>
#> 
Za_dev <- c(-0.2, -0.1, 0, 0.1, 0.2, 0.3, 0.3, 0.2, 0.1, 0)
Zy_dev <- c(-0.2, -0.2, -0.2, -0.2, -0.2, 2, 2, 2, 2, 0.2, 0.2, 0.2, 0.2, 0.2, 0, 0, 0, 0, 0, 0)
Z_mat <- outer(Za_dev, Zy_dev, "+") + 0.5
sim_abundance(ages = 1:10, years = 1:20,
              Z = sim_Z(log_mean = log(Z_mat), plot = TRUE))

#> $ages
#>  [1]  1  2  3  4  5  6  7  8  9 10
#> 
#> $lengths
#>  [1]   1   4   7  10  13  16  19  22  25  28  31  34  37  40  43  46  49  52  55
#> [20]  58  61  64  67  70  73  76  79  82  85  88  91  94  97 100 103 106 109 112
#> [39] 115 118 121 124 127 130 133 136 139 142 145 148 151 154 157 160 163 166 169
#> [58] 172 175 178
#> 
#> $years
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
#> 
#> $R
#>         1         2         3         4         5         6         7         8 
#>  60317482 122629419 285189608 172859289 195355485 425502363 327500499 234949958 
#>         9        10        11        12        13        14        15        16 
#> 113746502 171027598  56349394  86880790  75507628  47539540  46005443  38931534 
#>        17        18        19        20 
#> 122083510 203101625 370893878 237630446 
#> 
#> $N0
#>  [1] 60317482 54487865 43912436 33574454 22545379 14167984  7624812  4256781
#>  [9]  2863098  1854269
#> 
#> $Z
#>     year
#> age          1         2         3         4         5         6        7
#>   1  0.1016440 0.2283252 0.1501003 0.1597080 0.1000344 1.3835026 1.698375
#>   2  0.2157805 0.4399537 0.2128819 0.3027087 0.1644043 1.2069912 1.927342
#>   3  0.2684321 0.5669341 0.2624175 0.4098730 0.2490293 1.1478168 1.288189
#>   4  0.3982353 0.6906843 0.4182161 0.6808466 0.3731608 0.9694436 1.533435
#>   5  0.4645454 0.8046167 0.4152456 0.6881459 0.5105333 1.0486631 2.025854
#>   6  0.6195771 1.2447596 0.7153044 1.0144507 1.1052944 1.7781138 2.845757
#>   7  0.5828945 1.0030549 0.5238382 0.9556905 1.2598685 1.6734843 2.985638
#>   8  0.3966090 0.7170798 0.3324147 0.7331995 1.0358269 1.5314208 3.378415
#>   9  0.4344135 0.6195488 0.2527767 0.5522804 0.8703612 1.3914062 2.672885
#>   10 0.3812612 0.4451249 0.1945365 0.3426332 0.5118428 1.5733323 2.691239
#>     year
#> age         8        9        10        11        12        13        14
#>   1  1.118296 1.321283 0.3568649 0.6248785 0.3786110 0.1363367 0.1582241
#>   2  1.120606 1.045832 0.2566324 0.5245766 0.3521406 0.1709879 0.2381780
#>   3  1.078258 1.024604 0.3898798 0.7591924 0.4795297 0.2588046 0.4680391
#>   4  1.786798 1.549827 0.7464511 0.9537737 0.4643384 0.5066181 0.5777653
#>   5  3.092472 2.434774 0.7896628 0.8776789 0.3503008 0.3728596 0.7265272
#>   6  4.382681 2.675425 1.0144090 0.7150577 0.3171635 0.5137061 0.8329012
#>   7  4.303592 2.492493 0.9241721 0.8359423 0.5200356 0.7700455 1.0313347
#>   8  4.818403 2.044499 0.7638782 0.6915374 0.3381941 0.5600956 0.7589435
#>   9  4.833962 2.434019 0.6577698 0.6266945 0.3911794 0.5159857 0.6665471
#>   10 3.573793 2.229321 0.4127549 0.5745522 0.3930357 0.5084540 0.5579864
#>     year
#> age         15        16        17        18        19        20
#>   1  0.1732633 0.4597811 0.3010515 0.3707180 0.3334038 0.2262082
#>   2  0.3380501 0.8281294 0.4367465 0.4883675 0.4252315 0.2471063
#>   3  0.6616151 1.1768206 0.6695281 0.6413676 0.4799512 0.3880025
#>   4  1.0166457 0.8934421 0.5286772 0.5586313 0.4365152 0.4854588
#>   5  1.0249418 0.8539066 0.4632748 0.6635272 0.6038418 0.7512358
#>   6  1.3497169 1.3709175 0.5288006 0.7127504 0.5250812 0.7118489
#>   7  1.0589286 1.1239925 0.6284719 0.7267821 0.4125273 0.4675349
#>   8  0.9602589 0.8923326 0.4990422 0.7872728 0.5393289 0.4497155
#>   9  1.0269767 0.8021285 0.3973575 0.4662759 0.3104627 0.4023434
#>   10 1.0672551 0.6395855 0.3545953 0.3296555 0.2478041 0.3051275
#> 
#> $N
#>     year
#> age         1         2         3         4         5           6           7
#>   1  60317482 122629419 285189608 172859289 195355485 425502363.1 327500498.7
#>   2  54487865  54487865  97596507 245440341 147343993 176758867.5 106672981.9
#>   3  43912436  43912436  35093795  78882534 181334824 125006493.3  52867842.5
#>   4  33574454  33574454  24909854  26993791  52357064 141360852.6  39668161.2
#>   5  22545379  22545379  16828623  16396162  13663941  36050690.3  53617325.6
#>   6  14167984  14167984  10083631  11109889   8239184   8200761.6  12632374.5
#>   7   7624812   7624812   4080523   4931331   4028463   2728104.3   1385572.3
#>   8   4256781   4256781   2796456   2416661   1896326   1142840.1    511771.3
#>   9   2863098   2863098   2078057   2005590   1160891    673068.3    247114.3
#>   10  1854269   1854269   1540883   1613905   1154489    486181.3    167409.1
#>     year
#> age             8            9           10           11           12
#>   1  234949957.58 1.137465e+08 1.710276e+08 5.634939e+07 86880790.028
#>   2   59926261.45 7.679014e+07 3.034676e+07 1.196966e+08 30165323.516
#>   3   15524606.50 1.954089e+07 2.698399e+07 2.347785e+07 70837142.449
#>   4   14579350.93 5.281279e+06 7.013976e+06 1.827189e+07 10988672.083
#>   5    8560114.00 2.441976e+06 1.121135e+06 3.324946e+06  7039874.517
#>   6    7071117.38 3.885404e+05 2.139601e+05 5.089928e+05  1382335.838
#>   7     733818.31 8.833116e+04 2.676171e+04 7.758548e+04   248980.909
#>   8      69981.49 9.921151e+03 7.305297e+03 1.062065e+04    33630.654
#>   9      17452.15 5.654279e+02 1.284243e+03 3.403218e+03     5318.879
#>   10     17063.91 1.388308e+02 4.957884e+01 6.652449e+02     1818.527
#>     year
#> age            13          14          15          16          17          18
#>   1  75507628.242 47539540.47 46005443.31 38931533.70 122083510.4 203101625.2
#>   2  59497004.187 65884090.84 40582530.76 38686722.76  24582221.7  90346639.1
#>   3  21211689.192 50145967.16 51920773.24 28941819.65  16900903.6  15883439.3
#>   4  43853466.311 16374869.89 31402859.75 26792015.05   8921525.7   8652419.4
#>   5   6906939.036 26423020.71  9188774.26 11361759.76  10964489.4   5258205.2
#>   6   4959423.760  4757236.74 12777789.30  3297091.54   4837251.5   6899072.6
#>   7   1006633.109  2967095.35  2068380.28  3313455.40    837045.6   2850647.4
#>   8    148018.992   466063.07  1057860.79   717370.58   1076805.8    446485.4
#>   9     23980.570    84541.71   218192.45   404942.53    293906.0    653741.5
#>   10     3596.939    14314.29    43410.35    78132.08    181565.5    197532.4
#>     year
#> age           19          20
#>   1  370893877.8 237630446.0
#>   2  140188571.6 265738343.9
#>   3   55439164.1  91629842.0
#>   4    8363770.8  34306508.2
#>   5    4949109.6   5405376.7
#>   6    2708141.4   2705714.2
#>   7    3382572.6   1601885.4
#>   8    1378180.3   2239178.9
#>   9     203188.4    803671.4
#>   10    410114.4    148959.0
#> 
#> $N_at_length
#>       year
#> length            1            2            3            4            5
#>    1   3.664780e-55 7.450739e-55 1.732760e-54 1.050261e-54 1.186944e-54
#>    4   4.432519e-15 9.011604e-15 2.095758e-14 1.270282e-14 1.435599e-14
#>    7   3.243214e-01 6.593668e-01 1.533438e+00 9.294481e-01 1.050408e+00
#>    10  1.353886e+05 2.752540e+05 6.401365e+05 3.879999e+05 4.384949e+05
#>    13  1.620381e+07 3.294341e+07 7.661391e+07 4.643727e+07 5.248069e+07
#>    16  3.719769e+07 7.561699e+07 1.758522e+08 1.066153e+08 1.204711e+08
#>    19  7.634948e+06 1.446502e+07 3.309313e+07 2.355755e+07 2.418080e+07
#>    22  1.164528e+07 1.182703e+07 2.137089e+07 5.215587e+07 3.159106e+07
#>    25  2.419004e+07 2.419138e+07 4.309459e+07 1.083135e+08 6.575549e+07
#>    28  1.711049e+07 1.711050e+07 2.789287e+07 6.954875e+07 5.021250e+07
#>    31  1.348233e+07 1.348233e+07 1.405221e+07 3.305016e+07 5.059610e+07
#>    34  1.627126e+07 1.627126e+07 1.330367e+07 2.905197e+07 6.359381e+07
#>    37  1.506042e+07 1.506042e+07 1.180362e+07 2.266108e+07 5.052241e+07
#>    40  1.323059e+07 1.323059e+07 1.006489e+07 1.483531e+07 3.095590e+07
#>    43  1.242847e+07 1.242847e+07 9.289829e+06 1.091014e+07 1.997097e+07
#>    46  1.121832e+07 1.121832e+07 8.333630e+06 8.873405e+06 1.343144e+07
#>    49  9.759014e+06 9.759014e+06 7.202667e+06 7.419322e+06 8.818036e+06
#>    52  8.388763e+06 8.388763e+06 6.099952e+06 6.283329e+06 6.007340e+06
#>    55  7.070581e+06 7.070581e+06 5.005527e+06 5.252613e+06 4.407799e+06
#>    58  5.816194e+06 5.816194e+06 3.969523e+06 4.253626e+06 3.372362e+06
#>    61  4.688869e+06 4.688869e+06 3.083635e+06 3.335515e+06 2.590907e+06
#>    64  3.725477e+06 3.725477e+06 2.392544e+06 2.565138e+06 1.971098e+06
#>    67  2.927040e+06 2.927040e+06 1.878703e+06 1.967248e+06 1.488089e+06
#>    70  2.268340e+06 2.268340e+06 1.487433e+06 1.516138e+06 1.119413e+06
#>    73  1.717204e+06 1.717204e+06 1.164508e+06 1.163782e+06 8.357676e+05
#>    76  1.252540e+06 1.252540e+06 8.801985e+05 8.717123e+05 6.110846e+05
#>    79  8.686367e+05 8.686367e+05 6.301453e+05 6.237404e+05 4.300102e+05
#>    82  5.671079e+05 5.671079e+05 4.223119e+05 4.198415e+05 2.868128e+05
#>    85  3.465659e+05 3.465659e+05 2.635010e+05 2.636251e+05 1.795062e+05
#>    88  1.978186e+05 1.978186e+05 1.528847e+05 1.539745e+05 1.049027e+05
#>    91  1.055134e+05 1.055134e+05 8.260394e+04 8.370354e+04 5.718553e+04
#>    94  5.270350e+04 5.270350e+04 4.168461e+04 4.246488e+04 2.912388e+04
#>    97  2.473028e+04 2.473028e+04 1.972081e+04 2.018033e+04 1.389927e+04
#>    100 1.094134e+04 1.094134e+04 8.783009e+03 9.021254e+03 6.239716e+03
#>    103 4.581975e+03 4.581975e+03 3.698024e+03 3.810056e+03 2.645803e+03
#>    106 1.823362e+03 1.823362e+03 1.478136e+03 1.526792e+03 1.064102e+03
#>    109 6.921301e+02 6.921301e+02 5.631442e+02 5.829042e+02 4.075786e+02
#>    112 2.515263e+02 2.515263e+02 2.052754e+02 2.128484e+02 1.492557e+02
#>    115 8.781307e+01 8.781307e+01 7.184841e+01 7.460700e+01 5.244833e+01
#>    118 2.954756e+01 2.954756e+01 2.422741e+01 2.518807e+01 1.774591e+01
#>    121 9.611303e+00 9.611303e+00 7.894953e+00 8.216347e+00 5.799736e+00
#>    124 3.030816e+00 3.030816e+00 2.493383e+00 2.597109e+00 1.836268e+00
#>    127 9.289290e-01 9.289290e-01 7.652002e-01 7.976109e-01 5.647520e-01
#>    130 2.773931e-01 2.773931e-01 2.287540e-01 2.385901e-01 1.691442e-01
#>    133 8.088431e-02 8.088431e-02 6.676494e-02 6.967237e-02 4.944608e-02
#>    136 2.307701e-02 2.307701e-02 1.906413e-02 1.990328e-02 1.413842e-02
#>    139 6.454522e-03 6.454522e-03 5.335881e-03 5.572910e-03 3.961961e-03
#>    142 1.772872e-03 1.772872e-03 1.466502e-03 1.532158e-03 1.090029e-03
#>    145 4.789852e-04 4.789852e-04 3.964196e-04 4.142872e-04 2.949195e-04
#>    148 1.274798e-04 1.274798e-04 1.055536e-04 1.103388e-04 7.858935e-05
#>    151 3.346884e-05 3.346884e-05 2.772329e-05 2.898640e-05 2.065544e-05
#>    154 8.678645e-06 8.678645e-06 7.191357e-06 7.520483e-06 5.361219e-06
#>    157 2.225705e-06 2.225705e-06 1.844779e-06 1.929489e-06 1.376002e-06
#>    160 5.649786e-07 5.649786e-07 4.684227e-07 4.900139e-07 3.495533e-07
#>    163 1.420076e-07 1.420076e-07 1.177731e-07 1.232215e-07 8.793235e-08
#>    166 3.563283e-08 3.563283e-08 2.954372e-08 3.090584e-08 2.204735e-08
#>    169 8.646341e-09 8.646341e-09 7.185039e-09 7.525537e-09 5.383309e-09
#>    172 2.264518e-09 2.264518e-09 1.881796e-09 1.970974e-09 1.409914e-09
#>    175 4.117305e-10 4.117305e-10 3.421447e-10 3.583589e-10 2.563480e-10
#>    178 2.058653e-10 2.058653e-10 1.710723e-10 1.791795e-10 1.281740e-10
#>       year
#> length            6            7            8            9           10
#>    1   2.585274e-54 1.989833e-54 1.427513e-54 6.911029e-55 1.039132e-54
#>    4   3.126867e-14 2.406686e-14 1.726564e-14 8.358829e-15 1.256822e-14
#>    7   2.287886e+00 1.760939e+00 1.263304e+00 6.116042e-01 9.195993e-01
#>    10  9.550825e+05 7.351075e+05 5.273686e+05 2.553154e+05 3.838885e+05
#>    13  1.143078e+08 8.798039e+07 6.311743e+07 3.055709e+07 4.594520e+07
#>    16  2.623757e+08 2.019409e+08 1.448706e+08 7.014342e+07 1.054540e+08
#>    19  4.995993e+07 3.790137e+07 2.687873e+07 1.391027e+07 1.931653e+07
#>    22  3.844594e+07 2.340589e+07 1.329609e+07 1.649135e+07 6.886894e+06
#>    25  7.838251e+07 4.718182e+07 2.642942e+07 3.386096e+07 1.348923e+07
#>    28  5.441117e+07 3.140467e+07 1.674657e+07 2.143469e+07 9.687099e+06
#>    31  3.988535e+07 1.872567e+07 7.249337e+06 9.153278e+06 8.037703e+06
#>    34  4.806625e+07 1.985380e+07 6.125030e+06 7.255577e+06 9.492879e+06
#>    37  4.868522e+07 1.818948e+07 5.697797e+06 5.429332e+06 7.415973e+06
#>    40  4.799333e+07 1.655590e+07 5.363511e+06 3.277801e+06 4.386670e+06
#>    43  4.459131e+07 1.732880e+07 5.193763e+06 2.146739e+06 2.665304e+06
#>    46  3.396409e+07 1.817777e+07 4.647869e+06 1.544406e+06 1.644663e+06
#>    49  2.196946e+07 1.738432e+07 3.990696e+06 1.094730e+06 9.255500e+05
#>    52  1.331732e+07 1.439006e+07 3.408198e+06 7.357897e+05 4.880170e+05
#>    55  7.962827e+06 1.018091e+07 2.790551e+06 4.568468e+05 2.549779e+05
#>    58  4.739744e+06 6.310371e+06 2.087322e+06 2.603628e+05 1.330618e+05
#>    61  2.844087e+06 3.560039e+06 1.389837e+06 1.392283e+05 6.834203e+04
#>    64  1.754333e+06 1.894150e+06 8.201387e+05 7.184351e+04 3.430734e+04
#>    67  1.125096e+06 9.826515e+05 4.337449e+05 3.624989e+04 1.687438e+04
#>    70  7.485056e+05 5.154838e+05 2.101746e+05 1.782981e+04 8.189020e+03
#>    73  5.092909e+05 2.823948e+05 9.609318e+04 8.470673e+03 3.947320e+03
#>    76  3.467319e+05 1.630580e+05 4.287914e+04 3.859725e+03 1.892480e+03
#>    79  2.307622e+05 9.728386e+04 1.929931e+04 1.682746e+03 8.972531e+02
#>    82  1.472809e+05 5.802682e+04 8.960197e+03 7.031105e+02 4.165129e+02
#>    85  8.899553e+04 3.363548e+04 4.303305e+03 2.827777e+02 1.874705e+02
#>    88  5.056266e+04 1.861420e+04 2.104746e+03 1.100820e+02 8.124630e+01
#>    91  2.694302e+04 9.748423e+03 1.024432e+03 4.171769e+01 3.377670e+01
#>    94  1.347070e+04 4.816294e+03 4.863275e+02 1.546610e+01 1.345445e+01
#>    97  6.332750e+03 2.245172e+03 2.222523e+02 5.628401e+00 5.137912e+00
#>    100 2.808041e+03 9.894383e+02 9.712078e+01 2.014080e+00 1.883922e+00
#>    103 1.178636e+03 4.134030e+02 4.048680e+01 7.088068e-01 6.646969e-01
#>    106 4.700570e+02 1.642981e+02 1.610593e+01 2.450985e-01 2.262128e-01
#>    109 1.787888e+02 6.232407e+01 6.124877e+00 8.315668e-02 7.444485e-02
#>    112 6.509134e+01 2.264255e+01 2.232205e+00 2.764233e-02 2.374998e-02
#>    115 2.276133e+01 7.904518e+00 7.818390e-01 8.992673e-03 7.363061e-03
#>    118 7.669629e+00 2.659936e+00 2.639383e-01 2.861272e-03 2.223448e-03
#>    121 2.497885e+00 8.653623e-01 8.612356e-02 8.902627e-04 6.554167e-04
#>    124 7.885297e-01 2.729343e-01 2.723684e-02 2.709482e-04 1.889797e-04
#>    127 2.419072e-01 8.367011e-02 8.369917e-03 8.071117e-05 5.339987e-05
#>    130 7.229636e-02 2.499040e-02 2.505291e-03 2.355266e-05 1.481323e-05
#>    133 2.109567e-02 7.288330e-03 7.320453e-04 6.739974e-06 4.040539e-06
#>    136 6.022499e-03 2.079813e-03 2.092476e-04 1.893592e-06 1.085295e-06
#>    139 1.685369e-03 5.818137e-04 5.862171e-05 5.229387e-07 2.874505e-07
#>    142 4.631397e-04 1.598326e-04 1.612497e-05 1.421157e-07 7.516236e-08
#>    145 1.251800e-04 4.318896e-05 4.362175e-06 3.806440e-08 1.942884e-08
#>    148 3.332802e-05 1.149601e-05 1.162262e-06 1.005278e-08 4.967603e-09
#>    151 8.752770e-06 3.018548e-06 3.054484e-07 2.623235e-09 1.258555e-09
#>    154 2.270260e-06 7.827939e-07 7.927059e-08 6.756465e-10 3.152987e-10
#>    157 5.823665e-07 2.007808e-07 2.034720e-08 1.731632e-10 7.907985e-11
#>    160 1.478591e-07 5.096759e-08 5.167610e-09 4.354768e-11 1.939679e-11
#>    163 3.717344e-08 1.281204e-08 1.299911e-09 1.090507e-11 4.735516e-12
#>    166 9.325536e-09 3.214515e-09 3.259358e-10 2.745814e-12 1.220900e-12
#>    169 2.267033e-09 7.806181e-10 7.956791e-11 6.473592e-13 2.311830e-13
#>    172 5.937466e-10 2.044476e-10 2.083922e-11 1.695465e-13 6.054792e-14
#>    175 1.079539e-10 3.717229e-11 3.788948e-12 3.082663e-14 1.100871e-14
#>    178 5.397697e-11 1.858615e-11 1.894474e-12 1.541331e-14 5.504356e-15
#>       year
#> length           11           12           13           14           15
#>    1   3.423686e-55 5.278718e-55 4.587705e-55 2.888415e-55 2.795206e-55
#>    4   4.140918e-15 6.384563e-15 5.548789e-15 3.493513e-15 3.380778e-15
#>    7   3.029854e-01 4.671498e-01 4.059974e-01 2.556156e-01 2.473669e-01
#>    10  1.264818e+05 1.950126e+05 1.694844e+05 1.067072e+05 1.032638e+05
#>    13  1.513782e+07 2.333983e+07 2.028452e+07 1.277112e+07 1.235900e+07
#>    16  3.476079e+07 5.357206e+07 4.656413e+07 2.932096e+07 2.837133e+07
#>    19  8.424854e+06 1.008972e+07 9.394039e+06 6.448409e+06 5.805000e+06
#>    22  2.535240e+07 6.607690e+06 1.274129e+07 1.400655e+07 8.678481e+06
#>    25  5.274012e+07 1.364668e+07 2.626836e+07 2.923275e+07 1.812148e+07
#>    28  3.297245e+07 1.240729e+07 1.699748e+07 2.049885e+07 1.395748e+07
#>    31  1.271440e+07 1.806078e+07 8.643507e+06 1.552785e+07 1.445734e+07
#>    34  9.324026e+06 2.432360e+07 9.056364e+06 1.783342e+07 1.877719e+07
#>    37  8.087776e+06 1.850251e+07 1.086118e+07 1.434705e+07 1.662693e+07
#>    40  6.877047e+06 9.820477e+06 1.304705e+07 9.727297e+06 1.306459e+07
#>    43  5.810864e+06 5.419736e+06 1.299252e+07 8.281809e+06 1.071843e+07
#>    46  4.150729e+06 3.737435e+06 9.737213e+06 8.429891e+06 8.264793e+06
#>    49  2.474430e+06 2.810886e+06 6.023888e+06 8.195887e+06 6.210079e+06
#>    52  1.343811e+06 2.032007e+06 3.653942e+06 6.858701e+06 5.071005e+06
#>    55  7.079462e+05 1.334812e+06 2.414102e+06 4.918100e+06 4.354790e+06
#>    58  3.644396e+05 7.933271e+05 1.669094e+06 3.186925e+06 3.545894e+06
#>    61  1.822406e+05 4.372083e+05 1.113771e+06 1.993489e+06 2.600295e+06
#>    64  8.887650e+04 2.293164e+05 6.887198e+05 1.243910e+06 1.721478e+06
#>    67  4.257838e+04 1.161101e+05 3.926507e+05 7.656187e+05 1.057813e+06
#>    70  2.013984e+04 5.702887e+04 2.085652e+05 4.526669e+05 6.222743e+05
#>    73  9.448317e+03 2.723520e+04 1.046710e+05 2.528247e+05 3.571216e+05
#>    76  4.418532e+03 1.269052e+04 5.023879e+04 1.329840e+05 2.004232e+05
#>    79  2.067025e+03 5.796991e+03 2.326561e+04 6.622035e+04 1.091585e+05
#>    82  9.665657e+02 2.608200e+03 1.045508e+04 3.146829e+04 5.718467e+04
#>    85  4.492557e+02 1.159274e+03 4.573470e+03 1.437464e+04 2.865109e+04
#>    88  2.057691e+02 5.090617e+02 1.949700e+03 6.342976e+03 1.369961e+04
#>    91  9.204828e+01 2.202158e+02 8.097732e+02 2.710195e+03 6.252524e+03
#>    94  3.992697e+01 9.340289e+01 3.272993e+02 1.121915e+03 2.727414e+03
#>    97  1.671320e+01 3.864281e+01 1.285645e+02 4.497875e+02 1.139062e+03
#>    100 6.734711e+00 1.552625e+01 4.902144e+01 1.745412e+02 4.562916e+02
#>    103 2.610585e+00 6.039831e+00 1.813126e+01 6.553873e+01 1.756463e+02
#>    106 9.739598e-01 2.271035e+00 6.503718e+00 2.381576e+01 6.509432e+01
#>    109 3.501784e-01 8.250238e-01 2.263165e+00 8.380111e+00 2.326871e+01
#>    112 1.215458e-01 2.897026e-01 7.645397e-01 2.858069e+00 8.038172e+00
#>    115 4.080878e-02 9.843660e-02 2.509915e-01 9.459703e-01 2.688687e+00
#>    118 1.328106e-02 3.241385e-02 8.017449e-02 3.042944e-01 8.725028e-01
#>    121 4.198415e-03 1.036167e-02 2.495388e-02 9.528046e-02 2.752181e-01
#>    124 1.291821e-03 3.221506e-03 7.578917e-03 2.908805e-02 8.454666e-02
#>    127 3.876525e-04 9.759763e-04 2.249582e-03 8.672405e-03 2.534128e-02
#>    130 1.136651e-04 2.886572e-04 6.535525e-04 2.529204e-03 7.424178e-03
#>    133 3.262380e-05 8.349806e-05 1.861189e-04 7.226611e-04 2.129600e-03
#>    136 9.181200e-06 2.366337e-05 5.203091e-05 2.026069e-04 5.990797e-04
#>    139 2.537545e-06 6.581142e-06 1.429886e-05 5.581851e-05 1.655305e-04
#>    142 6.897937e-07 1.798952e-06 3.867893e-06 1.513206e-05 4.498908e-05
#>    145 1.846925e-07 4.840596e-07 1.031317e-06 4.042320e-06 1.204430e-05
#>    148 4.876550e-08 1.283704e-07 2.712955e-07 1.065155e-06 3.180007e-06
#>    151 1.271506e-08 3.360239e-08 7.051893e-08 2.772654e-07 8.291509e-07
#>    154 3.276254e-09 8.687674e-09 1.811187e-08 7.131390e-08 2.136094e-07
#>    157 8.364432e-10 2.225102e-09 4.619379e-09 1.820024e-08 5.456198e-08
#>    160 2.111353e-10 5.630091e-10 1.161419e-09 4.583261e-09 1.376377e-08
#>    163 5.279375e-11 1.412217e-10 2.897888e-10 1.144772e-09 3.442022e-09
#>    166 1.331136e-11 3.550353e-11 7.321263e-11 2.889369e-10 8.677664e-10
#>    169 3.101995e-12 8.479678e-12 1.677230e-11 6.674662e-11 2.024197e-10
#>    172 8.124272e-13 2.220868e-12 4.392745e-12 1.748126e-11 5.301469e-11
#>    175 1.477140e-13 4.037942e-13 7.986809e-13 3.178411e-12 9.639034e-12
#>    178 7.385702e-14 2.018971e-13 3.993404e-13 1.589205e-12 4.819517e-12
#>       year
#> length           16           17           18           19           20
#>    1   2.365409e-55 7.417570e-55 1.234008e-54 2.253483e-54 1.443799e-54
#>    4   2.860941e-15 8.971487e-15 1.492522e-14 2.725568e-14 1.746262e-14
#>    7   2.093312e-01 6.564315e-01 1.092058e+00 1.994261e+00 1.277717e+00
#>    10  8.738571e+04 2.740286e+05 4.558819e+05 8.325083e+05 5.333852e+05
#>    13  1.045865e+07 3.279676e+07 5.456163e+07 9.963768e+07 6.383753e+07
#>    16  2.400953e+07 7.527596e+07 1.252386e+08 2.287007e+08 1.465539e+08
#>    19  4.994007e+06 1.384344e+07 2.395921e+07 4.328730e+07 3.103846e+07
#>    22  8.256638e+06 5.530193e+06 1.960407e+07 3.058482e+07 5.661703e+07
#>    25  1.716281e+07 1.089951e+07 3.980152e+07 6.192801e+07 1.173060e+08
#>    28  1.200794e+07 7.534711e+06 2.477070e+07 4.037834e+07 7.569406e+07
#>    31  9.073859e+06 5.392010e+06 9.155791e+06 2.122006e+07 3.722599e+07
#>    34  1.090559e+07 6.147236e+06 6.242556e+06 1.982191e+07 3.371296e+07
#>    37  1.051485e+07 5.289805e+06 5.009751e+06 1.449850e+07 2.662629e+07
#>    40  9.749645e+06 4.180461e+06 3.842907e+06 7.614642e+06 1.752403e+07
#>    43  9.044394e+06 3.931820e+06 3.290313e+06 4.138040e+06 1.203314e+07
#>    46  7.384419e+06 3.976174e+06 2.924054e+06 2.842471e+06 7.913258e+06
#>    49  5.436400e+06 3.849189e+06 2.700523e+06 2.246109e+06 4.663509e+06
#>    52  3.871381e+06 3.370852e+06 2.616642e+06 1.890490e+06 2.725115e+06
#>    55  2.758308e+06 2.635741e+06 2.490814e+06 1.656045e+06 1.785568e+06
#>    58  2.008133e+06 1.882867e+06 2.191537e+06 1.487535e+06 1.349588e+06
#>    61  1.500736e+06 1.276409e+06 1.746135e+06 1.324441e+06 1.128654e+06
#>    64  1.119435e+06 8.545888e+05 1.271682e+06 1.122574e+06 9.854175e+05
#>    67  8.041386e+05 5.818572e+05 8.682502e+05 8.850531e+05 8.498090e+05
#>    70  5.461773e+05 4.040813e+05 5.726196e+05 6.477734e+05 6.945975e+05
#>    73  3.504630e+05 2.801370e+05 3.730377e+05 4.450295e+05 5.259370e+05
#>    76  2.137989e+05 1.887605e+05 2.412984e+05 2.912718e+05 3.658864e+05
#>    79  1.246507e+05 1.213917e+05 1.532380e+05 1.836171e+05 2.339599e+05
#>    82  6.953042e+04 7.387536e+04 9.385390e+04 1.118432e+05 1.381207e+05
#>    85  3.702779e+04 4.242759e+04 5.461418e+04 6.557214e+04 7.572670e+04
#>    88  1.877035e+04 2.298966e+04 2.993256e+04 3.674418e+04 3.878808e+04
#>    91  9.038990e+03 1.176147e+04 1.540292e+04 1.955191e+04 1.866348e+04
#>    94  4.132819e+03 5.687924e+03 7.445824e+03 9.838695e+03 8.477317e+03
#>    97  1.795732e+03 2.604419e+03 3.389909e+03 4.675211e+03 3.650726e+03
#>    100 7.429080e+02 1.131412e+03 1.458694e+03 2.099263e+03 1.496371e+03
#>    103 2.933732e+02 4.674498e+02 5.955625e+02 8.925572e+02 5.858215e+02
#>    106 1.108974e+02 1.841744e+02 2.316180e+02 3.603879e+02 2.197666e+02
#>    109 4.024403e+01 6.939901e+01 8.612532e+01 1.386465e+02 7.923802e+01
#>    112 1.406080e+01 2.508345e+01 3.072855e+01 5.099782e+01 2.753610e+01
#>    115 4.742979e+00 8.721792e+00 1.055458e+01 1.799641e+01 9.247332e+00
#>    118 1.548709e+00 2.925843e+00 3.500737e+00 6.112879e+00 3.008542e+00
#>    121 4.907314e-01 9.495465e-01 1.124422e+00 2.004883e+00 9.504702e-01
#>    124 1.512461e-01 2.989059e-01 3.506629e-01 6.367773e-01 2.922275e-01
#>    127 4.543967e-02 9.148993e-02 1.064373e-01 1.963924e-01 8.762009e-02
#>    130 1.333455e-02 2.729181e-02 3.151484e-02 5.896526e-02 2.567030e-02
#>    133 3.829445e-03 7.951413e-03 9.121244e-03 1.727483e-02 7.361983e-03
#>    136 1.078134e-03 2.267132e-03 2.585495e-03 4.948918e-03 2.070321e-03
#>    139 2.980596e-04 6.337752e-04 7.190438e-04 1.389137e-03 5.718124e-04
#>    142 8.103791e-05 1.740065e-04 1.965178e-04 3.827443e-04 1.553427e-04
#>    145 2.169988e-05 4.699609e-05 5.286260e-05 1.036890e-04 4.156822e-05
#>    148 5.730091e-06 1.250426e-05 1.401516e-05 2.766188e-05 1.097029e-05
#>    151 1.494072e-06 3.282171e-06 3.667161e-06 7.277563e-06 2.859043e-06
#>    154 3.850280e-07 8.508551e-07 9.481000e-07 1.890503e-06 7.363901e-07
#>    157 9.826168e-08 2.182196e-07 2.425205e-07 4.856300e-07 1.879248e-07
#>    160 2.481616e-08 5.536950e-08 6.142525e-08 1.234302e-07 4.742451e-08
#>    163 6.204624e-09 1.391557e-08 1.539887e-08 3.107403e-08 1.185372e-08
#>    166 1.564564e-09 3.492090e-09 3.873344e-09 7.785531e-09 2.989872e-09
#>    169 3.643250e-10 8.466286e-10 9.210809e-10 1.912338e-09 6.945864e-10
#>    172 9.541844e-11 2.217361e-10 2.412355e-10 5.008503e-10 1.819155e-10
#>    175 1.734881e-11 4.031565e-11 4.386100e-11 9.106369e-11 3.307554e-11
#>    178 8.674404e-12 2.015782e-11 2.193050e-11 4.553185e-11 1.653777e-11
#> 
#> $sim_length
#> function (age = NULL, length_age_key = FALSE) 
#> {
#>     pred_length <- Linf - (Linf - L0) * exp(-K * age)
#>     if (length_age_key) {
#>         breaks <- seq(0, ceiling(max(pred_length)) * 10, length_group)
#>         lak <- matrix(NA, ncol = length(pred_length), nrow = length(breaks) - 
#>             1, dimnames = list(length = group_lengths(breaks, 
#>             length_group)[-length(breaks)], age = age))
#>         for (i in seq_along(breaks)[-1]) {
#>             for (j in seq_along(pred_length)) {
#>                 lak[i - 1, j] <- stats::pnorm(log(breaks[i]), 
#>                   log(pred_length[j]), sd = log_sd) - stats::pnorm(log(breaks[i - 
#>                   1]), log(pred_length[j]), sd = log_sd)
#>             }
#>         }
#>         lak <- lak[rowSums(lak) > 0, ]
#>         if (plot) 
#>             graphics::image(x = as.numeric(colnames(lak)), y = as.numeric(rownames(lak)), 
#>                 z = t(lak), xlab = "Age", ylab = "Length", main = "P(Length | Age)", 
#>                 col = viridis::viridis(100))
#>         return(lak)
#>     }
#>     else {
#>         log_length <- stats::rnorm(length(age), log(pred_length), 
#>             sd = log_sd)
#>         length <- round(exp(log_length), digits)
#>         if (plot) 
#>             plot(age, length)
#>         return(length)
#>     }
#> }
#> <bytecode: 0x55d5ac817108>
#> <environment: 0x55d5af1fbef0>
#> 
sim_abundance(ages = 1:10, years = 1:20,
              Z = sim_Z(log_mean = log(Z_mat), log_sd = 0, phi_age = 0, phi_year = 0, plot = TRUE))

#> $ages
#>  [1]  1  2  3  4  5  6  7  8  9 10
#> 
#> $lengths
#>  [1]   1   4   7  10  13  16  19  22  25  28  31  34  37  40  43  46  49  52  55
#> [20]  58  61  64  67  70  73  76  79  82  85  88  91  94  97 100 103 106 109 112
#> [39] 115 118 121 124 127 130 133 136 139 142 145 148 151 154 157 160 163 166 169
#> [58] 172 175 178
#> 
#> $years
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
#> 
#> $R
#>         1         2         3         4         5         6         7         8 
#>  18714214  22270001  33282060  41253731  56195408  26131503  40286183  14334254 
#>         9        10        11        12        13        14        15        16 
#>  33480694  39698204 162686847  84211935 104264780 137470170 108998378 188594644 
#>        17        18        19        20 
#> 227882243 170046252 129002383 152798113 
#> 
#> $N0
#>  [1] 18714214.3 16933321.3 13863830.9 10270578.5  6884574.7  4175705.6
#>  [7]  2291675.8  1257698.4   762832.6   511342.0
#> 
#> $Z
#>     year
#> age    1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18
#>   1  0.1 0.1 0.1 0.1 0.1 2.3 2.3 2.3 2.3 0.5 0.5 0.5 0.5 0.5 0.3 0.3 0.3 0.3
#>   2  0.2 0.2 0.2 0.2 0.2 2.4 2.4 2.4 2.4 0.6 0.6 0.6 0.6 0.6 0.4 0.4 0.4 0.4
#>   3  0.3 0.3 0.3 0.3 0.3 2.5 2.5 2.5 2.5 0.7 0.7 0.7 0.7 0.7 0.5 0.5 0.5 0.5
#>   4  0.4 0.4 0.4 0.4 0.4 2.6 2.6 2.6 2.6 0.8 0.8 0.8 0.8 0.8 0.6 0.6 0.6 0.6
#>   5  0.5 0.5 0.5 0.5 0.5 2.7 2.7 2.7 2.7 0.9 0.9 0.9 0.9 0.9 0.7 0.7 0.7 0.7
#>   6  0.6 0.6 0.6 0.6 0.6 2.8 2.8 2.8 2.8 1.0 1.0 1.0 1.0 1.0 0.8 0.8 0.8 0.8
#>   7  0.6 0.6 0.6 0.6 0.6 2.8 2.8 2.8 2.8 1.0 1.0 1.0 1.0 1.0 0.8 0.8 0.8 0.8
#>   8  0.5 0.5 0.5 0.5 0.5 2.7 2.7 2.7 2.7 0.9 0.9 0.9 0.9 0.9 0.7 0.7 0.7 0.7
#>   9  0.4 0.4 0.4 0.4 0.4 2.6 2.6 2.6 2.6 0.8 0.8 0.8 0.8 0.8 0.6 0.6 0.6 0.6
#>   10 0.3 0.3 0.3 0.3 0.3 2.5 2.5 2.5 2.5 0.7 0.7 0.7 0.7 0.7 0.5 0.5 0.5 0.5
#>     year
#> age   19  20
#>   1  0.3 0.3
#>   2  0.4 0.4
#>   3  0.5 0.5
#>   4  0.6 0.6
#>   5  0.7 0.7
#>   6  0.8 0.8
#>   7  0.8 0.8
#>   8  0.7 0.7
#>   9  0.6 0.6
#>   10 0.5 0.5
#> 
#> $N
#>     year
#> age           1          2          3          4          5          6
#>   1  18714214.3 22270001.2 33282059.7 41253730.6 56195408.4 26131502.9
#>   2  16933321.3 16933321.3 20150730.4 30114853.0 37327919.1 50847708.3
#>   3  13863830.9 13863830.9 13863830.9 16498022.7 24655956.3 30561515.3
#>   4  10270578.5 10270578.5 10270578.5 10270578.5 12222035.8 18265581.6
#>   5   6884574.7  6884574.7  6884574.7  6884574.7  6884574.7  8192675.6
#>   6   4175705.6  4175705.6  4175705.6  4175705.6  4175705.6  4175705.6
#>   7   2291675.8  2291675.8  2291675.8  2291675.8  2291675.8  2291675.8
#>   8   1257698.4  1257698.4  1257698.4  1257698.4  1257698.4  1257698.4
#>   9    762832.6   762832.6   762832.6   762832.6   762832.6   762832.6
#>   10   511342.0   511342.0   511342.0   511342.0   511342.0   511342.0
#>     year
#> age            7            8            9           10           11
#>   1  40286183.14 14334254.229 3.348069e+07 3.969820e+07 1.626868e+08
#>   2   2619914.26  4039046.139 1.437136e+06 3.356736e+06 2.407818e+07
#>   3   4612800.02   237673.260 3.664140e+05 1.303740e+05 1.842216e+06
#>   4   2508641.94   378641.684 1.950941e+04 3.007709e+04 6.474182e+04
#>   5   1356650.11   186325.813 2.812307e+04 1.449034e+03 1.351451e+04
#>   6    550592.96    91174.366 1.252212e+04 1.890026e+03 5.891331e+02
#>   7    253924.92    33481.593 5.544319e+03 7.614710e+02 6.953015e+02
#>   8    139356.95    15441.190 2.036018e+03 3.371504e+02 2.801295e+02
#>   9     84524.26     9365.555 1.037733e+03 1.368316e+02 1.370751e+02
#>   10    56658.31     6277.919 6.956133e+02 7.707615e+01 6.148241e+01
#>     year
#> age            12           13           14           15           16
#>   1  8.421193e+07 1.042648e+08 1.374702e+08 1.089984e+08 1.885946e+08
#>   2  9.867456e+07 5.107712e+07 6.323979e+07 8.337987e+07 8.074798e+07
#>   3  1.321438e+07 5.415375e+07 2.803172e+07 3.470673e+07 5.589120e+07
#>   4  9.148172e+05 6.562069e+06 2.689195e+07 1.392014e+07 2.105070e+07
#>   5  2.909037e+04 4.110539e+05 2.948528e+06 1.208333e+07 7.639534e+06
#>   6  5.494589e+03 1.182726e+04 1.671220e+05 1.198782e+06 6.000406e+06
#>   7  2.167300e+02 2.021346e+03 4.351007e+03 6.148076e+04 5.386474e+05
#>   8  2.557871e+02 7.973050e+01 7.436118e+02 1.600646e+03 2.762509e+04
#>   9  1.138922e+02 1.039953e+02 3.241600e+01 3.023300e+02 7.948573e+02
#>   10 6.159182e+01 5.117505e+01 4.672810e+01 1.456545e+01 1.659222e+02
#>     year
#> age            17           18           19          20
#>   1  2.278822e+08 1.700463e+08 129002383.46 152798112.8
#>   2  1.397143e+08 1.688193e+08 125973362.04  95567316.2
#>   3  5.412699e+07 9.365333e+07 113162972.95  84442469.8
#>   4  3.389973e+07 3.282968e+07  56803615.04  68636812.6
#>   5  1.155287e+07 1.860456e+07  18017310.67  31174484.9
#>   6  3.793680e+06 5.736984e+06   9238753.26   8947131.7
#>   7  2.696156e+06 1.704611e+06   2577793.04   4151239.4
#>   8  2.420299e+05 1.211461e+06    765930.88   1158277.1
#>   9  1.371821e+04 1.201885e+05    601593.79    380350.0
#>   10 4.362269e+02 7.528714e+03     65960.84    330161.7
#> 
#> $N_at_length
#>       year
#> length            1            2            3            4            5
#>    1   1.137041e-55 1.353084e-55 2.022157e-55 2.506501e-55 3.414330e-55
#>    4   1.375242e-15 1.636544e-15 2.445781e-15 3.031591e-15 4.129602e-15
#>    7   1.006246e-01 1.197437e-01 1.789545e-01 2.218174e-01 3.021574e-01
#>    10  4.200592e+04 4.998724e+04 7.470490e+04 9.259811e+04 1.261362e+05
#>    13  5.027425e+06 5.982658e+06 8.940960e+06 1.108249e+07 1.509645e+07
#>    16  1.154103e+07 1.373340e+07 2.052352e+07 2.544004e+07 3.465362e+07
#>    19  2.369356e+06 2.759109e+06 4.026586e+06 5.087532e+06 6.860793e+06
#>    22  3.618963e+06 3.629334e+06 4.338437e+06 6.458531e+06 8.020652e+06
#>    25  7.518777e+06 7.518853e+06 8.933256e+06 1.332737e+07 1.654256e+07
#>    28  5.331137e+06 5.331137e+06 6.177521e+06 8.964946e+06 1.137756e+07
#>    31  4.238841e+06 4.238841e+06 4.434407e+06 5.641802e+06 7.951868e+06
#>    34  5.123566e+06 5.123566e+06 5.145482e+06 6.095740e+06 8.946225e+06
#>    37  4.710628e+06 4.710628e+06 4.712047e+06 5.349503e+06 7.566927e+06
#>    40  4.088745e+06 4.088745e+06 4.088805e+06 4.345772e+06 5.619935e+06
#>    43  3.810177e+06 3.810177e+06 3.810178e+06 3.876120e+06 4.602732e+06
#>    46  3.425660e+06 3.425660e+06 3.425660e+06 3.437380e+06 3.836925e+06
#>    49  2.967369e+06 2.967369e+06 2.967369e+06 2.968917e+06 3.147738e+06
#>    52  2.535415e+06 2.535415e+06 2.535415e+06 2.535575e+06 2.597256e+06
#>    55  2.122815e+06 2.122815e+06 2.122815e+06 2.122828e+06 2.139487e+06
#>    58  1.736265e+06 1.736265e+06 1.736265e+06 1.736266e+06 1.739904e+06
#>    61  1.393112e+06 1.393112e+06 1.393112e+06 1.393112e+06 1.393776e+06
#>    64  1.100624e+06 1.100624e+06 1.100624e+06 1.100624e+06 1.100727e+06
#>    67  8.573613e+05 8.573613e+05 8.573613e+05 8.573613e+05 8.573756e+05
#>    70  6.567285e+05 6.567285e+05 6.567285e+05 6.567285e+05 6.567303e+05
#>    73  4.907280e+05 4.907280e+05 4.907280e+05 4.907280e+05 4.907282e+05
#>    76  3.535844e+05 3.535844e+05 3.535844e+05 3.535844e+05 3.535845e+05
#>    79  2.427636e+05 2.427636e+05 2.427636e+05 2.427636e+05 2.427636e+05
#>    82  1.573252e+05 1.573252e+05 1.573252e+05 1.573252e+05 1.573252e+05
#>    85  9.566228e+04 9.566228e+04 9.566228e+04 9.566228e+04 9.566228e+04
#>    88  5.443219e+04 5.443219e+04 5.443219e+04 5.443219e+04 5.443219e+04
#>    91  2.898096e+04 2.898096e+04 2.898096e+04 2.898096e+04 2.898096e+04
#>    94  1.446286e+04 1.446286e+04 1.446286e+04 1.446286e+04 1.446286e+04
#>    97  6.784318e+03 6.784318e+03 6.784318e+03 6.784318e+03 6.784318e+03
#>    100 3.001682e+03 3.001682e+03 3.001682e+03 3.001682e+03 3.001682e+03
#>    103 1.257339e+03 1.257339e+03 1.257339e+03 1.257339e+03 1.257339e+03
#>    106 5.005238e+02 5.005238e+02 5.005238e+02 5.005238e+02 5.005238e+02
#>    109 1.900691e+02 1.900691e+02 1.900691e+02 1.900691e+02 1.900691e+02
#>    112 6.910067e+01 6.910067e+01 6.910067e+01 6.910067e+01 6.910067e+01
#>    115 2.413389e+01 2.413389e+01 2.413389e+01 2.413389e+01 2.413389e+01
#>    118 8.123590e+00 8.123590e+00 8.123590e+00 8.123590e+00 8.123590e+00
#>    121 2.643343e+00 2.643343e+00 2.643343e+00 2.643343e+00 2.643343e+00
#>    124 8.337991e-01 8.337991e-01 8.337991e-01 8.337991e-01 8.337991e-01
#>    127 2.556238e-01 2.556238e-01 2.556238e-01 2.556238e-01 2.556238e-01
#>    130 7.635165e-02 7.635165e-02 7.635165e-02 7.635165e-02 7.635165e-02
#>    133 2.226788e-02 2.226788e-02 2.226788e-02 2.226788e-02 2.226788e-02
#>    136 6.354410e-03 6.354410e-03 6.354410e-03 6.354410e-03 6.354410e-03
#>    139 1.777589e-03 1.777589e-03 1.777589e-03 1.777589e-03 1.777589e-03
#>    142 4.883235e-04 4.883235e-04 4.883235e-04 4.883235e-04 4.883235e-04
#>    145 1.319495e-04 1.319495e-04 1.319495e-04 1.319495e-04 1.319495e-04
#>    148 3.512172e-05 3.512172e-05 3.512172e-05 3.512172e-05 3.512172e-05
#>    151 9.221860e-06 9.221860e-06 9.221860e-06 9.221860e-06 9.221860e-06
#>    154 2.391477e-06 2.391477e-06 2.391477e-06 2.391477e-06 2.391477e-06
#>    157 6.133649e-07 6.133649e-07 6.133649e-07 6.133649e-07 6.133649e-07
#>    160 1.557063e-07 1.557063e-07 1.557063e-07 1.557063e-07 1.557063e-07
#>    163 3.913992e-08 3.913992e-08 3.913992e-08 3.913992e-08 3.913992e-08
#>    166 9.820345e-09 9.820345e-09 9.820345e-09 9.820345e-09 9.820345e-09
#>    169 2.384355e-09 2.384355e-09 2.384355e-09 2.384355e-09 2.384355e-09
#>    172 6.244740e-10 6.244740e-10 6.244740e-10 6.244740e-10 6.244740e-10
#>    175 1.135407e-10 1.135407e-10 1.135407e-10 1.135407e-10 1.135407e-10
#>    178 5.677037e-11 5.677037e-11 5.677037e-11 5.677037e-11 5.677037e-11
#>       year
#> length            6            7            8            9           10
#>    1   1.587702e-55 2.447715e-55 8.709230e-56 2.034226e-55 2.411990e-55
#>    4   1.920312e-15 2.960490e-15 1.053374e-15 2.460378e-15 2.917281e-15
#>    7   1.405066e-01 2.166150e-01 7.707394e-02 1.800225e-01 2.134535e-01
#>    10  5.865476e+04 9.042636e+04 3.217466e+04 7.515076e+04 8.910658e+04
#>    13  7.020021e+06 1.082256e+07 3.850783e+06 8.994321e+06 1.066461e+07
#>    16  1.611930e+07 2.483940e+07 8.838587e+06 2.064321e+07 2.447699e+07
#>    19  3.819411e+06 4.465020e+06 1.647060e+06 3.696846e+06 4.414410e+06
#>    22  1.077829e+07 6.692302e+05 8.916995e+05 4.000823e+05 8.221015e+05
#>    25  2.251654e+07 1.177556e+06 1.776909e+06 6.343896e+05 1.476970e+06
#>    28  1.530781e+07 9.807142e+05 1.077590e+06 4.011856e+05 8.912701e+05
#>    31  1.014771e+07 1.223371e+06 3.013697e+05 1.711369e+05 2.339406e+05
#>    34  1.122969e+07 1.651836e+06 1.205259e+05 1.332266e+05 6.759579e+04
#>    37  9.784607e+06 1.442954e+06 1.091003e+05 9.137583e+04 3.673014e+04
#>    40  7.719005e+06 1.107668e+06 1.219949e+05 4.141297e+04 2.019835e+04
#>    43  6.497249e+06 9.253234e+05 1.264369e+05 1.727134e+04 1.147576e+04
#>    46  5.234820e+06 7.634570e+05 1.099831e+05 1.102218e+04 6.520785e+03
#>    49  3.998160e+06 6.007930e+05 8.673745e+04 9.821017e+03 3.286758e+03
#>    52  3.055585e+06 4.603843e+05 6.673097e+04 8.728681e+03 1.595653e+03
#>    55  2.363721e+06 3.434881e+05 5.043360e+04 7.076207e+03 9.234619e+02
#>    58  1.837050e+06 2.510672e+05 3.708791e+04 5.337307e+03 6.622383e+02
#>    61  1.430108e+06 1.829926e+05 2.658393e+04 3.861875e+03 5.068141e+02
#>    64  1.112386e+06 1.346482e+05 1.875592e+04 2.725553e+03 3.772361e+02
#>    67  8.606116e+05 1.001384e+05 1.318402e+04 1.889747e+03 2.690793e+02
#>    70  6.575181e+05 7.466594e+04 9.299195e+03 1.292583e+03 1.854939e+02
#>    73  4.908990e+05 5.501271e+04 6.554638e+03 8.730262e+02 1.243611e+02
#>    76  3.536179e+05 3.937402e+04 4.551210e+03 5.795071e+02 8.100906e+01
#>    79  2.427696e+05 2.695389e+04 3.057936e+03 3.742921e+02 5.096994e+01
#>    82  1.573262e+05 1.744631e+04 1.958146e+03 2.324375e+02 3.074495e+01
#>    85  9.566243e+04 1.060308e+04 1.183029e+03 1.373626e+02 1.766068e+01
#>    88  5.443221e+04 6.032018e+03 6.708609e+02 7.671841e+01 9.615195e+00
#>    91  2.898096e+04 3.211341e+03 3.565413e+02 4.035757e+01 4.949071e+00
#>    94  1.446286e+04 1.602563e+03 1.777622e+02 1.998384e+01 2.406829e+00
#>    97  6.784318e+03 7.517299e+02 8.334354e+01 9.326599e+00 1.106911e+00
#>    100 3.001682e+03 3.325970e+02 3.686488e+01 4.112721e+00 4.823542e-01
#>    103 1.257339e+03 1.393174e+02 1.543963e+01 1.718901e+00 1.996786e-01
#>    106 5.005238e+02 5.545966e+01 6.145739e+00 6.832397e-01 7.875798e-02
#>    109 1.900691e+02 2.106026e+01 2.333681e+00 2.591896e-01 2.969017e-02
#>    112 6.910067e+01 7.656574e+00 8.484013e-01 9.416385e-02 1.073135e-02
#>    115 2.413389e+01 2.674112e+00 2.963059e-01 3.287138e-02 3.730457e-03
#>    118 8.123590e+00 9.001195e-01 9.973725e-02 1.106090e-02 1.250910e-03
#>    121 2.643343e+00 2.928907e-01 3.245344e-02 3.598248e-03 4.057638e-04
#>    124 8.337991e-01 9.238758e-02 1.023688e-02 1.134813e-03 1.276612e-04
#>    127 2.556238e-01 2.832393e-02 3.138389e-03 3.478646e-04 3.905394e-05
#>    130 7.635165e-02 8.460004e-03 9.373966e-04 1.038935e-04 1.164393e-05
#>    133 2.226788e-02 2.467352e-03 2.733906e-04 3.029844e-05 3.390787e-06
#>    136 6.354410e-03 7.040887e-04 7.801530e-05 8.645611e-06 9.663577e-07
#>    139 1.777589e-03 1.969625e-04 2.182408e-05 2.418446e-06 2.700338e-07
#>    142 4.883235e-04 5.410779e-05 5.995315e-06 6.643561e-07 7.411168e-08
#>    145 1.319495e-04 1.462042e-05 1.619990e-06 1.795118e-07 2.000957e-08
#>    148 3.512172e-05 3.891598e-06 4.312013e-07 4.778085e-08 5.322338e-09
#>    151 9.221860e-06 1.021811e-06 1.132199e-07 1.254563e-08 1.396645e-09
#>    154 2.391477e-06 2.649832e-07 2.936097e-08 3.253361e-09 3.619846e-10
#>    157 6.133649e-07 6.796277e-08 7.530490e-09 8.344381e-10 9.281034e-11
#>    160 1.557063e-07 1.725275e-08 1.911659e-09 2.118178e-10 2.354770e-11
#>    163 3.913992e-08 4.336827e-09 4.805341e-10 5.324469e-11 5.916659e-12
#>    166 9.820345e-09 1.088125e-09 1.205677e-10 1.335928e-11 1.485102e-12
#>    169 2.384355e-09 2.641941e-10 2.927354e-11 3.243601e-12 3.594012e-13
#>    172 6.244740e-10 6.919369e-11 7.666880e-12 8.495145e-13 9.412889e-14
#>    175 1.135407e-10 1.258067e-11 1.393978e-12 1.544572e-13 1.711434e-14
#>    178 5.677037e-11 6.290336e-12 6.969891e-13 7.722859e-14 8.557172e-15
#>       year
#> length           11           12           13           14           15
#>    1   9.884555e-55 5.116563e-55 6.334937e-55 8.352436e-55 6.622542e-55
#>    4   1.195528e-14 6.188438e-15 7.662051e-15 1.010220e-14 8.009906e-15
#>    7   8.747519e-01 4.527996e-01 5.606219e-01 7.391642e-01 5.860740e-01
#>    10  3.651669e+05 1.890221e+05 2.340327e+05 3.085655e+05 2.446577e+05
#>    13  4.370452e+07 2.262287e+07 2.800990e+07 3.693026e+07 2.928155e+07
#>    16  1.003104e+08 5.193671e+07 6.429351e+07 8.476857e+07 6.721687e+07
#>    19  1.828454e+07 1.108402e+07 1.238799e+07 1.625612e+07 1.351360e+07
#>    22  5.541052e+06 2.100933e+07 1.105683e+07 1.371023e+07 1.786559e+07
#>    25  1.059676e+07 4.344482e+07 2.274760e+07 2.795192e+07 3.683995e+07
#>    28  6.450366e+06 2.679172e+07 1.685491e+07 1.840955e+07 2.412668e+07
#>    31  1.884650e+06 9.020196e+06 1.550240e+07 1.035869e+07 1.305411e+07
#>    34  7.833912e+05 5.130814e+06 1.871905e+07 1.076800e+07 1.268855e+07
#>    37  4.618358e+05 3.338339e+06 1.389222e+07 1.027590e+07 1.025028e+07
#>    40  1.963332e+05 1.515343e+06 6.902543e+06 9.422866e+06 7.174076e+06
#>    43  6.479402e+04 5.786339e+05 3.152799e+06 8.192467e+06 5.795242e+06
#>    46  2.281889e+04 2.347589e+05 1.540347e+06 5.692329e+06 5.066336e+06
#>    49  1.010321e+04 9.670843e+04 7.149243e+05 3.124446e+06 4.218790e+06
#>    52  5.046647e+03 3.637144e+04 2.954417e+05 1.477626e+06 3.117984e+06
#>    55  2.543991e+03 1.286414e+04 1.130863e+05 6.534887e+05 1.968277e+06
#>    58  1.252049e+03 4.742592e+03 4.186306e+04 2.770123e+05 1.062739e+06
#>    61  6.292787e+02 1.936461e+03 1.509336e+04 1.112715e+05 5.049911e+05
#>    64  3.518242e+02 8.581988e+02 5.301292e+03 4.209544e+04 2.186535e+05
#>    67  2.242278e+02 4.007584e+02 1.855317e+03 1.512589e+04 8.857078e+04
#>    70  1.532698e+02 1.993225e+02 6.734286e+02 5.235342e+03 3.403706e+04
#>    73  1.051627e+02 1.083832e+02 2.624754e+02 1.770456e+03 1.248609e+04
#>    76  6.999961e+01 6.395364e+01 1.115475e+02 5.944975e+02 4.392879e+03
#>    79  4.458975e+01 3.915034e+01 5.156345e+01 2.023589e+02 1.491881e+03
#>    82  2.700839e+01 2.371041e+01 2.547725e+01 7.141627e+01 4.933185e+02
#>    85  1.549237e+01 1.378758e+01 1.305541e+01 2.655091e+01 1.604007e+02
#>    88  8.394220e+00 7.591403e+00 6.708923e+00 1.041144e+01 5.178520e+01
#>    91  4.291872e+00 3.938720e+00 3.365525e+00 4.248964e+00 1.673463e+01
#>    94  2.071584e+00 1.925027e+00 1.620941e+00 1.767905e+00 5.438368e+00
#>    97  9.454248e-01 8.878065e-01 7.435275e-01 7.351303e-01 1.778004e+00
#>    100 4.089228e-01 3.874110e-01 3.240038e-01 3.008232e-01 5.827984e-01
#>    103 1.681031e-01 1.604589e-01 1.342109e-01 1.199129e-01 1.904506e-01
#>    106 6.588228e-02 6.329041e-02 5.296147e-02 4.628711e-02 6.167886e-02
#>    109 2.469423e-02 2.385336e-02 1.996772e-02 1.725337e-02 1.969755e-02
#>    112 8.880199e-03 8.618403e-03 7.215482e-03 6.205670e-03 6.181468e-03
#>    115 3.073100e-03 2.994653e-03 2.506964e-03 2.155041e-03 1.902379e-03
#>    118 1.026425e-03 1.003736e-03 8.400560e-04 7.235500e-04 5.736771e-04
#>    121 3.318000e-04 3.254487e-04 2.722746e-04 2.352952e-04 1.695170e-04
#>    124 1.040773e-04 1.023521e-04 8.559067e-05 7.426234e-05 4.911186e-05
#>    127 3.175586e-05 3.130016e-05 2.616173e-05 2.279538e-05 1.396320e-05
#>    130 9.446431e-06 9.329113e-06 7.793776e-06 6.819529e-06 3.900194e-06
#>    133 2.745403e-06 2.715912e-06 2.267857e-06 1.992368e-06 1.071501e-06
#>    136 7.810737e-07 7.738225e-07 6.458682e-07 5.695501e-07 2.898917e-07
#>    139 2.179299e-07 2.161835e-07 1.803602e-07 1.596002e-07 7.732908e-08
#>    142 5.973283e-08 5.932036e-08 4.947096e-08 4.391476e-08 2.035367e-08
#>    145 1.610883e-08 1.601315e-08 1.334970e-08 1.188445e-08 5.299454e-09
#>    148 4.280460e-09 4.258674e-09 3.549130e-09 3.167626e-09 1.361903e-09
#>    151 1.122250e-09 1.117371e-09 9.309217e-10 8.328154e-10 3.470157e-10
#>    154 2.906400e-10 2.895677e-10 2.411980e-10 2.161590e-10 8.744022e-11
#>    157 7.446863e-11 7.423427e-11 6.181015e-11 5.554141e-11 2.200669e-11
#>    160 1.888284e-11 1.883321e-11 1.568130e-11 1.409645e-11 5.432148e-12
#>    163 4.741327e-12 4.731559e-12 3.938608e-12 3.547750e-12 1.332961e-12
#>    166 1.190843e-12 1.187760e-12 9.889588e-13 8.891341e-13 3.420360e-13
#>    169 2.866886e-13 2.871988e-13 2.386260e-13 2.178902e-13 6.791776e-14
#>    172 7.508510e-14 7.521872e-14 6.249729e-14 5.706647e-14 1.778799e-14
#>    175 1.365184e-14 1.367613e-14 1.136314e-14 1.037572e-14 3.234179e-15
#>    178 6.825919e-15 6.838066e-15 5.681572e-15 5.187861e-15 1.617090e-15
#>       year
#> length           16           17           18           19           20
#>    1   1.145866e-54 1.384571e-54 1.033170e-54 7.837948e-55 9.283733e-55
#>    4   1.385916e-14 1.674626e-14 1.249610e-14 9.479930e-15 1.122859e-14
#>    7   1.014056e+00 1.225301e+00 9.143227e-01 6.936337e-01 8.215811e-01
#>    10  4.233195e+05 5.115044e+05 3.816858e+05 2.895587e+05 3.429706e+05
#>    13  5.066445e+07 6.121875e+07 4.568157e+07 3.465546e+07 4.104799e+07
#>    16  1.162927e+08 1.405248e+08 1.048695e+08 7.955695e+07 9.422403e+07
#>    19  2.218879e+07 2.760275e+07 2.181000e+07 1.650634e+07 1.854347e+07
#>    22  1.754609e+07 3.006778e+07 3.602711e+07 2.689403e+07 2.056273e+07
#>    25  3.580032e+07 6.170939e+07 7.471624e+07 5.598939e+07 4.246886e+07
#>    28  2.477235e+07 4.017512e+07 5.032561e+07 4.028958e+07 3.048053e+07
#>    31  1.776285e+07 2.099726e+07 3.179120e+07 3.374277e+07 2.538297e+07
#>    34  2.001591e+07 2.028028e+07 3.368410e+07 4.077069e+07 3.136471e+07
#>    37  1.624447e+07 1.753706e+07 2.694682e+07 3.473038e+07 2.942150e+07
#>    40  1.085698e+07 1.395692e+07 1.776753e+07 2.553648e+07 2.604501e+07
#>    43  7.836913e+06 1.160032e+07 1.301357e+07 1.989140e+07 2.363417e+07
#>    46  5.820227e+06 8.871045e+06 1.024290e+07 1.480723e+07 1.935765e+07
#>    49  4.272658e+06 6.166271e+06 7.921459e+06 1.026916e+07 1.440197e+07
#>    52  3.239837e+06 4.184200e+06 5.881166e+06 7.124473e+06 1.022105e+07
#>    55  2.482517e+06 2.871588e+06 4.122855e+06 5.050636e+06 6.993294e+06
#>    58  1.796710e+06 1.997929e+06 2.744764e+06 3.550935e+06 4.647385e+06
#>    61  1.172051e+06 1.392498e+06 1.782072e+06 2.412726e+06 3.053164e+06
#>    64  6.780822e+05 9.444121e+05 1.154147e+06 1.576241e+06 1.998473e+06
#>    67  3.492009e+05 6.028048e+05 7.479005e+05 1.000558e+06 1.295359e+06
#>    70  1.622989e+05 3.542408e+05 4.776080e+05 6.263385e+05 8.252550e+05
#>    73  6.926756e+04 1.901914e+05 2.939030e+05 3.893741e+05 5.160631e+05
#>    76  2.760184e+04 9.350459e+04 1.710001e+05 2.389263e+05 3.173945e+05
#>    79  1.041085e+04 4.241279e+04 9.304179e+04 1.425982e+05 1.918700e+05
#>    82  3.755383e+03 1.792166e+04 4.717618e+04 8.152620e+04 1.133167e+05
#>    85  1.305543e+03 7.124817e+03 2.232650e+04 4.416848e+04 6.474856e+04
#>    88  4.401732e+02 2.689162e+03 9.906092e+03 2.255130e+04 3.544547e+04
#>    91  1.447627e+02 9.710800e+02 4.144290e+03 1.083709e+04 1.845528e+04
#>    94  4.670202e+01 3.375909e+02 1.644639e+03 4.908577e+03 9.102300e+03
#>    97  1.485887e+01 1.135365e+02 6.226583e+02 2.101775e+03 4.247325e+03
#>    100 4.683897e+00 3.707794e+01 2.260625e+02 8.539023e+02 1.876519e+03
#>    103 1.467709e+00 1.179218e+01 7.905931e+01 3.304695e+02 7.866077e+02
#>    106 4.579329e-01 3.660785e+00 2.673471e+01 1.223065e+02 3.137196e+02
#>    109 1.422605e-01 1.111427e+00 8.769631e+00 4.344860e+01 1.194173e+02
#>    112 4.394411e-02 3.305347e-01 2.797897e+00 1.486662e+01 4.352608e+01
#>    115 1.346875e-02 9.642690e-02 8.701770e-01 4.915184e+00 1.524023e+01
#>    118 4.086502e-03 2.762984e-02 2.643334e-01 1.574778e+00 5.142187e+00
#>    121 1.224782e-03 7.785101e-03 7.856057e-02 4.902298e-01 1.676895e+00
#>    124 3.620244e-04 2.159367e-03 2.287853e-02 1.486367e-01 5.299994e-01
#>    127 1.054188e-04 5.902097e-04 6.537753e-03 4.398976e-02 1.627744e-01
#>    130 3.022437e-05 1.591185e-04 1.835560e-03 1.273350e-02 4.869539e-02
#>    133 8.531064e-06 4.235114e-05 5.069635e-04 3.611708e-03 1.422178e-02
#>    136 2.371199e-06 1.113820e-05 1.378965e-04 1.005496e-03 4.063349e-03
#>    139 6.493727e-07 2.897131e-06 3.698067e-05 2.751872e-04 1.137917e-03
#>    142 1.752709e-07 7.455479e-07 9.787695e-06 7.414446e-05 3.128959e-04
#>    145 4.673141e-08 1.903160e-07 2.559545e-06 1.969344e-05 8.461841e-05
#>    148 1.227857e-08 4.802750e-08 6.617598e-07 5.162618e-06 2.253988e-05
#>    151 3.194402e-09 1.205580e-08 1.694338e-07 1.337388e-06 5.922133e-06
#>    154 8.190454e-10 2.977200e-09 4.284252e-08 3.426460e-07 1.536612e-06
#>    157 2.105559e-10 7.531233e-10 1.085682e-08 8.700954e-08 3.943301e-07
#>    160 5.246868e-11 1.792582e-10 2.679625e-09 2.187311e-08 1.001373e-07
#>    163 1.312563e-11 4.354579e-11 6.609509e-10 5.439934e-09 2.518455e-08
#>    166 3.308075e-12 1.127931e-11 1.687826e-10 1.378512e-09 6.315857e-09
#>    169 7.736848e-13 2.034099e-12 3.510592e-11 3.075712e-10 1.539523e-09
#>    172 2.026317e-13 5.327401e-13 9.194407e-12 8.055437e-11 4.032084e-10
#>    175 3.684213e-14 9.686184e-14 1.671710e-12 1.464625e-11 7.331062e-11
#>    178 1.842107e-14 4.843092e-14 8.358552e-13 7.323124e-12 3.665531e-11
#> 
#> $sim_length
#> function (age = NULL, length_age_key = FALSE) 
#> {
#>     pred_length <- Linf - (Linf - L0) * exp(-K * age)
#>     if (length_age_key) {
#>         breaks <- seq(0, ceiling(max(pred_length)) * 10, length_group)
#>         lak <- matrix(NA, ncol = length(pred_length), nrow = length(breaks) - 
#>             1, dimnames = list(length = group_lengths(breaks, 
#>             length_group)[-length(breaks)], age = age))
#>         for (i in seq_along(breaks)[-1]) {
#>             for (j in seq_along(pred_length)) {
#>                 lak[i - 1, j] <- stats::pnorm(log(breaks[i]), 
#>                   log(pred_length[j]), sd = log_sd) - stats::pnorm(log(breaks[i - 
#>                   1]), log(pred_length[j]), sd = log_sd)
#>             }
#>         }
#>         lak <- lak[rowSums(lak) > 0, ]
#>         if (plot) 
#>             graphics::image(x = as.numeric(colnames(lak)), y = as.numeric(rownames(lak)), 
#>                 z = t(lak), xlab = "Age", ylab = "Length", main = "P(Length | Age)", 
#>                 col = viridis::viridis(100))
#>         return(lak)
#>     }
#>     else {
#>         log_length <- stats::rnorm(length(age), log(pred_length), 
#>             sd = log_sd)
#>         length <- round(exp(log_length), digits)
#>         if (plot) 
#>             plot(age, length)
#>         return(length)
#>     }
#> }
#> <bytecode: 0x55d5ac817108>
#> <environment: 0x55d5ae88f0b0>
#> 

N0_fun <- sim_N0(N0 = "exp", plot = TRUE)
N0_fun(R0 = 1000, Z0 = rep(0.5, 20), ages = 1:20)

#>  [1] 1.000000e+03 6.065307e+02 3.678794e+02 2.231302e+02 1.353353e+02
#>  [6] 8.208500e+01 4.978707e+01 3.019738e+01 1.831564e+01 1.110900e+01
#> [11] 6.737947e+00 4.086771e+00 2.478752e+00 1.503439e+00 9.118820e-01
#> [16] 5.530844e-01 3.354626e-01 2.034684e-01 1.234098e-01 7.485183e-02
sim_abundance(N0 = sim_N0(N0 = "exp", plot = TRUE))

#> $ages
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
#> 
#> $lengths
#>  [1]   1   4   7  10  13  16  19  22  25  28  31  34  37  40  43  46  49  52  55
#> [20]  58  61  64  67  70  73  76  79  82  85  88  91  94  97 100 103 106 109 112
#> [39] 115 118 121 124 127 130 133 136 139 142 145 148 151 154 157 160 163 166 169
#> [58] 172 175 178 181 184 187 190 193 196 199 202 205 208 211 214 217 220 223 226
#> [77] 229 232 235 238
#> 
#> $years
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
#> 
#> $R
#>          1          2          3          4          5          6          7 
#>   77185873   77591477   96950390   67344649  144304909  127403063   80655898 
#>          8          9         10         11         12         13         14 
#>   96214887  248925463  525039602  965920721  260737682  326702940  219957827 
#>         15         16         17         18         19         20 
#>  205807765  512683691  608128382 1158021680  972884248 1295782970 
#> 
#> $N0
#>  [1] 7.718587e+07 2.739352e+07 9.401162e+06 3.734775e+06 1.046829e+06
#>  [6] 1.464194e+05 1.394668e+04 1.565496e+03 2.243952e+02 2.484094e+01
#> [11] 9.922032e-01 9.589503e-02 1.222797e-02 2.972111e-03 9.109669e-04
#> [16] 4.226651e-04 2.262927e-04 1.266726e-04 6.045825e-05 3.768918e-05
#> 
#> $Z
#>     year
#> age          1         2         3         4         5         6         7
#>   1  1.0359100 0.4801727 0.4467649 0.3604829 0.6663818 0.5063631 0.3499089
#>   2  1.0694731 0.3933686 0.4653279 0.3649568 0.6738376 0.4643381 0.3300455
#>   3  0.9231458 0.3181113 0.4744494 0.3408695 0.6492715 0.4604058 0.4021936
#>   4  1.2719216 0.4561412 0.7516566 0.3642635 0.7301755 0.5648415 0.3049008
#>   5  1.9670461 0.7831087 1.0091670 0.4021817 0.8260117 0.5724578 0.3798606
#>   6  2.3512333 0.9034031 1.2515656 0.3940968 0.8014877 0.4985168 0.3450496
#>   7  2.1870388 0.7591473 0.6894881 0.3706382 0.6820201 0.4366737 0.4587572
#>   8  1.9425495 0.4779916 0.4803397 0.3051078 0.6852813 0.5482185 0.5510458
#>   9  2.2009155 0.6796457 0.6314731 0.3981281 0.6421575 0.5222691 0.3896181
#>   10 3.2203205 0.5830944 0.5438730 0.4310906 0.5921461 0.6644736 0.4037233
#>   11 2.3366738 0.5877619 0.4410792 0.3342857 0.5357206 0.6423691 0.3537966
#>   12 2.0595283 0.4656122 0.4076173 0.3053999 0.4966272 0.7329585 0.4081291
#>   13 1.4144533 0.3857973 0.3696965 0.2360869 0.4296708 0.4744650 0.4717373
#>   14 1.1825213 0.4317338 0.5306053 0.2366303 0.3708351 0.4207130 0.4472702
#>   15 0.7679265 0.3344036 0.5290740 0.2278471 0.2587506 0.3902083 0.3128130
#>   16 0.6247509 0.2694046 0.4858275 0.2242173 0.2714260 0.3400929 0.2393916
#>   17 0.5802230 0.2467600 0.4288831 0.2072756 0.2750632 0.2393191 0.2193733
#>   18 0.7396530 0.2277101 0.4793862 0.2715050 0.3314076 0.2787803 0.2366355
#>   19 0.4725799 0.2029786 0.4285689 0.3012973 0.2764598 0.2999726 0.3508423
#>   20 0.5893409 0.2214901 0.4508845 0.3082173 0.3518883 0.3264425 0.4020361
#>     year
#> age          8         9        10        11        12        13        14
#>   1  0.8502703 0.8395190 0.8099692 1.0487798 0.5706457 0.7950093 1.1166256
#>   2  0.5981190 0.7575529 0.5766914 0.5242835 0.3454542 0.6990778 0.9371245
#>   3  0.8473151 0.9808365 0.6091486 0.6196463 0.4557801 0.7278242 1.1731344
#>   4  0.6742314 1.0570611 0.5143162 0.6823565 0.7493602 0.9925549 1.0510993
#>   5  0.5035900 0.6561503 0.4304773 0.6309429 0.8268374 1.0440851 1.1051181
#>   6  0.4957714 0.6750419 0.5463735 0.7890616 1.1880974 1.4548945 1.0907928
#>   7  0.4326489 0.6584346 0.6991138 0.7466182 0.7628782 1.3068327 0.7009855
#>   8  0.3918078 0.6411323 0.6863487 0.4888640 0.4160395 0.9421323 0.7322540
#>   9  0.3966237 0.5474334 0.5984709 0.4815557 0.4184468 0.8776134 0.5390637
#>   10 0.3329589 0.4380068 0.4826119 0.4056631 0.3820693 0.6580826 0.5231587
#>   11 0.2989141 0.3433674 0.2901025 0.2119024 0.2887091 0.6773801 0.5069134
#>   12 0.2346922 0.3074850 0.3139244 0.2024494 0.3023544 0.8658199 0.7414931
#>   13 0.2282335 0.3242165 0.3235622 0.2068326 0.2581795 1.0945234 0.6390973
#>   14 0.3017679 0.3388961 0.4589987 0.2025023 0.2306213 1.0803692 0.4430057
#>   15 0.3339309 0.3783177 0.5478581 0.2591958 0.2290971 1.1081175 0.3270982
#>   16 0.3452669 0.3755858 0.4194331 0.2006793 0.2035605 0.9852735 0.3300246
#>   17 0.2410631 0.4017947 0.4518933 0.1769798 0.2374440 0.6651874 0.3381479
#>   18 0.2591908 0.3353242 0.4177502 0.1831278 0.3419878 0.7491500 0.4945085
#>   19 0.3031854 0.4613416 0.3990043 0.2073712 0.3483512 0.6792689 0.4021419
#>   20 0.3095969 0.4025753 0.3044175 0.1821621 0.4608714 0.5880893 0.4015509
#>     year
#> age         15        16        17        18        19        20
#>   1  0.3522306 0.6897408 0.2828624 0.8652762 0.7690436 0.4223736
#>   2  0.2468664 0.7215721 0.3454148 0.9672073 0.6901825 0.4272370
#>   3  0.2180868 0.6597178 0.3752942 1.0688570 0.8422766 0.8099662
#>   4  0.1576517 0.5346569 0.2705951 0.7004768 0.7039670 0.5840931
#>   5  0.2097664 0.5511853 0.3588915 0.8369877 0.9382629 0.6843423
#>   6  0.2176602 0.5105822 0.3794955 0.5960824 0.9041066 0.8218331
#>   7  0.1925414 0.5962474 0.4034225 0.6366712 1.0803064 1.3909378
#>   8  0.2384231 0.4402533 0.4062518 0.8939380 1.1947321 1.8348503
#>   9  0.2891177 0.5305201 0.5166021 1.0969898 1.7565310 2.1854664
#>   10 0.3217789 0.3870067 0.4180503 0.5905933 1.2578331 1.7228142
#>   11 0.1934196 0.2442829 0.2320495 0.5179656 1.3152648 1.2283533
#>   12 0.2228593 0.3049216 0.2320970 0.6119310 1.3566192 0.7726868
#>   13 0.2833171 0.2677461 0.2232412 0.7063756 1.5646889 0.8009351
#>   14 0.3728205 0.2779220 0.2786468 0.5256777 1.5112719 0.8269050
#>   15 0.2944633 0.1798884 0.4276999 0.6066840 1.4826454 0.9197497
#>   16 0.2579926 0.2197176 0.4279387 0.5430336 1.1381071 1.1022476
#>   17 0.2994942 0.2360361 0.3208563 0.4697974 0.8927436 0.8103016
#>   18 0.4008061 0.2974764 0.3145256 0.4805453 1.2070802 1.0389174
#>   19 0.5316709 0.3223980 0.3793755 0.4438255 1.2108258 0.8866569
#>   20 0.7008098 0.3710734 0.5195451 0.5619872 1.5918596 1.1999753
#> 
#> $N
#>     year
#> age             1            2            3            4            5
#>   1  7.718587e+07 7.759148e+07 9.695039e+07 6.734465e+07 1.443049e+08
#>   2  2.739352e+07 2.739352e+07 4.800403e+07 6.201861e+07 4.696209e+07
#>   3  9.401162e+06 9.401162e+06 1.848460e+07 3.014313e+07 4.305497e+07
#>   4  3.734775e+06 3.734775e+06 6.839551e+06 1.150163e+07 2.143634e+07
#>   5  1.046829e+06 1.046829e+06 2.366818e+06 3.225427e+06 7.990274e+06
#>   6  1.464194e+05 1.464194e+05 4.783834e+05 8.627583e+05 2.157357e+06
#>   7  1.394668e+04 1.394668e+04 5.932744e+04 1.368447e+05 5.817482e+05
#>   8  1.565496e+03 1.565496e+03 6.527959e+03 2.977246e+04 9.446304e+04
#>   9  2.243952e+02 2.243952e+02 9.706505e+02 4.038021e+03 2.194361e+04
#>   10 2.484094e+01 2.484094e+01 1.137227e+02 5.161996e+02 2.711838e+03
#>   11 9.922032e-01 9.922032e-01 1.386543e+01 6.601552e+01 3.354265e+02
#>   12 9.589503e-02 9.589503e-02 5.512376e-01 8.920211e+00 4.725716e+01
#>   13 1.222797e-02 1.222797e-02 6.019817e-02 3.667017e-01 6.572667e+00
#>   14 2.972111e-03 2.972111e-03 8.313898e-03 4.159356e-02 2.895888e-01
#>   15 9.109669e-04 9.109669e-04 1.930036e-03 4.890640e-03 3.282909e-02
#>   16 4.226651e-04 4.226651e-04 6.520381e-04 1.137081e-03 3.894153e-03
#>   17 2.262927e-04 2.262927e-04 3.228460e-04 4.011260e-04 9.086889e-04
#>   18 1.266726e-04 1.266726e-04 1.768088e-04 2.102490e-04 3.260334e-04
#>   19 6.045825e-05 6.045825e-05 1.008764e-04 1.094735e-04 1.602584e-04
#>   20 3.768918e-05 3.768918e-05 4.935181e-05 6.571499e-05 8.099485e-05
#>     year
#> age             6            7            8            9           10
#>   1  1.274031e+08 8.065590e+07 9.621489e+07 2.489255e+08 5.250396e+08
#>   2  7.410972e+07 7.678372e+07 5.684243e+07 4.111256e+07 1.075154e+08
#>   3  2.393886e+07 4.658174e+07 5.519913e+07 3.125452e+07 1.927407e+07
#>   4  2.249305e+07 1.510608e+07 3.115625e+07 2.365636e+07 1.172036e+07
#>   5  1.032855e+07 1.278618e+07 1.113615e+07 1.587560e+07 8.220006e+06
#>   6  3.498077e+06 5.826720e+06 8.745192e+06 6.730210e+06 8.236975e+06
#>   7  9.679218e+05 2.124840e+06 4.126397e+06 5.326704e+06 3.426586e+06
#>   8  2.941288e+05 6.254539e+05 1.343045e+06 2.677158e+06 2.757427e+06
#>   9  4.760451e+04 1.700001e+05 3.604783e+05 9.076753e+05 1.410048e+06
#>   10 1.154576e+04 2.823771e+04 1.151437e+05 2.424530e+05 5.250289e+05
#>   11 1.500023e+03 5.940807e+03 1.885796e+04 8.253498e+04 1.564601e+05
#>   12 1.963075e+02 7.890791e+02 4.170552e+03 1.398550e+04 5.854846e+04
#>   13 2.875976e+01 9.432288e+01 5.246532e+02 3.298132e+03 1.028345e+04
#>   14 4.276988e+00 1.789483e+01 5.884969e+01 4.175916e+02 2.384858e+03
#>   15 1.998619e-01 2.808178e+00 1.144144e+01 4.351991e+01 2.975576e+02
#>   16 2.534457e-02 1.352897e-01 2.053864e+00 8.193253e+00 2.981170e+01
#>   17 2.968480e-03 1.803784e-02 1.064874e-01 1.454200e+00 5.627837e+00
#>   18 6.901711e-04 2.336680e-03 1.448478e-02 8.367696e-02 9.730316e-01
#>   19 2.340635e-04 5.222567e-04 1.844292e-03 1.117755e-02 5.983791e-02
#>   20 1.215502e-04 1.734032e-04 3.677182e-04 1.361940e-03 7.046745e-03
#>     year
#> age            11           12           13           14           15
#>   1  9.659207e+08 2.607377e+08 3.267029e+08 2.199578e+08 2.058078e+08
#>   2  2.335753e+08 3.384248e+08 1.473586e+08 1.475315e+08 7.201037e+07
#>   3  6.039723e+07 1.382718e+08 2.395705e+08 7.324364e+07 5.779588e+07
#>   4  1.048150e+07 3.250185e+07 8.765783e+07 1.157027e+08 2.266126e+07
#>   5  7.007712e+06 5.297610e+06 1.536261e+07 3.248850e+07 4.044425e+07
#>   6  5.344637e+06 3.728733e+06 2.317336e+06 5.407850e+06 1.075927e+07
#>   7  4.769587e+06 2.427913e+06 1.136520e+06 5.409242e+05 1.816767e+06
#>   8  1.703101e+06 2.260626e+06 1.132190e+06 3.076287e+05 2.683504e+05
#>   9  1.388119e+06 1.044550e+06 1.491231e+06 4.413229e+05 1.479153e+05
#>   10 7.750347e+05 8.576096e+05 6.873854e+05 6.200152e+05 2.574211e+05
#>   11 3.240317e+05 5.165875e+05 5.852737e+05 3.559579e+05 3.674493e+05
#>   12 1.170614e+05 2.621558e+05 3.870430e+05 2.972874e+05 2.144120e+05
#>   13 4.277400e+04 9.560733e+04 1.937531e+05 1.628315e+05 1.416284e+05
#>   14 7.440766e+03 3.478192e+04 7.385250e+04 6.484898e+04 8.593735e+04
#>   15 1.507030e+03 6.076759e+03 2.761824e+04 2.507072e+04 4.163976e+04
#>   16 1.720439e+02 1.162933e+03 4.832551e+03 9.118990e+03 1.807632e+04
#>   17 1.959879e+01 1.407620e+02 9.487449e+02 1.804171e+03 6.555697e+03
#>   18 3.581680e+00 1.641980e+01 1.110107e+02 4.878230e+02 1.286536e+03
#>   19 6.407673e-01 2.982328e+00 1.166392e+01 5.248233e+01 2.975089e+02
#>   20 4.015051e-02 5.207630e-01 2.105079e+00 5.913462e+00 3.510469e+01
#>     year
#> age            16           17           18           19           20
#>   1  5.126837e+08 6.081284e+08 1.158022e+09 9.728842e+08 1.295783e+09
#>   2  1.447071e+08 2.572165e+08 4.582998e+08 4.874522e+08 4.508892e+08
#>   3  5.625775e+07 7.032588e+07 1.820904e+08 1.742196e+08 2.444497e+08
#>   4  4.647110e+07 2.908510e+07 4.832001e+07 6.253000e+07 7.504139e+07
#>   5  1.935606e+07 2.722604e+07 2.218976e+07 2.398357e+07 3.092854e+07
#>   6  3.279113e+07 1.115424e+07 1.901603e+07 9.608452e+06 9.384937e+06
#>   7  8.654746e+06 1.967947e+07 7.631806e+06 1.047718e+07 3.890496e+06
#>   8  1.498579e+06 4.767683e+06 1.314647e+07 4.037611e+06 3.556914e+06
#>   9  2.114251e+05 9.648951e+05 3.175956e+06 5.377455e+06 1.222528e+06
#>   10 1.107773e+05 1.243811e+05 5.756025e+05 1.060371e+06 9.283784e+05
#>   11 1.865938e+05 7.522737e+04 8.188372e+04 3.188829e+05 3.014310e+05
#>   12 3.028282e+05 1.461526e+05 5.964830e+04 4.878069e+04 8.558922e+04
#>   13 1.715783e+05 2.232393e+05 1.158799e+05 3.234743e+04 1.256249e+04
#>   14 1.066859e+05 1.312749e+05 1.785740e+05 5.717854e+04 6.765564e+03
#>   15 5.919268e+04 8.079922e+04 9.934981e+04 1.055648e+05 1.261525e+04
#>   16 3.101876e+04 4.944740e+04 5.268166e+04 5.416110e+04 2.396705e+04
#>   17 1.396578e+04 2.490017e+04 3.223236e+04 3.060716e+04 1.735457e+04
#>   18 4.859037e+03 1.102950e+04 1.806576e+04 2.014938e+04 1.253457e+04
#>   19 8.616957e+02 3.608759e+03 8.053030e+03 1.117270e+04 6.026059e+03
#>   20 1.748229e+02 6.242209e+02 2.469432e+03 5.166642e+03 3.328917e+03
#> 
#> $N_at_length
#>       year
#> length            1            2            3            4            5
#>    1   4.689672e-55 4.714316e-55 5.890528e-55 4.091737e-55 8.767702e-55
#>    4   5.672118e-15 5.701924e-15 7.124542e-15 4.948921e-15 1.060446e-14
#>    7   4.150212e-01 4.172021e-01 5.212931e-01 3.621058e-01 7.759139e-01
#>    10  1.732514e+05 1.741618e+05 2.176148e+05 1.511618e+05 3.239068e+05
#>    13  2.073537e+07 2.084433e+07 2.604495e+07 1.809160e+07 3.876636e+07
#>    16  4.759411e+07 4.784419e+07 5.978326e+07 4.153150e+07 8.898020e+07
#>    19  8.974970e+06 9.019429e+06 1.152852e+07 8.546654e+06 1.669953e+07
#>    22  5.990019e+06 5.991202e+06 1.038529e+07 1.324896e+07 1.030664e+07
#>    25  1.209333e+07 1.209334e+07 2.120232e+07 2.742514e+07 2.087930e+07
#>    28  7.800120e+06 7.800120e+06 1.379572e+07 1.821892e+07 1.507456e+07
#>    31  3.828096e+06 3.828096e+06 7.168713e+06 1.070309e+07 1.277859e+07
#>    34  3.467572e+06 3.467572e+06 6.760458e+06 1.092560e+07 1.549967e+07
#>    37  2.762393e+06 2.762393e+06 5.364975e+06 8.783556e+06 1.319636e+07
#>    40  1.865722e+06 1.865722e+06 3.554404e+06 5.861904e+06 9.706181e+06
#>    43  1.339458e+06 1.339458e+06 2.530768e+06 4.158433e+06 7.621364e+06
#>    46  9.396106e+05 9.396106e+05 1.818665e+06 2.914001e+06 5.766068e+06
#>    49  5.988359e+05 5.988359e+05 1.223272e+06 1.884819e+06 4.026796e+06
#>    52  3.571806e+05 3.571806e+05 7.825326e+05 1.172369e+06 2.695659e+06
#>    55  2.017729e+05 2.017729e+05 4.757989e+05 7.166616e+05 1.743869e+06
#>    58  1.065216e+05 1.065216e+05 2.711137e+05 4.247301e+05 1.082350e+06
#>    61  5.250056e+04 5.250056e+04 1.448585e+05 2.413549e+05 6.468416e+05
#>    64  2.447482e+04 2.447482e+04 7.324528e+04 1.313451e+05 3.742809e+05
#>    67  1.093759e+04 1.093759e+04 3.530113e+04 6.867980e+04 2.096002e+05
#>    70  4.726818e+03 4.726818e+03 1.630027e+04 3.471226e+04 1.132768e+05
#>    73  1.988976e+03 1.988976e+03 7.254692e+03 1.706906e+04 5.902666e+04
#>    76  8.207240e+02 8.207240e+02 3.134990e+03 8.199535e+03 2.970960e+04
#>    79  3.342976e+02 3.342976e+02 1.324684e+03 3.849737e+03 1.449045e+04
#>    82  1.349887e+02 1.349887e+02 5.503252e+02 1.763380e+03 6.869495e+03
#>    85  5.410175e+01 5.410175e+01 2.255406e+02 7.864311e+02 3.171384e+03
#>    88  2.149196e+01 2.149196e+01 9.131654e+01 3.411886e+02 1.426704e+03
#>    91  8.438367e+00 8.438367e+00 3.652198e+01 1.440707e+02 6.253820e+02
#>    94  3.264116e+00 3.264116e+00 1.441402e+01 5.930442e+01 2.670793e+02
#>    97  1.240454e+00 1.240454e+00 5.605583e+00 2.384729e+01 1.111679e+02
#>    100 4.622215e-01 4.622215e-01 2.145209e+00 9.387970e+00 4.514428e+01
#>    103 1.687172e-01 1.687172e-01 8.070352e-01 3.625180e+00 1.791395e+01
#>    106 6.033190e-02 6.033190e-02 2.983006e-01 1.375314e+00 6.959455e+00
#>    109 2.115919e-02 2.115919e-02 1.083255e-01 5.132354e-01 2.652340e+00
#>    112 7.293869e-03 7.293869e-03 3.866332e-02 1.885672e-01 9.935455e-01
#>    115 2.479481e-03 2.479481e-03 1.357470e-02 6.825749e-02 3.664274e-01
#>    118 8.350528e-04 8.350528e-04 4.694508e-03 2.435685e-02 1.332423e-01
#>    121 2.803362e-04 2.803362e-04 1.601994e-03 8.572864e-03 4.782316e-02
#>    124 9.453799e-05 9.453799e-05 5.407202e-04 2.978127e-03 1.695724e-02
#>    127 3.231433e-05 3.231433e-05 1.810696e-04 1.021905e-03 5.944176e-03
#>    130 1.129925e-05 1.129925e-05 6.038469e-05 3.466966e-04 2.061081e-03
#>    133 4.072813e-06 4.072813e-06 2.014638e-05 1.164348e-04 7.072781e-04
#>    136 1.519455e-06 1.519455e-06 6.759425e-06 3.876606e-05 2.403274e-04
#>    139 5.862762e-07 5.862762e-07 2.293116e-06 1.281818e-05 8.090574e-05
#>    142 2.327602e-07 2.327602e-07 7.905313e-07 4.218033e-06 2.700186e-05
#>    145 9.435753e-08 9.435753e-08 2.779944e-07 1.384660e-06 8.940614e-06
#>    148 3.873684e-08 3.873684e-08 9.988703e-08 4.546210e-07 2.939350e-06
#>    151 1.598922e-08 1.598922e-08 3.665378e-08 1.497075e-07 9.604231e-07
#>    154 6.597890e-09 6.597890e-09 1.369845e-08 4.957488e-08 3.121981e-07
#>    157 2.711088e-09 2.711088e-09 5.194113e-09 1.655315e-08 1.010889e-07
#>    160 1.106113e-09 1.106113e-09 1.988463e-09 5.581141e-09 3.263587e-08
#>    163 4.474068e-10 4.474068e-10 7.654671e-10 1.903166e-09 1.052018e-08
#>    166 1.792528e-10 1.792528e-10 2.952437e-10 6.567608e-10 3.391581e-09
#>    169 7.108133e-11 7.108133e-11 1.136623e-10 2.288480e-10 1.092856e-09
#>    172 2.791105e-11 2.791105e-11 4.364526e-11 8.066472e-11 3.535598e-10
#>    175 1.084751e-11 1.084751e-11 1.666427e-11 2.860829e-11 1.144653e-10
#>    178 4.177420e-12 4.177420e-12 6.335876e-12 1.025585e-11 3.744124e-11
#>    181 1.592374e-12 1.592374e-12 2.387702e-12 3.667904e-12 1.218649e-11
#>    184 6.018483e-13 6.018483e-13 8.939989e-13 1.314964e-12 3.983242e-12
#>    187 2.256343e-13 2.256343e-13 3.336488e-13 4.777874e-13 1.337796e-12
#>    190 8.386671e-14 8.386671e-14 1.229578e-13 1.707368e-13 4.387567e-13
#>    193 3.093726e-14 3.093726e-14 4.512683e-14 6.050389e-14 1.418406e-13
#>    196 1.134469e-14 1.134469e-14 1.652960e-14 2.254261e-14 5.229970e-14
#>    199 4.125180e-15 4.125180e-15 5.976111e-15 7.745388e-15 1.585479e-14
#>    202 1.492481e-15 1.492481e-15 2.157622e-15 2.782440e-15 5.520536e-15
#>    205 5.359912e-16 5.359912e-16 7.712924e-16 9.759179e-16 1.639108e-15
#>    208 1.917870e-16 1.917870e-16 2.755646e-16 3.479958e-16 5.743611e-16
#>    211 6.852025e-17 6.852025e-17 9.862730e-17 1.267271e-16 2.229567e-16
#>    214 2.417725e-17 2.417725e-17 3.458246e-17 4.313409e-17 6.594397e-17
#>    217 8.570766e-18 8.570766e-18 1.229044e-17 1.550433e-17 2.530982e-17
#>    220 2.992422e-18 2.992422e-18 4.263043e-18 5.283290e-18 7.613498e-18
#>    223 1.035153e-18 1.035153e-18 1.472329e-18 1.813038e-18 2.516166e-18
#>    226 3.621333e-19 3.621333e-19 5.145250e-19 6.349168e-19 8.901945e-19
#>    229 1.120461e-19 1.120461e-19 1.575734e-19 1.959874e-19 2.602340e-19
#>    232 5.259396e-20 5.259396e-20 7.490369e-20 9.142531e-20 1.257349e-19
#>    235 1.508089e-20 1.508089e-20 2.215783e-20 2.674566e-20 3.577672e-20
#>    238 4.184340e-21 4.184340e-21 5.479152e-21 7.295830e-21 8.992235e-21
#>       year
#> length            6            7            8            9           10
#>    1   7.740777e-55 4.900505e-55 5.845840e-55 1.512425e-54 3.190044e-54
#>    4   9.362402e-15 5.927118e-15 7.070493e-15 1.829265e-14 3.858331e-14
#>    7   6.850343e-01 4.336792e-01 5.173384e-01 1.338449e+00 2.823089e+00
#>    10  2.859689e+05 1.810402e+05 2.159639e+05 5.587380e+05 1.178504e+06
#>    13  3.422582e+07 2.166756e+07 2.584736e+07 6.687184e+07 1.410477e+08
#>    16  7.856316e+07 4.974094e+07 5.933109e+07 1.534846e+08 3.237365e+08
#>    19  1.535683e+07 1.028306e+07 1.161393e+07 2.805721e+07 5.956963e+07
#>    22  1.596763e+07 1.639620e+07 1.224655e+07 9.379791e+06 2.415595e+07
#>    25  3.270711e+07 3.400481e+07 2.528723e+07 1.824617e+07 4.737324e+07
#>    28  2.101002e+07 2.314102e+07 1.844170e+07 1.279151e+07 2.950169e+07
#>    31  1.006634e+07 1.537075e+07 1.619356e+07 9.736692e+06 1.098665e+07
#>    34  9.319341e+06 1.666347e+07 1.997823e+07 1.158836e+07 7.604444e+06
#>    37  8.763908e+06 1.325942e+07 1.739974e+07 1.068786e+07 6.246531e+06
#>    40  8.176162e+06 8.649435e+06 1.337952e+07 9.348898e+06 5.019334e+06
#>    43  7.667371e+06 6.518532e+06 1.089345e+07 8.736808e+06 4.499572e+06
#>    46  6.366976e+06 5.641546e+06 8.465201e+06 7.789363e+06 4.117936e+06
#>    49  4.790505e+06 4.956841e+06 6.305434e+06 6.571403e+06 3.809439e+06
#>    52  3.446505e+06 4.157896e+06 4.898407e+06 5.369759e+06 3.584883e+06
#>    55  2.382099e+06 3.248688e+06 3.988073e+06 4.289268e+06 3.304848e+06
#>    58  1.572432e+06 2.377530e+06 3.228946e+06 3.413238e+06 2.899915e+06
#>    61  9.967883e+05 1.652450e+06 2.498737e+06 2.731323e+06 2.420162e+06
#>    64  6.110903e+05 1.098846e+06 1.821436e+06 2.163381e+06 1.950224e+06
#>    67  3.633821e+05 7.007958e+05 1.250406e+06 1.655408e+06 1.536864e+06
#>    70  2.096301e+05 4.292354e+05 8.125557e+05 1.204271e+06 1.184242e+06
#>    73  1.171633e+05 2.528240e+05 5.028952e+05 8.282542e+05 8.837063e+05
#>    76  6.331306e+04 1.433430e+05 2.981209e+05 5.390677e+05 6.321167e+05
#>    79  3.302955e+04 7.827849e+04 1.700846e+05 3.333313e+05 4.309227e+05
#>    82  1.663373e+04 4.119712e+04 9.371771e+04 1.967726e+05 2.796490e+05
#>    85  8.097893e+03 2.091241e+04 4.998093e+04 1.114138e+05 1.730639e+05
#>    88  3.819915e+03 1.025147e+04 2.582686e+04 6.074797e+04 1.024483e+05
#>    91  1.750263e+03 4.861107e+03 1.293605e+04 3.199569e+04 5.820172e+04
#>    94  7.806089e+02 2.234178e+03 6.282077e+03 1.631529e+04 3.182734e+04
#>    97  3.394128e+02 9.974049e+02 2.959165e+03 8.067290e+03 1.679532e+04
#>    100 1.440418e+02 4.334399e+02 1.353148e+03 3.872520e+03 8.570045e+03
#>    103 5.972106e+01 1.837230e+02 6.013604e+02 1.806418e+03 4.235529e+03
#>    106 2.421367e+01 7.609659e+01 2.601131e+02 8.196418e+02 2.030401e+03
#>    109 9.610783e+00 3.084898e+01 1.096797e+02 3.621355e+02 9.453096e+02
#>    112 3.739063e+00 1.225830e+01 4.516006e+01 1.559804e+02 4.279958e+02
#>    115 1.427803e+00 4.781089e+00 1.818737e+01 6.558073e+01 1.886866e+02
#>    118 5.359162e-01 1.832719e+00 7.175807e+00 2.695098e+01 8.110688e+01
#>    121 1.979992e-01 6.913267e-01 2.777929e+00 1.084085e+01 3.403951e+01
#>    124 7.210229e-02 2.569329e-01 1.056692e+00 4.274043e+00 1.396756e+01
#>    127 2.591094e-02 9.419252e-02 3.954992e-01 1.653810e+00 5.611414e+00
#>    130 9.198879e-03 3.410034e-02 1.458389e-01 6.288811e-01 2.210211e+00
#>    133 3.229327e-03 1.220391e-02 5.304719e-02 2.353037e-01 8.546431e-01
#>    136 1.121934e-03 4.321665e-03 1.905528e-02 8.673279e-02 3.248521e-01
#>    139 3.860186e-04 1.515605e-03 6.767143e-03 3.152998e-02 1.215270e-01
#>    142 1.316155e-04 5.267822e-04 2.378351e-03 1.131663e-02 4.479771e-02
#>    145 4.449540e-05 1.815828e-04 8.280179e-04 4.014270e-03 1.628992e-02
#>    148 1.492329e-05 6.211055e-05 2.858084e-04 1.408680e-03 5.849499e-03
#>    151 4.968105e-06 2.109236e-05 9.788775e-05 4.894761e-04 2.076279e-03
#>    154 1.642527e-06 7.114480e-06 3.328967e-05 1.685535e-04 7.291643e-04
#>    157 5.396355e-07 2.384585e-06 1.124878e-05 5.756862e-05 2.535825e-04
#>    160 1.762519e-07 7.944516e-07 3.778772e-06 1.951641e-05 8.740265e-05
#>    163 5.726790e-08 2.631975e-07 1.262624e-06 6.571888e-06 2.987982e-05
#>    166 1.852479e-08 8.674773e-08 4.198500e-07 2.199642e-06 1.013909e-05
#>    169 5.964728e-09 2.843817e-08 1.389540e-07 7.321462e-07 3.417160e-06
#>    172 1.915882e-09 9.285612e-09 4.581384e-08 2.425318e-07 1.144702e-06
#>    175 6.125184e-10 3.016288e-09 1.503558e-08 7.996524e-08 3.812894e-07
#>    178 1.963917e-10 9.783616e-10 4.926974e-09 2.628172e-08 1.264172e-07
#>    181 6.238822e-11 3.151531e-10 1.604514e-09 8.600148e-09 4.170972e-08
#>    184 1.977455e-11 1.009033e-10 5.201815e-10 2.799347e-09 1.369333e-08
#>    187 6.391976e-12 3.271882e-11 1.698543e-10 9.158866e-10 4.494876e-09
#>    190 2.010283e-12 1.036079e-11 5.475710e-11 2.960681e-10 1.468374e-09
#>    193 6.214750e-13 3.228249e-12 1.723565e-11 9.444263e-11 4.717911e-10
#>    196 2.178773e-13 1.104723e-12 5.950353e-12 3.201309e-11 1.591187e-10
#>    199 6.239996e-14 3.229768e-13 1.760236e-12 9.772284e-12 4.928781e-11
#>    202 2.079466e-14 1.054490e-13 5.779915e-13 3.227821e-12 1.625362e-11
#>    205 5.331812e-15 2.867432e-14 1.626147e-13 8.896672e-13 4.672410e-12
#>    208 1.807624e-15 9.432885e-15 5.340502e-14 2.948903e-13 1.549728e-12
#>    211 9.342275e-16 4.496348e-15 2.220342e-14 1.296825e-13 6.974436e-13
#>    214 1.520578e-16 7.487186e-16 4.917694e-15 2.675356e-14 1.361736e-13
#>    217 6.608640e-17 4.548060e-16 2.416441e-15 1.183600e-14 6.652665e-14
#>    220 1.524587e-17 4.887929e-17 3.865097e-16 2.358586e-15 1.136820e-14
#>    223 4.326107e-18 1.159493e-17 5.367354e-17 4.872406e-16 2.708689e-15
#>    226 1.570998e-18 4.516701e-18 2.147308e-17 2.139499e-16 1.079459e-15
#>    229 4.099808e-19 8.186298e-19 3.121187e-18 1.682434e-17 1.479015e-16
#>    232 2.095656e-19 4.908976e-19 2.262598e-18 1.267916e-17 1.260090e-16
#>    235 5.297584e-20 9.648539e-20 2.864074e-19 1.543369e-18 8.208034e-18
#>    238 1.349479e-20 1.925163e-20 4.082492e-20 1.512057e-19 7.823459e-19
#>       year
#> length           11           12           13           14           15
#>    1   5.868757e-54 1.584194e-54 1.984987e-54 1.336423e-54 1.250450e-54
#>    4   7.098211e-14 1.916069e-14 2.400825e-14 1.616393e-14 1.512409e-14
#>    7   5.193665e+00 1.401962e+00 1.756651e+00 1.182693e+00 1.106609e+00
#>    10  2.168105e+06 5.852517e+05 7.333173e+05 4.937173e+05 4.619561e+05
#>    13  2.594869e+08 7.004510e+07 8.776614e+07 5.908992e+07 5.528861e+07
#>    16  5.955868e+08 1.608118e+08 2.014552e+08 1.356400e+08 1.269044e+08
#>    19  1.102629e+08 3.493659e+07 3.857821e+07 2.688099e+07 2.391142e+07
#>    22  5.197060e+07 7.198327e+07 3.198309e+07 3.169143e+07 1.575799e+07
#>    25  1.030146e+08 1.495090e+08 6.608218e+07 6.524949e+07 3.197058e+07
#>    28  6.525826e+07 9.775816e+07 5.389719e+07 4.345177e+07 2.259427e+07
#>    31  2.803781e+07 5.229129e+07 6.404615e+07 2.617815e+07 1.767393e+07
#>    34  2.219422e+07 4.976837e+07 8.434399e+07 2.962376e+07 2.066466e+07
#>    37  1.601746e+07 3.763248e+07 6.911534e+07 3.287812e+07 1.707891e+07
#>    40  8.685792e+06 2.162708e+07 4.533950e+07 3.653858e+07 1.245461e+07
#>    43  5.054359e+06 1.271579e+07 3.099554e+07 3.605198e+07 1.158660e+07
#>    46  3.743886e+06 7.803008e+06 2.036470e+07 2.818101e+07 1.248545e+07
#>    49  3.187736e+06 4.611508e+06 1.180835e+07 1.852019e+07 1.260130e+07
#>    52  2.878937e+06 2.855175e+06 6.358024e+06 1.121434e+07 1.086408e+07
#>    55  2.642575e+06 2.051763e+06 3.404782e+06 6.457712e+06 7.945463e+06
#>    58  2.399401e+06 1.676388e+06 1.900140e+06 3.516932e+06 5.099910e+06
#>    61  2.110996e+06 1.451343e+06 1.180161e+06 1.830762e+06 2.992889e+06
#>    64  1.777538e+06 1.272898e+06 8.694044e+05 9.549353e+05 1.658857e+06
#>    67  1.433289e+06 1.105866e+06 7.459839e+05 5.463187e+05 8.962744e+05
#>    70  1.117398e+06 9.402577e+05 6.863797e+05 3.776943e+05 4.973333e+05
#>    73  8.503563e+05 7.780615e+05 6.317222e+05 3.156609e+05 3.071899e+05
#>    76  6.334046e+05 6.255788e+05 5.622835e+05 2.891915e+05 2.240935e+05
#>    79  4.597354e+05 4.881685e+05 4.787766e+05 2.656245e+05 1.874671e+05
#>    82  3.227711e+05 3.687768e+05 3.894896e+05 2.343205e+05 1.654019e+05
#>    85  2.178587e+05 2.686525e+05 3.030541e+05 1.957233e+05 1.442132e+05
#>    88  1.408943e+05 1.880084e+05 2.256878e+05 1.544225e+05 1.204860e+05
#>    91  8.723393e+04 1.260423e+05 1.608447e+05 1.152588e+05 9.548598e+04
#>    94  5.174753e+04 8.084199e+04 1.096555e+05 8.159244e+04 7.170275e+04
#>    97  2.945773e+04 4.960682e+04 7.150039e+04 5.493117e+04 5.112805e+04
#>    100 1.612276e+04 2.915073e+04 4.460836e+04 3.526425e+04 3.472320e+04
#>    103 8.500659e+03 1.643030e+04 2.665590e+04 2.164313e+04 2.252794e+04
#>    106 4.325698e+03 8.899374e+03 1.527896e+04 1.273138e+04 1.400077e+04
#>    109 2.128302e+03 4.641825e+03 8.416236e+03 7.195826e+03 8.355523e+03
#>    112 1.014236e+03 2.336410e+03 4.464239e+03 3.917321e+03 4.799002e+03
#>    115 4.689315e+02 1.137227e+03 2.285064e+03 2.058817e+03 2.658133e+03
#>    118 2.107011e+02 5.363712e+02 1.131061e+03 1.046980e+03 1.422638e+03
#>    121 9.215589e+01 2.456152e+02 5.425069e+02 5.162637e+02 7.370753e+02
#>    124 3.929873e+01 1.094038e+02 2.526485e+02 2.473334e+02 3.703459e+02
#>    127 1.636514e+01 4.748713e+01 1.144570e+02 1.153407e+02 1.807729e+02
#>    130 6.665240e+00 2.012001e+01 5.053146e+01 5.244795e+01 8.586479e+01
#>    133 2.658981e+00 8.334787e+00 2.177775e+01 2.329307e+01 3.975126e+01
#>    136 1.040501e+00 3.380996e+00 9.176825e+00 1.011898e+01 1.796431e+01
#>    139 3.999408e-01 1.344970e+00 3.786663e+00 4.306008e+00 7.936596e+00
#>    142 1.511975e-01 5.254101e-01 1.532231e+00 1.797289e+00 3.432672e+00
#>    145 5.628985e-02 2.018219e-01 6.088041e-01 7.367266e-01 1.455407e+00
#>    148 2.066155e-02 7.632315e-02 2.378290e-01 2.969254e-01 6.056775e-01
#>    151 7.485568e-03 2.844891e-02 9.145377e-02 1.177925e-01 2.476987e-01
#>    154 2.679590e-03 1.046332e-02 3.465554e-02 4.604320e-02 9.966062e-02
#>    157 9.486775e-04 3.801125e-03 1.295489e-02 1.775059e-02 3.949171e-02
#>    160 3.324859e-04 1.365247e-03 4.782032e-03 6.755497e-03 1.542799e-02
#>    163 1.154528e-04 4.852415e-04 1.744662e-03 2.540231e-03 5.947669e-03
#>    166 3.975225e-05 1.708123e-04 6.296618e-04 9.445254e-04 2.264685e-03
#>    169 1.358206e-05 5.959884e-05 2.249857e-04 3.475451e-04 8.524303e-04
#>    172 4.608184e-06 2.062705e-05 7.965017e-05 1.266426e-04 3.174279e-04
#>    175 1.553495e-06 7.086174e-06 2.795846e-05 4.573135e-05 1.170283e-04
#>    178 5.207692e-07 2.418023e-06 9.737121e-06 1.637551e-05 4.274672e-05
#>    181 1.736513e-07 8.200274e-07 3.366753e-06 5.818127e-06 1.547990e-05
#>    184 5.760220e-08 2.764789e-07 1.156315e-06 2.052170e-06 5.560988e-06
#>    187 1.905982e-08 9.280181e-08 3.948023e-07 7.190541e-07 1.983008e-06
#>    190 6.277673e-09 3.100601e-08 1.340579e-07 2.504012e-07 7.022903e-07
#>    193 2.047700e-09 1.028404e-08 4.523924e-08 8.666069e-08 2.471161e-07
#>    196 6.837581e-10 3.438937e-09 1.525965e-08 2.988506e-08 8.648321e-08
#>    199 2.179979e-10 1.123608e-09 5.090251e-09 1.022759e-08 3.008219e-08
#>    202 7.203501e-11 3.732091e-10 1.703497e-09 3.494509e-09 1.042028e-08
#>    205 2.124669e-11 1.157852e-10 5.519236e-10 1.175058e-09 3.577048e-09
#>    208 7.037553e-12 3.850521e-11 1.841288e-10 3.989595e-10 1.229334e-09
#>    211 2.918938e-12 1.553195e-11 6.751888e-11 1.406271e-10 4.285205e-10
#>    214 6.578706e-13 3.765234e-12 1.922723e-11 4.493859e-11 1.431583e-10
#>    217 3.261988e-13 1.670845e-12 8.307701e-12 1.670515e-11 5.107499e-11
#>    220 5.403604e-14 3.380029e-13 1.777510e-12 4.765042e-12 1.597528e-11
#>    223 1.185122e-14 7.092340e-14 4.187881e-13 1.270381e-12 4.768281e-12
#>    226 4.578759e-15 2.850727e-14 1.716533e-13 4.758680e-13 1.805828e-12
#>    229 7.579834e-16 4.130261e-15 2.147757e-14 8.862701e-14 3.412105e-13
#>    232 5.666709e-16 2.832072e-15 1.631684e-14 6.975180e-14 2.322788e-13
#>    235 8.005466e-17 4.467375e-16 1.762377e-15 7.139761e-15 4.082493e-14
#>    238 4.457602e-18 5.781631e-17 2.337107e-16 6.565261e-16 3.897403e-15
#>       year
#> length           16           17           18           19           20
#>    1   3.114972e-54 3.694877e-54 7.035927e-54 5.911066e-54 7.872940e-54
#>    4   3.767532e-14 4.468921e-14 8.509893e-14 7.149383e-14 9.522252e-14
#>    7   2.756652e+00 3.269849e+00 6.226574e+00 5.231107e+00 6.967303e+00
#>    10  1.150770e+06 1.365005e+06 2.599295e+06 2.183736e+06 2.908514e+06
#>    13  1.377284e+08 1.633688e+08 3.110933e+08 2.613576e+08 3.481017e+08
#>    16  3.161239e+08 3.749883e+08 7.140627e+08 5.999179e+08 7.990003e+08
#>    19  5.891389e+07 7.148902e+07 1.355405e+08 1.157949e+08 1.505014e+08
#>    22  3.194923e+07 5.590243e+07 9.982803e+07 1.054213e+08 9.867680e+07
#>    25  6.392166e+07 1.134523e+08 2.024565e+08 2.152232e+08 1.995421e+08
#>    28  4.162516e+07 7.210708e+07 1.320608e+08 1.392354e+08 1.340509e+08
#>    31  2.183961e+07 3.182012e+07 6.965310e+07 6.968593e+07 8.355838e+07
#>    34  2.147362e+07 2.634399e+07 6.582658e+07 6.388928e+07 8.760855e+07
#>    37  1.972848e+07 2.093817e+07 5.036155e+07 5.033874e+07 6.886328e+07
#>    40  1.752262e+07 1.484894e+07 3.032006e+07 3.308463e+07 4.321337e+07
#>    43  1.603141e+07 1.232839e+07 1.984033e+07 2.354658e+07 2.933338e+07
#>    46  1.372980e+07 1.131349e+07 1.468299e+07 1.730747e+07 2.123040e+07
#>    49  1.190119e+07 1.037350e+07 1.153420e+07 1.237565e+07 1.504974e+07
#>    52  1.121528e+07 9.268444e+06 9.649106e+06 8.983310e+06 1.046011e+07
#>    55  1.062489e+07 8.222412e+06 8.381012e+06 6.853676e+06 7.147085e+06
#>    58  9.200698e+06 7.403980e+06 7.317573e+06 5.547554e+06 4.853256e+06
#>    61  7.030010e+06 6.596617e+06 6.370212e+06 4.692878e+06 3.375564e+06
#>    64  4.761329e+06 5.526268e+06 5.508148e+06 4.012235e+06 2.455241e+06
#>    67  2.918764e+06 4.213014e+06 4.640839e+06 3.370092e+06 1.851852e+06
#>    70  1.663816e+06 2.903992e+06 3.705382e+06 2.738478e+06 1.410134e+06
#>    73  9.124316e+05 1.829580e+06 2.746614e+06 2.131957e+06 1.057225e+06
#>    76  5.056206e+05 1.077208e+06 1.877761e+06 1.576734e+06 7.690087e+05
#>    79  3.023871e+05 6.131924e+05 1.191726e+06 1.101452e+06 5.394568e+05
#>    82  2.053278e+05 3.541656e+05 7.149311e+05 7.269880e+05 3.645307e+05
#>    85  1.566029e+05 2.190879e+05 4.177647e+05 4.572431e+05 2.376541e+05
#>    88  1.263895e+05 1.495849e+05 2.475186e+05 2.789589e+05 1.501655e+05
#>    91  1.019818e+05 1.107766e+05 1.545174e+05 1.694064e+05 9.277612e+04
#>    94  7.965719e+04 8.497188e+04 1.032310e+05 1.052814e+05 5.681275e+04
#>    97  5.943608e+04 6.476934e+04 7.262031e+04 6.815669e+04 3.504930e+04
#>    100 4.221884e+04 4.787430e+04 5.206669e+04 4.589084e+04 2.208147e+04
#>    103 2.857267e+04 3.393999e+04 3.695493e+04 3.157092e+04 1.427018e+04
#>    106 1.846824e+04 2.299993e+04 2.549837e+04 2.170240e+04 9.395943e+03
#>    109 1.143277e+04 1.490220e+04 1.695317e+04 1.464268e+04 6.215690e+03
#>    112 6.797172e+03 9.248236e+03 1.082805e+04 9.589959e+03 4.070153e+03
#>    115 3.891039e+03 5.510229e+03 6.643279e+03 6.063165e+03 2.607481e+03
#>    118 2.149680e+03 3.159721e+03 3.920507e+03 3.693400e+03 1.622072e+03
#>    121 1.148612e+03 1.747957e+03 2.229881e+03 2.167914e+03 9.760066e+02
#>    124 5.947168e+02 9.349542e+02 1.224991e+03 1.227594e+03 5.672030e+02
#>    127 2.989301e+02 4.845463e+02 6.513620e+02 6.717266e+02 3.183958e+02
#>    130 1.461131e+02 2.437869e+02 3.359193e+02 3.558532e+02 1.728089e+02
#>    133 6.956088e+01 1.192898e+02 1.683453e+02 1.828608e+02 9.081747e+01
#>    136 3.230419e+01 5.686566e+01 8.212861e+01 9.131745e+01 4.629239e+01
#>    139 1.465549e+01 2.645096e+01 3.906935e+01 4.439618e+01 2.292732e+01
#>    142 6.504139e+00 1.202339e+01 1.815089e+01 2.104886e+01 1.105261e+01
#>    145 2.827476e+00 5.348326e+00 8.247211e+00 9.747444e+00 5.195008e+00
#>    148 1.205515e+00 2.331266e+00 3.669881e+00 4.415471e+00 2.384658e+00
#>    151 5.046949e-01 9.969962e-01 1.601345e+00 1.959256e+00 1.070671e+00
#>    154 2.077113e-01 4.188294e-01 6.860015e-01 8.527044e-01 4.708774e-01
#>    157 8.412657e-02 1.730249e-01 2.888433e-01 3.644427e-01 2.031305e-01
#>    160 3.356533e-02 7.036664e-02 1.196626e-01 1.531371e-01 8.606239e-02
#>    163 1.320542e-02 2.819971e-02 4.882579e-02 6.333134e-02 3.585443e-02
#>    166 5.127599e-03 1.114682e-02 1.964025e-02 2.580374e-02 1.470449e-02
#>    169 1.966756e-03 4.349821e-03 7.795444e-03 1.036775e-02 5.942779e-03
#>    172 7.457891e-04 1.677143e-03 3.055613e-03 4.111619e-03 2.369125e-03
#>    175 2.797979e-04 6.394265e-04 1.183770e-03 1.610765e-03 9.324889e-04
#>    178 1.039325e-04 2.412441e-04 4.536032e-04 6.238603e-04 3.626854e-04
#>    181 3.825026e-05 9.013100e-05 1.720423e-04 2.390573e-04 1.395073e-04
#>    184 1.395635e-05 3.336803e-05 6.463059e-05 9.069470e-05 5.310945e-05
#>    187 5.051660e-06 1.224896e-05 2.406370e-05 3.408913e-05 2.002459e-05
#>    190 1.814980e-06 4.461047e-06 8.885261e-06 1.270209e-05 7.482732e-06
#>    193 6.475682e-07 1.612789e-06 3.255419e-06 4.694793e-06 2.772883e-06
#>    196 2.296276e-07 5.791393e-07 1.184170e-06 1.722195e-06 1.019622e-06
#>    199 8.091876e-08 2.066337e-07 4.278576e-07 6.273433e-07 3.722312e-07
#>    202 2.837048e-08 7.330457e-08 1.536386e-07 2.270326e-07 1.349849e-07
#>    205 9.876878e-09 2.583913e-08 5.482433e-08 8.165782e-08 4.864594e-08
#>    208 3.431201e-09 9.073700e-09 1.947172e-08 2.921055e-08 1.743184e-08
#>    211 1.196554e-09 3.183634e-09 6.897108e-09 1.040201e-08 6.214065e-09
#>    214 4.090712e-10 1.105018e-09 2.421709e-09 3.684126e-09 2.206130e-09
#>    217 1.434276e-10 3.864623e-10 8.522303e-10 1.302971e-09 7.777600e-10
#>    220 4.742304e-11 1.316922e-10 2.956584e-10 4.559474e-10 2.743885e-10
#>    223 1.505766e-11 4.362605e-11 1.011568e-10 1.580349e-10 9.546319e-11
#>    226 5.439885e-12 1.537369e-11 3.527232e-11 5.500842e-11 3.320801e-11
#>    229 1.252088e-12 4.005273e-12 1.024272e-11 1.695012e-11 1.035065e-11
#>    232 8.472518e-13 2.441641e-12 5.438806e-12 8.159542e-12 4.947175e-12
#>    235 1.344859e-13 5.392576e-13 1.442390e-12 2.387643e-12 1.408195e-12
#>    238 1.940924e-14 6.930244e-14 2.741621e-13 5.736125e-13 3.695841e-13
#> 
#> $sim_length
#> function (age = NULL, length_age_key = FALSE) 
#> {
#>     pred_length <- Linf - (Linf - L0) * exp(-K * age)
#>     if (length_age_key) {
#>         breaks <- seq(0, ceiling(max(pred_length)) * 10, length_group)
#>         lak <- matrix(NA, ncol = length(pred_length), nrow = length(breaks) - 
#>             1, dimnames = list(length = group_lengths(breaks, 
#>             length_group)[-length(breaks)], age = age))
#>         for (i in seq_along(breaks)[-1]) {
#>             for (j in seq_along(pred_length)) {
#>                 lak[i - 1, j] <- stats::pnorm(log(breaks[i]), 
#>                   log(pred_length[j]), sd = log_sd) - stats::pnorm(log(breaks[i - 
#>                   1]), log(pred_length[j]), sd = log_sd)
#>             }
#>         }
#>         lak <- lak[rowSums(lak) > 0, ]
#>         if (plot) 
#>             graphics::image(x = as.numeric(colnames(lak)), y = as.numeric(rownames(lak)), 
#>                 z = t(lak), xlab = "Age", ylab = "Length", main = "P(Length | Age)", 
#>                 col = viridis::viridis(100))
#>         return(lak)
#>     }
#>     else {
#>         log_length <- stats::rnorm(length(age), log(pred_length), 
#>             sd = log_sd)
#>         length <- round(exp(log_length), digits)
#>         if (plot) 
#>             plot(age, length)
#>         return(length)
#>     }
#> }
#> <bytecode: 0x55d5ac817108>
#> <environment: 0x55d5add20320>
#> 

growth_fun <- sim_vonB(Linf = 100, L0 = 5, K = 0.2, log_sd = 0.05, length_group = 1, plot = TRUE)
growth_fun(age = rep(1:15, each = 100))

#>    [1]  23  23  20  22  23  23  22  22  23  22  22  25  22  23  22  22  24  23
#>   [19]  21  20  21  22  22  23  23  21  24  23  22  21  22  22  23  22  22  21
#>   [37]  25  21  23  21  22  22  23  23  21  25  21  22  24  20  23  23  24  22
#>   [55]  22  20  20  22  22  21  22  23  22  21  19  22  22  21  24  24  22  24
#>   [73]  22  21  24  22  22  22  22  24  21  24  21  21  23  21  23  24  21  22
#>   [91]  23  23  24  22  20  23  23  23  23  21  38  34  38  39  35  37  36  37
#>  [109]  34  36  34  41  32  34  37  39  38  36  35  37  38  37  37  35  34  35
#>  [127]  36  37  35  39  33  38  36  38  34  34  33  39  39  38  34  37  36  36
#>  [145]  33  35  39  36  38  35  37  35  37  34  37  39  35  36  38  35  37  36
#>  [163]  33  35  39  34  36  40  34  38  36  37  35  37  38  39  40  35  37  34
#>  [181]  34  37  36  39  36  33  38  39  37  39  35  37  32  39  37  39  37  37
#>  [199]  37  39  50  47  46  47  45  47  49  46  51  51  53  47  47  47  49  47
#>  [217]  47  48  49  51  47  47  48  48  46  43  52  50  43  51  50  53  47  50
#>  [235]  53  48  50  49  47  46  45  47  53  48  43  46  43  47  47  49  50  41
#>  [253]  50  46  47  52  45  46  50  47  45  47  50  48  48  51  47  51  50  45
#>  [271]  50  50  51  44  51  52  47  50  53  46  47  49  47  48  45  54  46  47
#>  [289]  46  45  49  47  46  48  50  49  49  50  46  49  56  60  57  53  59  54
#>  [307]  55  53  54  59  58  61  57  58  53  58  57  57  56  60  58  56  55  54
#>  [325]  61  59  59  58  61  58  58  56  57  56  55  53  54  56  56  57  59  57
#>  [343]  55  57  54  53  58  59  59  58  60  58  51  56  52  57  57  64  58  60
#>  [361]  57  57  56  58  58  55  60  55  62  60  55  57  55  58  60  60  59  57
#>  [379]  59  55  59  56  57  58  57  56  59  59  64  60  54  60  57  56  57  57
#>  [397]  58  63  60  57  67  61  64  65  69  70  71  68  61  61  71  70  65  66
#>  [415]  65  65  60  69  64  63  68  68  66  65  65  63  64  72  67  68  69  62
#>  [433]  64  68  67  62  65  66  62  63  65  62  68  63  66  62  68  62  69  68
#>  [451]  65  67  64  74  64  64  75  64  63  65  65  70  64  65  70  64  64  66
#>  [469]  69  60  67  66  66  68  64  68  69  68  63  63  62  73  63  68  67  74
#>  [487]  71  64  62  68  62  66  67  57  58  66  69  61  65  70  73  74  69  71
#>  [505]  65  69  71  77  72  68  69  76  70  72  70  73  75  75  75  69  69  71
#>  [523]  70  71  66  72  73  72  72  73  72  68  72  70  70  70  70  74  70  73
#>  [541]  68  76  79  65  71  72  71  67  63  67  72  69  70  68  72  69  71  69
#>  [559]  72  79  73  74  71  68  75  69  68  68  72  70  74  69  75  67  72  73
#>  [577]  74  77  67  79  66  73  69  70  70  75  67  71  67  76  73  71  72  76
#>  [595]  67  75  73  73  69  70  78  77  84  76  86  78  84  74  74  75  72  73
#>  [613]  77  83  68  78  73  77  74  79  83  75  79  77  80  76  81  76  68  74
#>  [631]  82  77  83  69  76  76  72  71  76  76  86  74  79  70  66  77  75  77
#>  [649]  76  73  72  78  75  73  74  82  77  78  80  72  77  79  77  78  76  78
#>  [667]  80  74  74  71  77  73  73  72  77  77  77  74  75  82  81  80  76  77
#>  [685]  77  86  74  80  74  75  77  79  72  72  81  80  80  74  78  77  83  81
#>  [703]  80  75  82  77  85  80  82  85  75  82  92  79  77  80  81  78  78  77
#>  [721]  80  75  84  87  85  73  78  83  74  82  88  79  81  77  77  81  85  81
#>  [739]  79  86  76  77  76  78  81  77  83  86  84  81  91  86  75  87  76  82
#>  [757]  82  88  74  79  78  76  78  81  85  79  84  84  82  81  77  87  73  80
#>  [775]  82  80  82  81  79  82  75  82  81  80  81  72  85  78  76  79  82  83
#>  [793]  85  76  79  73  79  82  81  81  78  98  89  88  91  84  74  82  89  85
#>  [811]  85  93  82  82  84  90  81  91  75  89  86  84  78  88  86  79  83  85
#>  [829]  91  90  85  88  92  86  87  85  89  89  81  84  82  83  86  81  82  86
#>  [847]  83  86  84  83  84  78  83  92  87  83  78  83  81  84  83  90  89  88
#>  [865]  81  86  89  85  78  84  82  84  91  85  86  83  89  78  87  90  84  80
#>  [883]  85  90  85  85  77  88  86  88  85  90  75  80  74  91  89  92  90  84
#>  [901]  83 100  90  96  87  85  91  89  85  92  84  88  80  84  85  79  85  84
#>  [919]  88  87  84  89  88  91  88  80  85  86  78  90  91  89  85  87  87  83
#>  [937]  83  82  95  79  88  86  85  84  94  85  89  82  78  91  84  88  87  89
#>  [955]  83  93  91  91  86  92  83  83  94  79  90 100  84  92  89  90  83  90
#>  [973]  88  86  86  86  94  93  89  78  86  88  86  90  86  89  89  93  83  85
#>  [991]  92  85  82  87  98  94  88  83  91  77  94  88  84  88  89  86  96  88
#> [1009]  95  87  86  88  94  88  93  86  90  94  88  84  91  86  94  85  81  84
#> [1027]  93  84  92  96  84  88  95  89  87  79  93  95  90  88  87  81  91  90
#> [1045]  98  81  95  93  91  88  86  88  85  90  86  91  86  90  86  92 100  87
#> [1063]  83  93  87  94  93  89  86  90  90  99  94  91  85  81  89  85  83  94
#> [1081]  95  86  92  86  95  94  86  88  96  87  98  86  93  87  84  90  82  94
#> [1099]  94  89  93  89  95  87  95  89 101  97  83  86  94  90  95  89  89  84
#> [1117]  95  91  95  87  93  89  89  86  97  87  87  91  90  91  89  90  90  86
#> [1135] 101  84  90  97  98  86  93  84  95  86  88  96  92  87  92  85  87 104
#> [1153]  85  96  92  92  85  89  88  86  90  90  98  97  93  93  88  84  89  89
#> [1171]  87  98  90  89  97  95  94  95  87  94  94  92  85  96  91  94  95  90
#> [1189]  98  94  87  86  93  90  91  92  94  86  94  97  90 100  94  94  91  93
#> [1207]  95  95  93  92  98  94 100  91  88  97  85  91  92 100  89  94  86  83
#> [1225]  93 106  97  89  98  83  97  93  91  86  95  93  99  94  97  86  88  86
#> [1243] 101 101  95  91  98  98  89  96 100  92  99  99  90  91  93  94  93  94
#> [1261]  90  94  86 100  96  96  85  86  96  86  97  95  86  94  89  90  86 102
#> [1279]  90  93  93  94  91  88  96  93 103  91  97  93  97  99  95  92 100  91
#> [1297]  88  93  94 101  92  97 101 103  94  95  92  93  92  95  92  92  91  97
#> [1315] 100  95 100  99  95  88 103  96  95  91  92  94 100  96  94 101  87  93
#> [1333] 101  99  90  99  95  89  99  93  94  99  95  89  97  90  91  93  90  96
#> [1351]  96  91  99 101  88  93  91  94  96 100  97  96  89  93  96  98  93  99
#> [1369] 106  83  90  95  92  97  87  93  95  97  93 100  94  91  96  90 104 104
#> [1387]  91  97 100  93  96  86  93  95 101  95  90 101 105  98  97  86  94  95
#> [1405]  92  96  89  92  94  92 111  97  96 100  89  97 101  95  93  89  92  95
#> [1423]  96  91  93  94  99  87  90  93  96 100  94  93  92  97  88  95 108 103
#> [1441]  92 101 102  96  99  97  97  96 100  93  93  96  88  95  91  92 106  92
#> [1459]  96  94 101  90  95  93  98 100 102  88  97  99 102  93 102  97  92 101
#> [1477] 102  89  94 100  95  97  90  98 105  88  84  95  98 100  97  94  87  90
#> [1495]  88  95  93  92 100  95
growth_fun(age = 1:15, length_age_key = TRUE)

#>       age
#> length             1             2             3             4             5
#>    3   4.740726e-258  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    4   7.601391e-196  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    5   1.959630e-151 2.718312e-284  0.000000e+00  0.000000e+00  0.000000e+00
#>    6   2.201423e-118 4.234724e-238  0.000000e+00  0.000000e+00  0.000000e+00
#>    7    4.384115e-93 2.027724e-201 1.215111e-280  0.000000e+00  0.000000e+00
#>    8    2.467860e-73 1.238598e-171 3.249711e-245 2.159937e-300  0.000000e+00
#>    9    1.056136e-57 4.987046e-147 1.453104e-215 1.906653e-267 2.800145e-307
#>    10   3.229550e-45 1.981088e-126 2.112580e-190 2.651512e-239 4.846999e-277
#>    11   3.437733e-35 5.331186e-109 8.318334e-169 5.489889e-215 8.203908e-251
#>    12   4.039040e-27  3.996699e-94 4.224630e-150 8.870083e-194 7.612458e-228
#>    13   1.241390e-20  2.419601e-81 8.990787e-134 3.914404e-175 1.428250e-207
#>    14   1.930303e-15  2.681063e-70 1.989121e-119 1.241706e-158 1.486363e-189
#>    15   2.539301e-11  1.031834e-60 9.337175e-107 6.060281e-144 1.898990e-173
#>    16   4.249111e-08  2.295797e-52  1.642793e-95 8.358196e-131 5.622192e-159
#>    17   1.256082e-05  4.453615e-45  1.716259e-85 5.329610e-119 6.455553e-146
#>    18   8.566891e-04  1.053399e-38  1.551484e-76 2.352313e-108 4.386352e-134
#>    19   1.674458e-02  4.006363e-33  1.657123e-68  1.003926e-98 2.503678e-123
#>    20   1.116395e-01  3.085406e-28  2.712620e-61  5.479675e-90 1.609711e-113
#>    21   2.916718e-01  5.840337e-24  8.472918e-55  4.842909e-82 1.493418e-104
#>    22   3.338230e-01  3.202027e-20  6.082779e-49  8.469639e-75  2.468428e-96
#>    23   1.835570e-01  5.849305e-17  1.176799e-43  3.480326e-68  8.708022e-89
#>    24   5.248673e-02  4.015121e-14  7.035774e-39  3.896321e-62  7.662165e-82
#>    25   8.367879e-03  1.148888e-11  1.463620e-34  1.351140e-56  1.925023e-75
#>    26   7.914435e-04  1.499357e-09  1.174579e-30  1.623067e-51  1.553821e-69
#>    27   4.693976e-05  9.650684e-08  3.980112e-27  7.449444e-47  4.468529e-64
#>    28   1.834322e-06  3.280021e-06  6.165070e-24  1.424042e-42  5.015280e-59
#>    29   4.936159e-08  6.248718e-05  4.681992e-21  1.223621e-38  2.381219e-54
#>    30   9.513693e-10  7.031664e-04  1.854894e-18  5.056898e-35  5.137743e-50
#>    31   1.360034e-11  4.894712e-03  4.050900e-16  1.067607e-31  5.369553e-46
#>    32   1.487699e-13  2.195540e-02  5.122449e-14  1.215139e-28  2.878068e-42
#>    33   1.332268e-15  6.580873e-02  3.919079e-12  7.825379e-26  8.327706e-39
#>    34   0.000000e+00  1.361653e-01  1.887033e-10  2.977919e-23  1.362247e-35
#>    35   0.000000e+00  2.002515e-01  5.924343e-09  6.963960e-21  1.313378e-32
#>    36   0.000000e+00  2.149147e-01  1.252048e-07  1.036834e-18  7.750139e-30
#>    37   0.000000e+00  1.723953e-01  1.833322e-06  1.014849e-16  2.896549e-27
#>    38   0.000000e+00  1.056343e-01  1.909115e-05  6.723302e-15  7.073358e-25
#>    39   0.000000e+00  5.043487e-02  1.447773e-04  3.095748e-13  1.161100e-22
#>    40   0.000000e+00  1.910702e-02  8.170049e-04  1.014965e-11  1.314838e-20
#>    41   0.000000e+00  5.840133e-03  3.499230e-03  2.422346e-10  1.051813e-18
#>    42   0.000000e+00  1.462381e-03  1.158215e-02  4.294485e-09  6.074610e-17
#>    43   0.000000e+00  3.042364e-04  3.012153e-02  5.761603e-08  2.584014e-15
#>    44   0.000000e+00  5.327167e-05  6.249744e-02  5.950475e-07  8.246297e-14
#>    45   0.000000e+00  7.945065e-06  1.049194e-01  4.805873e-06  2.008072e-12
#>    46   0.000000e+00  1.020463e-06  1.443790e-01  3.079758e-05  3.790196e-11
#>    47   0.000000e+00  1.140286e-07  1.648291e-01  1.587167e-04  5.626040e-10
#>    48   0.000000e+00  1.119010e-08  1.578671e-01  6.660386e-04  6.656382e-09
#>    49   0.000000e+00  9.728401e-10  1.281675e-01  2.302335e-03  6.356012e-08
#>    50   0.000000e+00  7.553402e-11  8.905925e-02  6.626711e-03  4.955393e-07
#>    51   0.000000e+00  5.277001e-12  5.344314e-02  1.604114e-02  3.188653e-06
#>    52   0.000000e+00  3.340661e-13  2.792870e-02  3.296350e-02  1.710583e-05
#>    53   0.000000e+00  1.920686e-14  1.280993e-02  5.800664e-02  7.722740e-05
#>    54   0.000000e+00  1.110223e-15  5.194558e-03  8.812670e-02  2.960096e-04
#>    55   0.000000e+00  0.000000e+00  1.875082e-03  1.164758e-01  9.712274e-04
#>    56   0.000000e+00  0.000000e+00  6.063678e-04  1.348860e-01  2.748945e-03
#>    57   0.000000e+00  0.000000e+00  1.767240e-04  1.377888e-01  6.760586e-03
#>    58   0.000000e+00  0.000000e+00  4.668060e-05  1.249432e-01  1.454549e-02
#>    59   0.000000e+00  0.000000e+00  1.123432e-05  1.011658e-01  2.755338e-02
#>    60   0.000000e+00  0.000000e+00  2.475575e-06  7.355243e-02  4.623148e-02
#>    61   0.000000e+00  0.000000e+00  5.018160e-07  4.827034e-02  6.910026e-02
#>    62   0.000000e+00  0.000000e+00  9.398377e-08  2.873631e-02  9.249606e-02
#>    63   0.000000e+00  0.000000e+00  1.633016e-08  1.559099e-02  1.114450e-01
#>    64   0.000000e+00  0.000000e+00  2.642672e-09  7.743197e-03  1.214403e-01
#>    65   0.000000e+00  0.000000e+00  3.997609e-10  3.534892e-03  1.202230e-01
#>    66   0.000000e+00  0.000000e+00  5.672329e-11  1.489183e-03  1.085893e-01
#>    67   0.000000e+00  0.000000e+00  7.574275e-12  5.810996e-04  8.984930e-02
#>    68   0.000000e+00  0.000000e+00  9.547918e-13  2.107713e-04  6.836479e-02
#>    69   0.000000e+00  0.000000e+00  1.139089e-13  7.129817e-05  4.800821e-02
#>    70   0.000000e+00  0.000000e+00  1.287859e-14  2.256434e-05  3.122181e-02
#>    71   0.000000e+00  0.000000e+00  1.443290e-15  6.701083e-06  1.886595e-02
#>    72   0.000000e+00  0.000000e+00  1.110223e-16  1.872749e-06  1.062491e-02
#>    73   0.000000e+00  0.000000e+00  0.000000e+00  4.938533e-07  5.593425e-03
#>    74   0.000000e+00  0.000000e+00  0.000000e+00  1.232007e-07  2.760290e-03
#>    75   0.000000e+00  0.000000e+00  0.000000e+00  2.914627e-08  1.280308e-03
#>    76   0.000000e+00  0.000000e+00  0.000000e+00  6.554099e-09  5.595772e-04
#>    77   0.000000e+00  0.000000e+00  0.000000e+00  1.403978e-09  2.310162e-04
#>    78   0.000000e+00  0.000000e+00  0.000000e+00  2.871017e-10  9.029478e-05
#>    79   0.000000e+00  0.000000e+00  0.000000e+00  5.615741e-11  3.348694e-05
#>    80   0.000000e+00  0.000000e+00  0.000000e+00  1.052691e-11  1.180841e-05
#>    81   0.000000e+00  0.000000e+00  0.000000e+00  1.894485e-12  3.967162e-06
#>    82   0.000000e+00  0.000000e+00  0.000000e+00  3.279599e-13  1.272244e-06
#>    83   0.000000e+00  0.000000e+00  0.000000e+00  5.462297e-14  3.901715e-07
#>    84   0.000000e+00  0.000000e+00  0.000000e+00  8.881784e-15  1.146286e-07
#>    85   0.000000e+00  0.000000e+00  0.000000e+00  1.332268e-15  3.231516e-08
#>    86   0.000000e+00  0.000000e+00  0.000000e+00  2.220446e-16  8.755656e-09
#>    87   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  2.283508e-09
#>    88   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  5.740933e-10
#>    89   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  1.393271e-10
#>    90   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  3.268463e-11
#>    91   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  7.421064e-12
#>    92   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  1.632805e-12
#>    93   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  3.484990e-13
#>    94   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  7.227552e-14
#>    95   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  1.454392e-14
#>    96   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  2.886580e-15
#>    97   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  5.551115e-16
#>    98   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  1.110223e-16
#>    99   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    100  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    101  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    102  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    103  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    104  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    105  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    106  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    107  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    108  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    109  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    110  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    111  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    112  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    113  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    114  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    115  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    116  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    117  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    118  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    119  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    120  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    121  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    122  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    123  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    124  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    125  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    126  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    127  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    128  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    129  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    130  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    131  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    132  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    133  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    134  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    135  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    136  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    137  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    138  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    139  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    140  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    141  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    142  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    143  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    144  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>       age
#> length             6             7             8             9            10
#>    3    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    4    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    5    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    6    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    7    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    8    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    9    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    10  1.664241e-306  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    11  7.134282e-279 4.809871e-301  0.000000e+00  0.000000e+00  0.000000e+00
#>    12  1.293977e-254 8.226423e-276 1.052612e-292 3.078892e-306  0.000000e+00
#>    13  3.805851e-233 1.931603e-253 1.222571e-269 1.245163e-282 4.305368e-293
#>    14  5.133581e-214 1.801909e-233 5.051512e-249 1.643500e-261 1.419966e-271
#>    15  7.203301e-197 1.543136e-215 1.740412e-230 1.678031e-242 3.414534e-252
#>    16  2.024954e-181 2.372162e-199 9.891113e-214 2.645754e-225 1.203705e-234
#>    17  1.940685e-167 1.127951e-184 1.613369e-198 1.129344e-209 1.097069e-218
#>    18  9.810687e-155 2.593924e-171 1.190551e-184 2.070159e-195 4.121069e-204
#>    19  3.757764e-143 4.181100e-159 5.799720e-172 2.390677e-182 9.399755e-191
#>    20  1.477076e-132 6.446818e-148 2.560375e-160 2.398566e-170 1.801728e-178
#>    21  7.699221e-123 1.236760e-137 1.339012e-149 2.743764e-159 3.820519e-167
#>    22  6.620006e-114 3.692887e-128 1.042311e-139 4.511590e-149 1.132931e-156
#>    23  1.132220e-105 2.079811e-119 1.469021e-130 1.300992e-139 5.745432e-147
#>    24   4.527183e-98 2.607972e-111 4.439855e-122 7.812730e-131 5.929142e-138
#>    25   4.869286e-91 8.409649e-104 3.333273e-114 1.134391e-122 1.448256e-129
#>    26   1.592274e-84  7.908506e-97 7.068252e-107 4.537491e-115 9.555235e-122
#>    27   1.762534e-78  2.422221e-90 4.738729e-100 5.606844e-108 1.912305e-114
#>    28   7.260100e-73  2.663335e-84  1.109461e-93 2.367918e-101 1.286009e-107
#>    29   1.210130e-67  1.145991e-78  9.906572e-88  3.738118e-95 3.181948e-101
#>    30   8.793369e-63  2.083423e-73  3.648576e-82  2.388776e-89  3.140159e-95
#>    31   2.976953e-58  1.713687e-68  5.944142e-77  6.634777e-84  1.328370e-89
#>    32   4.983302e-54  6.780432e-64  4.560726e-72  8.536638e-79  2.569480e-84
#>    33   4.351060e-50  1.363539e-59  1.743477e-67  5.388171e-74  2.408521e-79
#>    34   2.079265e-46  1.464584e-55  3.493706e-63  1.756828e-69  1.152872e-74
#>    35   5.679999e-43  8.787757e-52  3.842212e-59  3.100586e-65  2.954682e-70
#>    36   9.226136e-40  3.067711e-48  2.417555e-55  3.090203e-61  4.232527e-66
#>    37   9.235559e-37  6.464961e-45  9.038583e-52  1.807546e-57  3.523837e-62
#>    38   5.886049e-34  8.506367e-42  2.078367e-48  6.426844e-54  1.766954e-58
#>    39   2.460412e-31  7.205888e-39  3.033273e-45  1.434298e-50  5.512616e-55
#>    40   6.931303e-29  4.042019e-36  2.891864e-42  2.069013e-47  1.102429e-51
#>    41   1.349135e-26  1.540502e-33  1.849239e-39  1.981816e-44  1.452355e-48
#>    42   1.856314e-24  4.084621e-31  8.126386e-37  1.292075e-41  1.292513e-45
#>    43   1.843858e-22  7.700503e-29  2.509532e-34  5.865856e-39  7.952160e-43
#>    44   1.347995e-20  1.053117e-26  5.559365e-32  1.893749e-36  3.455361e-40
#>    45   7.383952e-19  1.064307e-24  9.004458e-30  4.432960e-34  1.081499e-37
#>    46   3.081041e-17  8.085916e-23  1.085261e-27  7.660356e-32  2.483204e-35
#>    47   9.943735e-16  4.691935e-21  9.893207e-26  9.936209e-30  4.254050e-33
#>    48   2.517662e-14  2.110209e-19  6.925307e-24  9.824767e-28  5.523579e-31
#>    49   5.067033e-13  7.457379e-18  3.775262e-22  7.512660e-26  5.515828e-29
#>    50   8.205998e-12  2.097280e-16  1.623845e-20  4.502392e-24  4.294172e-27
#>    51   1.081628e-10  4.749858e-15  5.578624e-19  2.141335e-22  2.639569e-25
#>    52   1.172757e-09  8.759065e-14  1.548233e-17  8.176549e-21  1.296317e-23
#>    53   1.056404e-08  1.328833e-12  3.508234e-16  2.534082e-19  5.143008e-22
#>    54   7.979458e-08  1.674598e-11  6.555448e-15  6.439523e-18  1.665506e-20
#>    55   5.098127e-07  1.768903e-10  1.019582e-13  1.354585e-16  4.445378e-19
#>    56   2.777654e-06  1.579542e-09  1.331497e-12  2.379901e-15  9.868572e-18
#>    57   1.300452e-05  1.201839e-08  1.472029e-11  3.521714e-14  1.837771e-16
#>    58   5.269599e-05  7.850459e-08  1.388342e-10  4.424007e-13  2.894047e-15
#>    59   1.860632e-04  4.433340e-07  1.125194e-09  4.752970e-12  3.883083e-14
#>    60   5.761086e-04  2.178860e-06  7.889939e-09  4.397805e-11  4.470891e-13
#>    61   1.573662e-03  9.377770e-06  4.817577e-08  3.527676e-10  4.447035e-12
#>    62   3.813610e-03  3.555483e-05  2.577086e-07  2.468437e-09  3.845516e-11
#>    63   8.243219e-03  1.194100e-04  1.214687e-06  1.515603e-08  2.908326e-10
#>    64   1.597288e-02  3.571150e-04  5.072103e-06  8.210867e-08  1.934596e-09
#>    65   2.787832e-02  9.557821e-04  1.885937e-05  3.945597e-07  1.137941e-08
#>    66   4.402585e-02  2.300048e-03  6.274653e-05  1.690114e-06  5.948814e-08
#>    67   6.317768e-02  4.998945e-03  1.876608e-04  6.484034e-06  2.777204e-07
#>    68   8.271695e-02  9.854144e-03  5.067262e-04  2.237903e-05  1.163132e-06
#>    69   9.919053e-02  1.768889e-02  1.240472e-03  6.978242e-05  4.389062e-06
#>    70   1.093391e-01  2.902532e-02  2.763897e-03  1.973828e-04  1.498368e-05
#>    71   1.111773e-01  4.369382e-02  5.626014e-03  5.083865e-04  4.645845e-05
#>    72   1.046219e-01  6.055129e-02  1.049946e-02  1.196691e-03  1.313174e-04
#>    73   9.140193e-02  7.750123e-02  1.802555e-02  2.583320e-03  3.395673e-04
#>    74   7.435488e-02  9.190275e-02  2.856035e-02  5.131169e-03  8.060034e-04
#>    75   5.648297e-02  1.012679e-01  4.189132e-02  9.407240e-03  1.761766e-03
#>    76   4.017480e-02  1.039840e-01  5.704792e-02  1.596681e-02  3.557032e-03
#>    77   2.682484e-02  9.976630e-02  7.233054e-02  2.516091e-02  6.653080e-03
#>    78   1.685526e-02  8.966867e-02  8.561017e-02  3.691242e-02  1.156013e-02
#>    79   9.990026e-03  7.568391e-02  9.483182e-02  5.054628e-02  1.870954e-02
#>    80   5.597612e-03  6.012993e-02  9.855122e-02  6.476766e-02  2.827663e-02
#>    81   2.971477e-03  4.506871e-02  9.630669e-02  7.784196e-02  4.000478e-02
#>    82   1.497484e-03  3.193647e-02  8.869531e-02  8.795188e-02  5.310380e-02
#>    83   7.178276e-04  2.143954e-02  7.714648e-02  9.362650e-02  6.628801e-02
#>    84   3.279119e-04  1.366192e-02  6.350161e-02  9.409808e-02  7.797676e-02
#>    85   1.430042e-04  8.279243e-03  4.956225e-02  8.946618e-02  8.661684e-02
#>    86   5.964004e-05  4.780044e-03  3.674716e-02  8.062404e-02  9.103233e-02
#>    87   2.382512e-05  2.633800e-03  2.592856e-02  6.899136e-02  9.068999e-02
#>    88   9.131071e-06  1.387266e-03  1.744046e-02  5.615826e-02  8.579742e-02
#>    89   3.362407e-06  6.995993e-04  1.120147e-02  4.355666e-02  7.721284e-02
#>    90   1.191369e-06  3.383063e-04  6.880402e-03  3.224192e-02  6.621012e-02
#>    91   4.067338e-07  1.570992e-04  4.047908e-03  2.281332e-02  5.418379e-02
#>    92   1.339730e-07  7.015324e-05  2.284314e-03  1.545275e-02  4.238263e-02
#>    93   4.263051e-08  3.016571e-05  1.238211e-03  1.003451e-02  3.173346e-02
#>    94   1.312048e-08  1.250636e-05  6.455491e-04  6.255460e-03  2.277565e-02
#>    95   3.910343e-09  5.005388e-06  3.241294e-04  3.748612e-03  1.569051e-02
#>    96   1.129809e-09  1.936201e-06  1.569279e-04  2.162142e-03  1.038924e-02
#>    97   3.168040e-10  7.247126e-07  7.334852e-05  1.201803e-03  6.619965e-03
#>    98   8.630263e-11  2.627616e-07  3.313522e-05  6.445121e-04  4.064232e-03
#>    99   2.286338e-11  9.238440e-08  1.448354e-05  3.338652e-04  2.406898e-03
#>    100  5.895950e-12  3.152959e-08  6.132067e-06  1.672359e-04  1.376513e-03
#>    101  1.481371e-12  1.045556e-08  2.517275e-06  8.108938e-05  7.610548e-04
#>    102  3.630429e-13  3.372062e-09  1.002938e-06  3.809926e-05  4.072084e-04
#>    103  8.681944e-14  1.058665e-09  3.881943e-07  1.736252e-05  2.110663e-04
#>    104  2.020606e-14  3.238301e-10  1.461012e-07  7.681797e-06  1.060824e-04
#>    105  4.662937e-15  9.659140e-11  5.351441e-08  3.302653e-06  5.174819e-05
#>    106  9.992007e-16  2.811751e-11  1.909282e-08  1.381004e-06  2.452260e-05
#>    107  2.220446e-16  7.994161e-12  6.640617e-09  5.621175e-07  1.129887e-05
#>    108  1.110223e-16  2.221556e-12  2.253356e-09  2.229028e-07  5.066006e-06
#>    109  0.000000e+00  6.038503e-13  7.465634e-10  8.617942e-08  2.212132e-06
#>    110  0.000000e+00  1.607603e-13  2.416793e-10  3.251046e-08  9.414802e-07
#>    111  0.000000e+00  4.185541e-14  7.649947e-11  1.197552e-08  3.908366e-07
#>    112  0.000000e+00  1.065814e-14  2.369305e-11  4.310498e-09  1.583730e-07
#>    113  0.000000e+00  2.664535e-15  7.184919e-12  1.517125e-09  6.268678e-08
#>    114  0.000000e+00  6.661338e-16  2.134737e-12  5.224750e-10  2.425365e-08
#>    115  0.000000e+00  2.220446e-16  6.217249e-13  1.761732e-10  9.178504e-09
#>    116  0.000000e+00  0.000000e+00  1.776357e-13  5.819900e-11  3.399683e-09
#>    117  0.000000e+00  0.000000e+00  4.984901e-14  1.884737e-11  1.233234e-09
#>    118  0.000000e+00  0.000000e+00  1.376677e-14  5.986989e-12  4.383832e-10
#>    119  0.000000e+00  0.000000e+00  3.663736e-15  1.866507e-12  1.527972e-10
#>    120  0.000000e+00  0.000000e+00  9.992007e-16  5.713208e-13  5.224865e-11
#>    121  0.000000e+00  0.000000e+00  2.220446e-16  1.718625e-13  1.753742e-11
#>    122  0.000000e+00  0.000000e+00  1.110223e-16  5.084821e-14  5.781264e-12
#>    123  0.000000e+00  0.000000e+00  0.000000e+00  1.476597e-14  1.872724e-12
#>    124  0.000000e+00  0.000000e+00  0.000000e+00  4.218847e-15  5.963008e-13
#>    125  0.000000e+00  0.000000e+00  0.000000e+00  1.221245e-15  1.868505e-13
#>    126  0.000000e+00  0.000000e+00  0.000000e+00  3.330669e-16  5.750955e-14
#>    127  0.000000e+00  0.000000e+00  0.000000e+00  1.110223e-16  1.754152e-14
#>    128  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  5.218048e-15
#>    129  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  1.443290e-15
#>    130  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  4.440892e-16
#>    131  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  2.220446e-16
#>    132  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    133  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    134  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    135  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    136  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    137  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    138  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    139  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    140  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    141  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    142  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    143  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    144  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>       age
#> length            11            12            13            14            15
#>    3    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    4    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    5    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    6    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    7    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    8    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    9    0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    10   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    11   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    12   0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    13  1.527209e-301  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00
#>    14  1.042912e-279 2.678548e-286 1.196328e-291 5.343286e-296 1.535753e-299
#>    15  4.954024e-260 2.192807e-266 1.516520e-271 9.636553e-276 3.683465e-279
#>    16  3.310218e-242 2.443096e-248 2.547762e-253 2.254520e-257 1.126407e-260
#>    17  5.512966e-226 6.588741e-232 1.012006e-236 1.223683e-240 7.869737e-244
#>    18  3.662686e-211 6.905836e-217 1.529870e-221 2.485365e-225 2.029530e-228
#>    19  1.434904e-197 4.169342e-203 1.307354e-207 2.810547e-211 2.878611e-214
#>    20  4.600778e-185 2.017089e-190 8.801662e-195 2.469901e-198 3.137986e-201
#>    21  1.593261e-173 1.033962e-178 6.182597e-183 2.236717e-186 3.489808e-189
#>    22  7.549236e-163 7.126220e-168 5.757828e-172 2.655286e-175 5.041363e-178
#>    23  5.996198e-153 8.102715e-158 8.733502e-162 5.081110e-165 1.164144e-167
#>    24  9.515381e-144 1.813865e-148 2.577515e-152 1.873962e-155 5.141411e-158
#>    25  3.514087e-135 9.322687e-140 1.727654e-143 1.555970e-146 5.075973e-149
#>    26  3.451018e-127 1.258327e-131 3.010688e-135 3.331787e-138 1.283948e-140
#>    27  1.013213e-119 5.019121e-124 1.536066e-127 2.073129e-130 9.380163e-133
#>    28  9.862007e-113 6.565813e-117 2.548111e-120 4.164912e-123 2.200142e-125
#>    29  3.487618e-106 3.089447e-110 1.508169e-113 2.966063e-116 1.819697e-118
#>    30  4.861788e-100 5.676685e-104 3.459592e-107 8.136819e-110 5.769123e-112
#>    31   2.873354e-94  4.383403e-98 3.311551e-101 9.261577e-104 7.553955e-106
#>    32   7.685134e-89  1.519177e-92  1.413305e-95  4.675081e-98 4.367509e-100
#>    33   9.864393e-84  2.507188e-87  2.854373e-90  1.111164e-92  1.184161e-94
#>    34   6.406721e-79  2.078411e-82  2.878706e-85  1.312561e-87  1.589553e-89
#>    35   2.208742e-74  9.082756e-78  1.522000e-80  8.091855e-83  1.109570e-84
#>    36   4.221461e-70  2.186123e-73  4.408829e-76  2.721638e-78  4.211164e-80
#>    37   4.653135e-66  3.015847e-69  7.283688e-72  5.199865e-74  9.049452e-76
#>    38   3.066436e-62  2.472870e-65  7.118527e-68  5.854834e-70  1.142534e-71
#>    39   1.248586e-58  1.245862e-61  4.255617e-64  4.017948e-66  8.766306e-68
#>    40   3.237319e-55  3.975769e-58  1.604612e-60  1.733164e-62  4.216049e-64
#>    41   5.494693e-52  8.263687e-55  3.924828e-57  4.833933e-59  1.307596e-60
#>    42   6.262271e-49  1.147813e-51  6.390580e-54  8.947048e-56  2.684527e-57
#>    43   4.905912e-46  1.090883e-48  7.093677e-51  1.125594e-52  3.737169e-54
#>    44   2.699540e-43  7.250493e-46  5.487305e-48  9.840341e-50  3.607024e-51
#>    45   1.064423e-40  3.438715e-43  3.018754e-45  6.101597e-47  2.463823e-48
#>    46   3.063524e-38  1.185691e-40  1.203506e-42  2.734664e-44  1.213913e-45
#>    47   6.547187e-36  3.024206e-38  3.538326e-40  9.016062e-42  4.390836e-43
#>    48   1.055665e-33  5.798254e-36  7.796768e-38  2.222620e-39  1.185245e-40
#>    49   1.303353e-31  8.482465e-34  1.307206e-35  4.159462e-37  2.424332e-38
#>    50   1.249244e-29  9.601347e-32  1.691149e-33  5.993338e-35  3.811259e-36
#>    51   9.415889e-28  8.518549e-30  1.710463e-31  6.737254e-33  4.666488e-34
#>    52   5.648236e-26  5.996345e-28  1.369139e-29  5.981688e-31  4.505367e-32
#>    53   2.726910e-24  3.387008e-26  8.772973e-28  4.243145e-29  3.469865e-30
#>    54   1.070759e-22  1.551530e-24  4.548377e-26  2.430819e-27  2.154965e-28
#>    55   3.453386e-21  5.821493e-23  1.927214e-24  1.136060e-25  1.090237e-26
#>    56   9.232833e-20  1.805874e-21  6.736760e-23  4.372669e-24  4.536179e-25
#>    57   2.064059e-18  4.672200e-20  1.959998e-21  1.398463e-22  1.566147e-23
#>    58   3.889927e-17  1.016508e-18  4.785748e-20  3.747539e-21  4.524811e-22
#>    59   6.227582e-16  1.874216e-17  9.883881e-19  8.481066e-20  1.102635e-20
#>    60   8.530800e-15  2.949963e-16  1.739347e-17  1.632992e-18  2.283311e-19
#>    61   1.006716e-13  3.991076e-15  2.626279e-16  2.693918e-17  4.046276e-18
#>    62   1.030052e-12  4.671540e-14  3.424817e-15  3.832811e-16  6.177121e-17
#>    63   9.193501e-12  4.759828e-13  3.881189e-14  4.732513e-15  8.174875e-16
#>    64   7.198843e-11  4.246222e-12  3.844724e-13  5.101157e-14  9.434453e-15
#>    65   4.972346e-10  3.334868e-11  3.347685e-12  4.826938e-13  9.548413e-14
#>    66   3.045151e-09  2.317806e-10  2.575623e-11  4.030851e-12  8.519890e-13
#>    67   1.661579e-08  1.432645e-09  1.759699e-10  2.985522e-11  6.736193e-12
#>    68   8.115303e-08  7.912125e-09  1.072660e-09  1.970639e-10  4.741874e-11
#>    69   3.563404e-07  3.921649e-08  5.860025e-09  1.164440e-09  2.985469e-10
#>    70   1.412576e-06  1.751848e-07  2.881368e-08  6.186048e-09  1.688402e-09
#>    71   5.075345e-06  7.081371e-07  1.280317e-07  2.966648e-08  8.612345e-09
#>    72   1.659063e-05  2.600084e-06  5.160925e-07  1.289318e-07  3.977813e-08
#>    73   4.951780e-05  8.703289e-06  1.894178e-06  5.096822e-07  1.669777e-07
#>    74   1.354083e-04  2.665061e-05  6.352039e-06  1.839128e-06  6.392946e-07
#>    75   3.403522e-04  7.490139e-05  1.952766e-05  6.077910e-06  2.239947e-06
#>    76   7.887874e-04  1.938193e-04  5.520905e-05  1.845505e-05  7.205535e-06
#>    77   1.690544e-03  4.631599e-04  1.439822e-04  5.164412e-05  2.134621e-05
#>    78   3.360133e-03  1.025028e-03  3.473777e-04  1.335786e-04  5.840839e-05
#>    79   6.210456e-03  2.106684e-03  7.774803e-04  3.202381e-04  1.480290e-04
#>    80   1.070161e-02  4.031416e-03  1.618521e-03  7.134855e-04  3.484167e-04
#>    81   1.723479e-02  7.201059e-03  3.141851e-03  1.481082e-03  7.635624e-04
#>    82   2.600278e-02  1.203524e-02  5.700864e-03  2.871526e-03  1.561883e-03
#>    83   3.683602e-02  1.886371e-02  9.691439e-03  5.211935e-03  2.989029e-03
#>    84   4.910264e-02  2.778856e-02  1.547001e-02  8.875809e-03  5.363719e-03
#>    85   6.171875e-02  3.855531e-02  2.323644e-02  1.421246e-02  9.044651e-03
#>    86   7.329475e-02  5.048426e-02  3.290858e-02  2.144242e-02  1.436166e-02
#>    87   8.239482e-02  6.250579e-02  4.403079e-02  3.054052e-02  2.151616e-02
#>    88   8.783999e-02  7.331312e-02  5.576029e-02  4.114309e-02  3.047177e-02
#>    89   8.896352e-02  8.160418e-02  6.695685e-02  5.251972e-02  4.086918e-02
#>    90   8.574139e-02  8.634832e-02  7.636878e-02  6.363684e-02  5.200203e-02
#>    91   7.876449e-02  8.699978e-02  8.287191e-02  7.331311e-02  6.287846e-02
#>    92   6.907275e-02  8.359677e-02  8.569611e-02  8.043387e-02  7.236743e-02
#>    93   5.791194e-02  7.672299e-02  8.457501e-02  8.416886e-02  7.939982e-02
#>    94   4.648771e-02  6.735327e-02  7.977918e-02  8.413254e-02  8.317264e-02
#>    95   3.577806e-02  5.663661e-02  7.203087e-02  8.044465e-02  8.330117e-02
#>    96   2.643511e-02  4.568004e-02  6.233346e-02  7.367973e-02  7.987902e-02
#>    97   1.877529e-02  3.538423e-02  5.176867e-02  6.472792e-02  7.343522e-02
#>    98   1.283418e-02  2.635661e-02  4.131471e-02  5.461117e-02  6.480728e-02
#>    99   8.453582e-03  1.890116e-02  3.172216e-02  4.430482e-02  5.497031e-02
#>    100  5.371560e-03  1.306502e-02  2.346121e-02  3.460302e-02  4.486785e-02
#>    101  3.296291e-03  8.714430e-03  1.673241e-02  2.604750e-02  3.528127e-02
#>    102  1.955585e-03  5.614919e-03  1.152021e-02  1.891841e-02  2.675692e-02
#>    103  1.122791e-03  3.498442e-03  7.665009e-03  1.327183e-02  1.959185e-02
#>    104  6.244825e-04  2.109927e-03  4.933503e-03  9.002209e-03  1.386469e-02
#>    105  3.367866e-04  1.232940e-03  3.074777e-03  5.909739e-03  9.492321e-03
#>    106  1.762794e-04  6.987208e-04  1.857367e-03  3.758398e-03  6.293318e-03
#>    107  8.962851e-05  3.843647e-04  1.088438e-03  2.317674e-03  4.044222e-03
#>    108  4.430579e-05  2.054185e-04  6.193186e-04  1.387086e-03  2.521318e-03
#>    109  2.131101e-05  1.067473e-04  3.424511e-04  8.063607e-04  1.526279e-03
#>    110  9.982150e-06  5.398196e-05  1.841681e-04  4.557122e-04  8.978781e-04
#>    111  4.556761e-06  2.658613e-05  9.640653e-05  2.505741e-04  5.137236e-04
#>    112  2.028733e-06  1.276164e-05  4.915965e-05  1.341538e-04  2.860949e-04
#>    113  8.815437e-07  5.974766e-06  2.443679e-05  6.998693e-05  1.551987e-04
#>    114  3.741246e-07  2.730280e-06  1.185018e-05  3.560360e-05  8.206939e-05
#>    115  1.551800e-07  1.218606e-06  5.609872e-06  1.767416e-05  4.233479e-05
#>    116  6.294858e-08  5.315912e-07  2.594304e-06  8.567365e-06  2.131742e-05
#>    117  2.498860e-08  2.267933e-07  1.172766e-06  4.057936e-06  1.048530e-05
#>    118  9.713359e-09  9.468716e-08  5.185601e-07  1.879271e-06  5.040993e-06
#>    119  3.699357e-09  3.870990e-08  2.244134e-07  8.514680e-07  2.370337e-06
#>    120  1.381216e-09  1.550519e-08  9.510819e-08  3.776605e-07  1.090750e-06
#>    121  5.058446e-10  6.088376e-09  3.949621e-08  1.640745e-07  4.914908e-07
#>    122  1.818139e-10  2.344950e-09  1.608061e-08  6.986033e-08  2.169835e-07
#>    123  6.416789e-11  8.863482e-10  6.422342e-09  2.916801e-08  9.390690e-08
#>    124  2.224898e-11  3.289555e-10  2.517415e-09  1.194810e-08  3.986202e-08
#>    125  7.582490e-12  1.199360e-10  9.689615e-10  4.804292e-09  1.660491e-08
#>    126  2.541301e-12  4.297840e-11  3.664055e-10  1.897203e-09  6.791201e-09
#>    127  8.378853e-13  1.514422e-11  1.361845e-10  7.361415e-10  2.728354e-09
#>    128  2.718936e-13  5.249579e-12  4.977430e-11  2.807857e-10  1.077218e-09
#>    129  8.693046e-14  1.791123e-12  1.789746e-11  1.053301e-10  4.181713e-10
#>    130  2.731149e-14  6.016299e-13  6.333822e-12  3.887612e-11  1.596782e-10
#>    131  8.548717e-15  1.990630e-13  2.207123e-12  1.412392e-11  6.000189e-11
#>    132  2.553513e-15  6.494805e-14  7.576162e-13  5.052958e-12  2.219702e-11
#>    133  7.771561e-16  2.087219e-14  2.562395e-13  1.780909e-12  8.087420e-12
#>    134  2.220446e-16  6.550316e-15  8.537615e-14  6.186163e-13  2.903233e-12
#>    135  1.110223e-16  2.109424e-15  2.819966e-14  2.118306e-13  1.027289e-12
#>    136  0.000000e+00  5.551115e-16  9.103829e-15  7.149836e-14  3.583800e-13
#>    137  0.000000e+00  2.220446e-16  2.886580e-15  2.386980e-14  1.233458e-13
#>    138  0.000000e+00  1.110223e-16  8.881784e-16  7.771561e-15  4.196643e-14
#>    139  0.000000e+00  0.000000e+00  3.330669e-16  2.553513e-15  1.398881e-14
#>    140  0.000000e+00  0.000000e+00  1.110223e-16  8.881784e-16  4.662937e-15
#>    141  0.000000e+00  0.000000e+00  0.000000e+00  2.220446e-16  1.554312e-15
#>    142  0.000000e+00  0.000000e+00  0.000000e+00  1.110223e-16  4.440892e-16
#>    143  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  1.110223e-16
#>    144  0.000000e+00  0.000000e+00  0.000000e+00  0.000000e+00  1.110223e-16
sim_abundance(growth = sim_vonB(plot = TRUE))

#> $ages
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
#> 
#> $lengths
#>  [1]   1   4   7  10  13  16  19  22  25  28  31  34  37  40  43  46  49  52  55
#> [20]  58  61  64  67  70  73  76  79  82  85  88  91  94  97 100 103 106 109 112
#> [39] 115 118 121 124 127 130 133 136 139 142 145 148 151 154 157 160 163 166 169
#> [58] 172 175 178 181 184 187 190 193 196 199 202 205 208 211 214 217 220 223 226
#> [77] 229 232 235 238
#> 
#> $years
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
#> 
#> $R
#>        1        2        3        4        5        6        7        8 
#> 26589614 11435019  3748080  5232373  3728843  5109924  4235750  1968445 
#>        9       10       11       12       13       14       15       16 
#>  1886649  4164719  4096200  1710234  3005465  2737698  4755544  2921349 
#>       17       18       19       20 
#>  3742729  6095144  8388394 14044871 
#> 
#> $N0
#>  [1] 2.658961e+07 1.609956e+07 1.019290e+07 6.528210e+06 3.789714e+06
#>  [6] 2.104336e+06 1.317318e+06 8.354006e+05 5.128643e+05 2.817548e+05
#> [11] 1.162858e+05 4.645311e+04 1.309390e+04 2.663318e+03 5.813223e+02
#> [16] 2.441860e+02 1.265104e+02 6.421967e+01 3.099844e+01 1.233455e+01
#> 
#> $Z
#>     year
#> age          1         2         3         4         5         6         7
#>   1  0.5017287 0.3403155 0.6113857 0.8980361 0.5699539 0.1280950 0.5334212
#>   2  0.4571010 0.3124170 0.4688922 0.7455196 0.5458529 0.1339619 0.7340486
#>   3  0.4455582 0.3814108 0.4668579 0.6113045 0.4800287 0.1535352 0.6785934
#>   4  0.5438422 0.4382971 0.5962008 0.4759809 0.4268462 0.1349939 0.4740607
#>   5  0.5882905 0.5855820 0.7022517 0.6337178 0.4980761 0.1536653 0.4512881
#>   6  0.4684021 0.5224790 0.6231524 0.8188665 0.5807874 0.2344479 0.4115892
#>   7  0.4554419 0.5843674 0.5260312 0.8286695 0.5454106 0.2248603 0.5728383
#>   8  0.4879002 0.4369382 0.4604373 0.5795397 0.4214630 0.2723877 0.7463771
#>   9  0.5989740 0.4985879 0.3501237 0.5054171 0.3638438 0.3130027 0.9107168
#>   10 0.8849860 0.5946587 0.5305599 0.8836046 0.4512374 0.4500222 1.0347292
#>   11 0.9176077 0.6549753 0.8596840 1.0781534 0.6064530 0.4235916 0.8915537
#>   12 1.2662969 0.8387146 1.0680617 0.9327267 0.4457578 0.5001383 0.7161532
#>   13 1.5925739 1.4103705 1.3746583 1.3122951 0.6638365 0.6989855 0.8164424
#>   14 1.5220225 1.5578390 1.8158552 1.8298058 0.8703852 0.6273873 0.6634923
#>   15 0.8673751 0.7210166 1.4173781 1.4837765 0.9140914 0.6937263 0.5412065
#>   16 0.6576061 0.7700796 1.1833669 1.3002286 1.0220272 0.9341038 0.8256021
#>   17 0.6780146 0.4733061 0.8015619 0.8927693 0.8430147 0.6847987 0.7353359
#>   18 0.7283726 0.3748584 0.7183762 0.4982555 0.6399984 0.9461781 1.0494010
#>   19 0.9215325 0.4693255 0.8391472 0.5152807 0.6002009 1.1591288 0.8419837
#>   20 0.7587297 0.6718038 0.8672988 0.4144315 0.5992981 1.1669876 1.0125376
#>     year
#> age          8         9        10        11        12        13        14
#>   1  0.5912119 0.4979723 0.7604804 0.6059353 0.9850268 0.8806554 0.6322654
#>   2  0.5014147 0.5105851 0.8737236 0.5784490 0.7589451 0.7426512 0.6364948
#>   3  0.5544208 0.5545525 1.0109531 0.5592727 0.6730765 0.8877421 0.7355661
#>   4  0.4490670 0.5100617 0.8527017 0.5961307 0.6424817 0.7014208 0.7083792
#>   5  0.6121047 0.7263474 0.8727144 0.7659204 0.7233443 0.7730604 0.6176011
#>   6  0.7431113 0.9861672 0.9852852 0.7993917 0.5755704 0.6883649 0.6686406
#>   7  1.0841927 1.2050408 1.0319000 1.2108610 0.9710860 1.1038239 0.7286978
#>   8  1.1405549 1.1784383 0.6347522 1.0136772 0.9176787 1.3363873 0.9120820
#>   9  1.0157502 0.9950727 0.5501395 1.5110602 0.8984101 1.3064407 0.6858455
#>   10 0.6926128 0.7322754 0.4815497 0.9640968 0.5041005 1.0558205 0.7701375
#>   11 0.9342632 0.8051262 0.4523889 0.8101091 0.5010346 0.6805279 0.6931376
#>   12 1.0335347 0.7053239 0.3586592 0.5884958 0.4091560 0.8503322 0.6948932
#>   13 1.3023589 0.8238141 0.3748406 0.6312411 0.5043051 0.6268320 0.5747451
#>   14 0.7060857 0.4959540 0.2778501 0.6215894 0.4698895 0.6268026 0.4856583
#>   15 0.7167800 0.5136606 0.4183962 0.8059224 0.7008189 0.6929841 0.5726561
#>   16 0.9545693 0.8170320 0.4306531 1.0051913 0.8411993 0.6376177 0.6159811
#>   17 0.7814281 0.5782962 0.3219538 0.8970174 0.6162869 0.8846302 0.7141932
#>   18 0.7421349 0.4835163 0.3051197 0.7031341 0.4641278 0.6877320 0.5873528
#>   19 0.9826230 0.3652100 0.2965194 0.5961653 0.5153271 0.7082833 0.8163877
#>   20 1.0957888 0.2946672 0.2498899 0.4341779 0.5989691 0.8590506 0.6396887
#>     year
#> age         15        16        17        18        19        20
#>   1  0.7432904 0.4877244 0.5218092 0.7039862 0.6523745 0.4095653
#>   2  0.8416365 0.4575101 0.6187509 0.6153194 0.6410895 0.2911899
#>   3  0.7261186 0.3555402 0.5714963 0.4728282 0.5394614 0.2718159
#>   4  0.7056986 0.4568134 0.6117422 0.5013869 0.5924486 0.3397535
#>   5  0.5889009 0.3070356 0.4547950 0.6353831 0.6883653 0.4271793
#>   6  0.5526825 0.3645527 0.3795931 0.5166544 0.4025290 0.3961761
#>   7  0.6749799 0.3853434 0.4726694 0.7234768 0.5068009 0.4987683
#>   8  0.6623634 0.4142882 0.6273539 0.5763111 0.3432017 0.3045969
#>   9  0.6843125 0.5842190 0.5925655 0.4788178 0.2326468 0.2191736
#>   10 0.6895209 0.5896699 0.4916961 0.4667355 0.3068523 0.2716017
#>   11 0.5278520 0.4444744 0.5123081 0.3731079 0.1791955 0.1647376
#>   12 0.4890930 0.3995868 0.4529129 0.3881434 0.2601992 0.2767337
#>   13 0.3816768 0.3772155 0.4585380 0.3070968 0.3251067 0.3702639
#>   14 0.3470516 0.3899452 0.6233443 0.4162598 0.3719023 0.4037109
#>   15 0.4314023 0.4152208 0.5537506 0.3345789 0.4054992 0.4565227
#>   16 0.7003933 0.7332107 0.7403572 0.3546438 0.3853677 0.3670001
#>   17 0.8455621 0.6616405 0.6524892 0.3503154 0.3674758 0.3532324
#>   18 0.5638668 0.7357355 0.7447521 0.4414194 0.3871777 0.3857177
#>   19 0.5073967 0.5814185 0.9184897 0.4829233 0.3114390 0.4153383
#>   20 0.3388215 0.5760313 1.1458350 0.6703084 0.4174942 0.4537820
#> 
#> $N
#>     year
#> age             1            2            3            4            5
#>   1  2.658961e+07 1.143502e+07 3.748080e+06 5.232373e+06 3.728843e+06
#>   2  1.609956e+07 1.609956e+07 8.136540e+06 2.033703e+06 2.131506e+06
#>   3  1.019290e+07 1.019290e+07 1.177967e+07 5.090993e+06 9.649668e+05
#>   4  6.528210e+06 6.528210e+06 6.960701e+06 7.385489e+06 2.762589e+06
#>   5  3.789714e+06 3.789714e+06 4.211571e+06 3.834655e+06 4.588422e+06
#>   6  2.104336e+06 2.104336e+06 2.110044e+06 2.086700e+06 2.034727e+06
#>   7  1.317318e+06 1.317318e+06 1.247974e+06 1.131514e+06 9.200912e+05
#>   8  8.354006e+05 8.354006e+05 7.343501e+05 7.374846e+05 4.940526e+05
#>   9  5.128643e+05 5.128643e+05 5.396783e+05 4.633805e+05 4.131065e+05
#>   10 2.817548e+05 2.817548e+05 3.115075e+05 3.802578e+05 2.795361e+05
#>   11 1.162858e+05 1.162858e+05 1.554584e+05 1.832522e+05 1.571569e+05
#>   12 4.645311e+04 4.645311e+04 6.040524e+04 6.580491e+04 6.234665e+04
#>   13 1.309390e+04 1.309390e+04 2.008009e+04 2.075971e+04 2.589287e+04
#>   14 2.663318e+03 2.663318e+03 3.195604e+03 5.078777e+03 5.588546e+03
#>   15 5.813223e+02 5.813223e+02 5.608698e+02 5.199205e+02 8.148630e+02
#>   16 2.441860e+02 2.441860e+02 2.826725e+02 1.359260e+02 1.179074e+02
#>   17 1.265104e+02 1.265104e+02 1.130523e+02 8.656728e+01 3.703569e+01
#>   18 6.421967e+01 6.421967e+01 7.880828e+01 5.071840e+01 3.545104e+01
#>   19 3.099844e+01 3.099844e+01 4.414374e+01 3.842245e+01 3.081598e+01
#>   20 1.233455e+01 1.233455e+01 1.938717e+01 1.907358e+01 2.295099e+01
#>     year
#> age             6            7            8            9           10
#>   1  5.109924e+06 4.235750e+06 1.968445e+06 1.886649e+06 4.164719e+06
#>   2  2.108853e+06 4.495556e+06 2.484669e+06 1.089841e+06 1.146633e+06
#>   3  1.234883e+06 1.844452e+06 2.157696e+06 1.504897e+06 6.540620e+05
#>   4  5.970883e+05 1.059122e+06 9.357460e+05 1.239391e+06 8.643065e+05
#>   5  1.802766e+06 5.216888e+05 6.592713e+05 5.972149e+05 7.442028e+05
#>   6  2.788378e+06 1.545978e+06 3.322153e+05 3.574625e+05 2.888564e+05
#>   7  1.138343e+06 2.205628e+06 1.024360e+06 1.580121e+05 1.333348e+05
#>   8  5.332883e+05 9.091127e+05 1.243803e+06 3.464125e+05 4.735304e+04
#>   9  3.241411e+05 4.061305e+05 4.309931e+05 3.975713e+05 1.066116e+05
#>   10 2.871089e+05 2.370275e+05 1.633602e+05 1.560758e+05 1.469808e+05
#>   11 1.780197e+05 1.830647e+05 8.422124e+04 8.172377e+04 7.504339e+04
#>   12 8.569478e+04 1.165479e+05 7.505985e+04 3.308844e+04 3.653310e+04
#>   13 3.992298e+04 5.196932e+04 5.694861e+04 2.670234e+04 1.634399e+04
#>   14 1.333152e+04 1.984529e+04 2.297051e+04 1.548374e+04 1.171578e+04
#>   15 2.340428e+03 7.118835e+03 1.022131e+04 1.133761e+04 9.429438e+03
#>   16 3.266628e+02 1.169537e+03 4.143486e+03 4.991290e+03 6.783308e+03
#>   17 4.243070e+01 1.283582e+02 5.122233e+02 1.595151e+03 2.204856e+03
#>   18 1.594057e+01 2.139321e+01 6.152779e+01 2.344712e+02 8.946453e+02
#>   19 1.869309e+01 6.188479e+00 7.490777e+00 2.929316e+01 1.445776e+02
#>   20 1.690877e+01 5.865134e+00 2.666337e+00 2.804007e+00 2.033094e+01
#>     year
#> age            11           12           13           14           15
#>   1  4096200.0173 1710234.4819 3005465.2990 2737698.1113 4755544.0140
#>   2  1946763.7275 2234738.8537  638651.5534 1245798.8961 1454776.1412
#>   3   478598.3220 1091681.6996 1046215.3818  303902.7730  659206.9481
#>   4   237994.8414  273578.6051  556906.9045  430605.5304  145640.5643
#>   5   368420.7864  131120.6988  143898.3626  276159.1462  212048.1103
#>   6   310939.7767  171280.9672   63610.2093   66423.2267  148915.0823
#>   7   107839.5331  139799.2668   96325.6745   31957.5690   34035.5709
#>   8    47511.0936   32129.7812   52938.0091   31941.6572   15420.7075
#>   9    25100.2762   17240.9262   12834.0862   13911.7569   12830.5498
#>   10   61500.9362    5539.0256    7020.7909    3475.2414    7006.8540
#>   11   90808.4136   23451.9957    3345.8410    2442.5811    1608.8609
#>   12   47735.6044   40392.4462   14209.6453    1694.1653    1221.3023
#>   13   25522.4770   26500.9813   26829.0924    6071.3973     845.6049
#>   14   11234.8376   13576.2026   16004.6080   14334.2936    3417.2758
#>   15    8873.6555    6034.1198    8486.0948    8551.2213    8819.7766
#>   16    6205.5268    3963.6463    2994.0025    4243.7395    4823.1053
#>   17    4409.7225    2271.0652    1709.0969    1582.4803    2292.0893
#>   18    1597.9292    1798.2148    1226.2516     705.6294     774.7616
#>   19     659.3850     791.0251    1130.5075     616.4550     392.1864
#>   20     107.4792     363.2685     472.4834     556.7624     272.4888
#>     year
#> age            16           17           18           19           20
#>   1  2921348.6200 3742729.0685 6095144.0571 8388393.6805 1.404487e+07
#>   2  2261482.7579 1793772.4999 2221107.3004 3014717.6336 4.368739e+06
#>   3   627015.1937 1431196.2221  966155.9719 1200437.9587 1.587907e+06
#>   4   318913.1921  439408.9859  808167.7380  602144.2723 6.999300e+05
#>   5    71911.9961  201967.2372  238337.6513  489499.1773 3.329687e+05
#>   6   117673.3183   52900.2224  128163.9773  126255.2036 2.459227e+05
#>   7    85686.3703   81724.9726   36191.1440   76451.4631 8.441763e+04
#>   8    17329.7778   58285.3267   50942.1289   17554.9801 4.605587e+04
#>   9     7951.3986   11451.6989   31124.5356   28627.8246 1.245517e+04
#>   10    6472.2032    4433.2317    6331.7245   19282.1269 2.268564e+04
#>   11    3516.1545    3588.9032    2711.3121    3970.2819 1.418700e+04
#>   12     949.0198    2254.4218    2150.1521    1866.9850 3.318927e+03
#>   13     748.8809     636.4099    1433.3016    1458.4806 1.439255e+03
#>   14     577.3077     513.5588     402.3430    1054.3071 1.053680e+03
#>   15    2415.2242     390.8916     275.3437     265.3488 7.268621e+02
#>   16    5729.3053    1594.5177     224.6806     197.0468 1.768931e+02
#>   17    2394.1414    2752.1531     760.4949     157.5962 1.340313e+02
#>   18     984.0305    1235.3868    1433.1780     535.7427 1.091322e+02
#>   19     440.8429     471.5011     586.6259     921.7096 3.637534e+02
#>   20     236.1201     246.4774     188.1862     361.9348 6.750529e+02
#> 
#> $N_at_length
#>       year
#> length            1            2            3            4            5
#>    1   1.615536e-55 6.947708e-56 2.277265e-56 3.179094e-56 2.265576e-56
#>    4   1.953977e-15 8.403192e-16 2.754332e-16 3.845086e-16 2.740195e-16
#>    7   1.429699e-01 6.148502e-02 2.015307e-02 2.813398e-02 2.004964e-02
#>    10  5.968304e+04 2.566704e+04 8.412940e+03 1.174458e+04 8.369759e+03
#>    13  7.143088e+06 3.071927e+06 1.006892e+06 1.405635e+06 1.001724e+06
#>    16  1.639659e+07 7.052814e+06 2.312140e+06 3.226395e+06 2.299387e+06
#>    19  3.216924e+06 1.555814e+06 5.636671e+05 6.117269e+05 4.487597e+05
#>    22  3.466131e+06 3.421929e+06 1.724147e+06 4.436897e+05 4.594689e+05
#>    25  7.132466e+06 7.132140e+06 3.640591e+06 9.217559e+05 9.422171e+05
#>    28  4.879522e+06 4.879521e+06 2.884942e+06 8.575060e+05 6.220847e+05
#>    31  3.334065e+06 3.334065e+06 3.214314e+06 1.317190e+06 3.614852e+05
#>    34  3.755269e+06 3.755269e+06 4.247945e+06 1.980631e+06 4.368552e+05
#>    37  3.325264e+06 3.325264e+06 3.761513e+06 2.204624e+06 6.160290e+05
#>    40  2.714889e+06 2.714889e+06 2.988543e+06 2.428993e+06 9.157245e+05
#>    43  2.394025e+06 2.394025e+06 2.591083e+06 2.500013e+06 1.232898e+06
#>    46  2.053273e+06 2.053273e+06 2.220355e+06 2.197421e+06 1.458160e+06
#>    49  1.695983e+06 1.695983e+06 1.834180e+06 1.775518e+06 1.530029e+06
#>    52  1.395122e+06 1.395122e+06 1.492399e+06 1.418760e+06 1.408197e+06
#>    55  1.145517e+06 1.145517e+06 1.196809e+06 1.134039e+06 1.155962e+06
#>    58  9.387767e+05 9.387767e+05 9.519075e+05 9.043924e+05 8.857549e+05
#>    61  7.702307e+05 7.702307e+05 7.596397e+05 7.227612e+05 6.630091e+05
#>    64  6.309312e+05 6.309312e+05 6.106985e+05 5.815036e+05 4.998382e+05
#>    67  5.122378e+05 5.122378e+05 4.930076e+05 4.713967e+05 3.855984e+05
#>    70  4.087881e+05 4.087881e+05 3.968079e+05 3.833931e+05 3.049764e+05
#>    73  3.181927e+05 3.181927e+05 3.153489e+05 3.099579e+05 2.444915e+05
#>    76  2.399710e+05 2.399710e+05 2.448393e+05 2.460878e+05 1.949695e+05
#>    79  1.744516e+05 1.744516e+05 1.839858e+05 1.895717e+05 1.518752e+05
#>    82  1.218259e+05 1.218259e+05 1.329121e+05 1.403287e+05 1.140667e+05
#>    85  8.157185e+04 8.157185e+04 9.193703e+04 9.918627e+04 8.198555e+04
#>    88  5.233987e+04 5.233987e+04 6.078655e+04 6.673146e+04 5.620756e+04
#>    91  3.219591e+04 3.219591e+04 3.840987e+04 4.270983e+04 3.673244e+04
#>    94  1.900791e+04 1.900791e+04 2.321494e+04 2.603401e+04 2.290185e+04
#>    97  1.078795e+04 1.078795e+04 1.344133e+04 1.514691e+04 1.364488e+04
#>    100 5.897681e+03 5.897681e+03 7.470117e+03 8.434780e+03 7.784567e+03
#>    103 3.112852e+03 3.112852e+03 3.994276e+03 4.509165e+03 4.262279e+03
#>    106 1.590310e+03 1.590310e+03 2.060247e+03 2.321315e+03 2.245022e+03
#>    109 7.886166e+02 7.886166e+02 1.028095e+03 1.154350e+03 1.140348e+03
#>    112 3.807250e+02 3.807250e+02 4.979044e+02 5.562332e+02 5.600122e+02
#>    115 1.795068e+02 1.795068e+02 2.348083e+02 2.605245e+02 2.665919e+02
#>    118 8.292017e+01 8.292017e+01 1.082064e+02 1.189823e+02 1.233610e+02
#>    121 3.764488e+01 3.764488e+01 4.889930e+01 5.315477e+01 5.564539e+01
#>    124 1.684551e+01 1.684551e+01 2.174527e+01 2.330317e+01 2.454040e+01
#>    127 7.449123e+00 7.449123e+00 9.546278e+00 1.005689e+01 1.061312e+01
#>    130 3.261871e+00 3.261871e+00 4.148782e+00 4.285348e+00 4.514656e+00
#>    133 1.416507e+00 1.416507e+00 1.788889e+00 1.807836e+00 1.894530e+00
#>    136 6.105977e-01 6.105977e-01 7.664538e-01 7.568020e-01 7.864409e-01
#>    139 2.613581e-01 2.613581e-01 3.265804e-01 3.149407e-01 3.237240e-01
#>    142 1.110794e-01 1.110794e-01 1.384154e-01 1.304417e-01 1.324030e-01
#>    145 4.685883e-02 4.685883e-02 5.833709e-02 5.380309e-02 5.388674e-02
#>    148 1.961032e-02 1.961032e-02 2.443472e-02 2.210229e-02 2.184419e-02
#>    151 8.137111e-03 8.137111e-03 1.016347e-02 9.039956e-03 8.823533e-03
#>    154 3.345998e-03 3.345998e-03 4.194817e-03 3.679089e-03 3.551330e-03
#>    157 1.362928e-03 1.362928e-03 1.716805e-03 1.488848e-03 1.423731e-03
#>    160 5.497814e-04 5.497814e-04 6.963514e-04 5.986638e-04 5.682140e-04
#>    163 2.195906e-04 2.195906e-04 2.798140e-04 2.390323e-04 2.256127e-04
#>    166 8.684330e-05 8.684330e-05 1.113653e-04 9.472006e-05 8.906507e-05
#>    169 3.400927e-05 3.400927e-05 4.389757e-05 3.723680e-05 3.493810e-05
#>    172 1.319105e-05 1.319105e-05 1.713838e-05 1.451931e-05 1.361273e-05
#>    175 5.068644e-06 5.068644e-06 6.628377e-06 5.614540e-06 5.266252e-06
#>    178 1.930104e-06 1.930104e-06 2.540201e-06 2.153245e-06 2.022514e-06
#>    181 7.286020e-07 7.286020e-07 9.648918e-07 8.190691e-07 7.710310e-07
#>    184 2.727564e-07 2.727564e-07 3.633930e-07 3.090698e-07 2.917620e-07
#>    187 1.013172e-07 1.013172e-07 1.357697e-07 1.157473e-07 1.096238e-07
#>    190 3.735202e-08 3.735202e-08 5.033273e-08 4.302248e-08 4.089540e-08
#>    193 1.366790e-08 1.366790e-08 1.851662e-08 1.587039e-08 1.514455e-08
#>    196 4.975283e-09 4.975283e-09 6.774707e-09 5.825274e-09 5.581939e-09
#>    199 1.795805e-09 1.795805e-09 2.457283e-09 2.118617e-09 2.038469e-09
#>    202 6.455119e-10 6.455119e-10 8.874131e-10 7.676507e-10 7.418494e-10
#>    205 2.299223e-10 2.299223e-10 3.174785e-10 2.751213e-10 2.667481e-10
#>    208 8.180320e-11 8.180320e-11 1.134270e-10 9.863819e-11 9.606436e-11
#>    211 2.917543e-11 2.917543e-11 4.057301e-11 3.556906e-11 3.484882e-11
#>    214 1.018621e-11 1.018621e-11 1.424055e-11 1.242846e-11 1.219370e-11
#>    217 3.604606e-12 3.604606e-12 5.042269e-12 4.421062e-12 4.382399e-12
#>    220 1.246239e-12 1.246239e-12 1.757752e-12 1.543312e-12 1.523518e-12
#>    223 4.267312e-13 4.267312e-13 6.062635e-13 5.384188e-13 5.343916e-13
#>    226 1.493479e-13 1.493479e-13 2.107285e-13 1.878684e-13 1.861245e-13
#>    229 4.417587e-14 4.417587e-14 6.494417e-14 5.869294e-14 6.093812e-14
#>    232 2.222932e-14 2.222932e-14 3.146581e-14 2.686793e-14 2.606681e-14
#>    235 6.180339e-15 6.180339e-15 9.205756e-15 8.500934e-15 8.517405e-15
#>    238 1.369410e-15 1.369410e-15 2.152408e-15 2.117593e-15 2.548072e-15
#>       year
#> length            6            7            8            9           10
#>    1   3.104696e-56 2.573564e-56 1.195991e-56 1.146293e-56 2.530407e-56
#>    4   3.755103e-16 3.112704e-16 1.446541e-16 1.386432e-16 3.060505e-16
#>    7   2.747558e-02 2.277523e-02 1.058414e-02 1.014433e-02 2.239330e-02
#>    10  1.146973e+04 9.507564e+03 4.418370e+03 4.234772e+03 9.348127e+03
#>    13  1.372740e+06 1.137901e+06 5.288070e+05 5.068332e+05 1.118818e+06
#>    16  3.150909e+06 2.612279e+06 1.214041e+06 1.163402e+06 2.567986e+06
#>    19  5.997159e+05 5.487280e+05 2.624347e+05 2.272690e+05 4.780369e+05
#>    22  4.587577e+05 9.584619e+05 5.287640e+05 2.349704e+05 2.534792e+05
#>    25  9.337570e+05 1.986103e+06 1.103904e+06 4.872684e+05 5.076419e+05
#>    28  6.327892e+05 1.299188e+06 7.899420e+05 3.818718e+05 3.430581e+05
#>    31  4.127679e+05 6.989825e+05 6.478005e+05 4.151522e+05 2.226935e+05
#>    34  4.497778e+05 6.859474e+05 7.728918e+05 5.553773e+05 2.576210e+05
#>    37  3.849282e+05 5.857733e+05 6.447491e+05 5.264018e+05 2.739494e+05
#>    40  3.256763e+05 4.576279e+05 4.606977e+05 4.696295e+05 2.991178e+05
#>    43  3.919701e+05 3.948106e+05 3.726136e+05 4.313150e+05 3.234979e+05
#>    46  5.581661e+05 3.649532e+05 3.231292e+05 3.631295e+05 3.146934e+05
#>    49  7.542320e+05 3.952202e+05 2.876190e+05 2.880311e+05 2.814815e+05
#>    52  9.022802e+05 5.018574e+05 2.758988e+05 2.303862e+05 2.338100e+05
#>    55  9.475871e+05 6.411450e+05 2.991951e+05 1.899218e+05 1.804026e+05
#>    58  8.808565e+05 7.466080e+05 3.549214e+05 1.647899e+05 1.330147e+05
#>    61  7.391214e+05 7.729997e+05 4.175897e+05 1.551294e+05 9.837455e+04
#>    64  5.779600e+05 7.155607e+05 4.533115e+05 1.571564e+05 7.702272e+04
#>    67  4.374725e+05 6.026154e+05 4.427261e+05 1.621968e+05 6.647765e+04
#>    70  3.311603e+05 4.727717e+05 3.897253e+05 1.611884e+05 6.282740e+04
#>    73  2.548926e+05 3.547777e+05 3.135210e+05 1.496164e+05 6.165130e+04
#>    76  1.990081e+05 2.608107e+05 2.350674e+05 1.287488e+05 5.936827e+04
#>    79  1.552896e+05 1.907204e+05 1.680180e+05 1.032867e+05 5.428759e+04
#>    82  1.190061e+05 1.392137e+05 1.170616e+05 7.814709e+04 4.662182e+04
#>    85  8.833088e+04 1.008017e+05 8.086649e+04 5.652025e+04 3.766460e+04
#>    88  6.295368e+04 7.164385e+04 5.580711e+04 3.957154e+04 2.883808e+04
#>    91  4.289960e+04 4.948453e+04 3.837927e+04 2.707596e+04 2.111853e+04
#>    94  2.791536e+04 3.297758e+04 2.607283e+04 1.819892e+04 1.491647e+04
#>    97  1.735295e+04 2.111766e+04 1.732200e+04 1.202557e+04 1.022439e+04
#>    100 1.031875e+04 1.297277e+04 1.116367e+04 7.793196e+03 6.823596e+03
#>    103 5.880136e+03 7.645155e+03 6.943502e+03 4.933811e+03 4.437299e+03
#>    106 3.217600e+03 4.326710e+03 4.157417e+03 3.039491e+03 2.808853e+03
#>    109 1.694263e+03 2.355314e+03 2.394866e+03 1.816455e+03 1.727812e+03
#>    112 8.603468e+02 1.235625e+03 1.328071e+03 1.050981e+03 1.031071e+03
#>    115 4.222404e+02 6.259627e+02 7.099417e+02 5.881874e+02 5.961910e+02
#>    118 2.007219e+02 3.068445e+02 3.664599e+02 3.183957e+02 3.338474e+02
#>    121 9.262694e+01 1.458354e+02 1.829975e+02 1.668036e+02 1.810541e+02
#>    124 4.158598e+01 6.733184e+01 8.857456e+01 8.465945e+01 9.515262e+01
#>    127 1.820464e+01 3.025485e+01 4.163279e+01 4.168131e+01 4.850704e+01
#>    130 7.787481e+00 1.325425e+01 1.903768e+01 1.993595e+01 2.401546e+01
#>    133 3.262396e+00 5.670675e+00 8.483932e+00 9.277476e+00 1.156321e+01
#>    136 1.341320e+00 2.373193e+00 3.690621e+00 4.207237e+00 5.422520e+00
#>    139 5.423665e-01 9.730096e-01 1.569626e+00 1.862124e+00 2.480308e+00
#>    142 2.161207e-01 3.914022e-01 6.536191e-01 8.055971e-01 1.108239e+00
#>    145 8.503116e-02 1.546884e-01 2.668620e-01 3.411567e-01 4.844070e-01
#>    148 3.309162e-02 6.014480e-02 1.069670e-01 1.416180e-01 2.074151e-01
#>    151 1.275932e-02 2.303533e-02 4.214530e-02 5.770108e-02 8.711657e-02
#>    154 4.881318e-03 8.701022e-03 1.634144e-02 2.310426e-02 3.593683e-02
#>    157 1.855185e-03 3.245056e-03 6.242386e-03 9.102376e-03 1.457728e-02
#>    160 7.011667e-04 1.196249e-03 2.351689e-03 3.532275e-03 5.821040e-03
#>    163 2.637461e-04 4.363291e-04 8.745869e-04 1.351591e-03 2.290724e-03
#>    166 9.879505e-05 1.576235e-04 3.213817e-04 5.104515e-04 8.892554e-04
#>    169 3.686705e-05 5.644652e-05 1.167919e-04 1.904507e-04 3.408540e-04
#>    172 1.370868e-05 2.005557e-05 4.200826e-05 7.025974e-05 1.291160e-04
#>    175 5.079806e-06 7.075535e-06 1.496661e-05 2.564955e-05 4.837486e-05
#>    178 1.875874e-06 2.480489e-06 5.285649e-06 9.273310e-06 1.794005e-05
#>    181 6.902942e-07 8.646980e-07 1.851642e-06 3.322633e-06 6.590317e-06
#>    184 2.530839e-07 2.998988e-07 6.438289e-07 1.180622e-06 2.399728e-06
#>    187 9.246804e-08 1.035745e-07 2.223514e-07 4.163028e-07 8.667114e-07
#>    190 3.365613e-08 3.563325e-08 7.631492e-08 1.457547e-07 3.106700e-07
#>    193 1.219237e-08 1.220197e-08 2.603284e-08 5.069450e-08 1.105766e-07
#>    196 4.414458e-09 4.184611e-09 8.848163e-09 1.753191e-08 3.910895e-08
#>    199 1.583654e-09 1.420837e-09 2.985352e-09 6.026697e-09 1.374693e-08
#>    202 5.688755e-10 4.847910e-10 1.005838e-09 2.062319e-09 4.806301e-09
#>    205 2.003822e-10 1.607156e-10 3.326800e-10 6.995586e-10 1.669801e-09
#>    208 7.157197e-11 5.481209e-11 1.114633e-10 2.374892e-10 5.783318e-10
#>    211 2.651069e-11 2.033867e-11 3.930564e-11 8.183171e-11 2.006656e-10
#>    214 8.833300e-12 6.042007e-12 1.223528e-11 2.705297e-11 6.874147e-11
#>    217 3.287893e-12 2.560220e-12 4.715352e-12 9.752079e-12 2.395295e-11
#>    220 1.073597e-12 6.143932e-13 1.215413e-12 2.893537e-12 7.923539e-12
#>    223 3.675145e-13 1.689798e-13 2.564025e-13 7.901877e-13 2.447915e-12
#>    226 1.291830e-13 6.225053e-14 1.032132e-13 3.156654e-13 8.758287e-13
#>    229 4.198442e-14 1.619309e-14 1.518992e-14 4.433253e-14 2.019031e-13
#>    232 1.718396e-14 7.656206e-15 1.027038e-14 3.440376e-14 1.449714e-13
#>    235 5.829851e-15 1.989381e-15 1.423689e-15 3.874809e-15 2.056571e-14
#>    238 1.877250e-15 6.511607e-16 2.960229e-16 3.113074e-16 2.257188e-15
#>       year
#> length           11           12           13           14           15
#>    1   2.488776e-56 1.039107e-56 1.826066e-56 1.663375e-56 2.889381e-56
#>    4   3.010153e-16 1.256791e-16 2.208610e-16 2.011838e-16 3.494682e-16
#>    7   2.202488e-02 9.195770e-03 1.616010e-02 1.472035e-02 2.557011e-02
#>    10  9.194329e+03 3.838792e+03 6.746067e+03 6.145036e+03 1.067429e+04
#>    13  1.100411e+06 4.594409e+05 8.073942e+05 7.354607e+05 1.277539e+06
#>    16  2.525859e+06 1.054801e+06 1.853157e+06 1.688151e+06 2.932314e+06
#>    19  4.855559e+05 2.294372e+05 3.414284e+05 3.234824e+05 5.485859e+05
#>    22  4.216194e+05 4.753154e+05 1.432516e+05 2.701475e+05 3.200402e+05
#>    25  8.583690e+05 9.882344e+05 2.864775e+05 5.492890e+05 6.431212e+05
#>    28  5.423645e+05 6.568134e+05 2.341200e+05 3.469750e+05 4.243217e+05
#>    31  2.286493e+05 3.863471e+05 2.801180e+05 1.469317e+05 2.396176e+05
#>    34  1.821051e+05 3.905871e+05 3.744580e+05 1.255496e+05 2.359387e+05
#>    37  1.487593e+05 2.996049e+05 3.248648e+05 1.310061e+05 1.791142e+05
#>    40  1.167971e+05 1.778219e+05 2.431472e+05 1.438900e+05 1.067274e+05
#>    43  1.146083e+05 1.149584e+05 1.900115e+05 1.506443e+05 7.762673e+04
#>    46  1.271693e+05 8.695868e+04 1.379918e+05 1.360179e+05 7.536896e+04
#>    49  1.387075e+05 7.387103e+04 9.154130e+04 1.102724e+05 7.762053e+04
#>    52  1.393985e+05 7.027875e+04 6.229998e+04 8.280496e+04 7.422490e+04
#>    55  1.270197e+05 6.979614e+04 4.785239e+04 5.791692e+04 6.385448e+04
#>    58  1.058069e+05 6.669370e+04 4.147039e+04 3.910910e+04 4.975006e+04
#>    61  8.215778e+04 5.889183e+04 3.776914e+04 2.713358e+04 3.572569e+04
#>    64  6.171535e+04 4.775134e+04 3.356188e+04 2.006816e+04 2.431162e+04
#>    67  4.765389e+04 3.621117e+04 2.803848e+04 1.557723e+04 1.630063e+04
#>    70  4.027363e+04 2.685619e+04 2.206516e+04 1.222402e+04 1.117911e+04
#>    73  3.778852e+04 2.086855e+04 1.693302e+04 9.518762e+03 7.990875e+03
#>    76  3.754298e+04 1.799088e+04 1.343768e+04 7.474197e+03 5.963580e+03
#>    79  3.713471e+04 1.709133e+04 1.161173e+04 6.175306e+03 4.665854e+03
#>    82  3.514995e+04 1.685395e+04 1.092484e+04 5.552607e+03 3.887166e+03
#>    85  3.132871e+04 1.629191e+04 1.065747e+04 5.364530e+03 3.481902e+03
#>    88  2.623382e+04 1.496344e+04 1.022720e+04 5.303027e+03 3.293750e+03
#>    91  2.072775e+04 1.291423e+04 9.352969e+03 5.118859e+03 3.163064e+03
#>    94  1.555674e+04 1.046666e+04 8.046611e+03 4.694648e+03 2.968822e+03
#>    97  1.116684e+04 7.997085e+03 6.497308e+03 4.045317e+03 2.658283e+03
#>    100 7.710898e+03 5.791593e+03 4.936747e+03 3.268189e+03 2.244930e+03
#>    103 5.143727e+03 3.997909e+03 3.545865e+03 2.480961e+03 1.782101e+03
#>    106 3.323402e+03 2.643882e+03 2.419925e+03 1.776726e+03 1.331000e+03
#>    109 2.082474e+03 1.682233e+03 1.577051e+03 1.205833e+03 9.379810e+02
#>    112 1.266055e+03 1.033355e+03 9.858730e+02 7.791148e+02 6.260189e+02
#>    115 7.468069e+02 6.144224e+02 5.935221e+02 4.813183e+02 3.972461e+02
#>    118 4.273946e+02 3.543128e+02 3.452477e+02 2.854227e+02 2.405924e+02
#>    121 2.373366e+02 1.984470e+02 1.945733e+02 1.630423e+02 1.395847e+02
#>    124 1.279307e+02 1.080777e+02 1.064758e+02 8.999549e+01 7.783948e+01
#>    127 6.697816e+01 5.729019e+01 5.667723e+01 4.813226e+01 4.185257e+01
#>    130 3.408897e+01 2.958431e+01 2.938963e+01 2.500242e+01 2.175917e+01
#>    133 1.688374e+01 1.489565e+01 1.486440e+01 1.264042e+01 1.096702e+01
#>    136 8.147102e+00 7.319217e+00 7.340808e+00 6.231109e+00 5.371380e+00
#>    139 3.834926e+00 3.513038e+00 3.543406e+00 2.999790e+00 2.561928e+00
#>    142 1.763133e+00 1.648679e+00 1.673378e+00 1.412404e+00 1.192283e+00
#>    145 7.927680e-01 7.572842e-01 7.738709e-01 6.512219e-01 5.423685e-01
#>    148 3.490529e-01 3.407945e-01 3.507879e-01 2.943824e-01 2.415551e-01
#>    151 1.506809e-01 1.504113e-01 1.559984e-01 1.306107e-01 1.054842e-01
#>    154 6.385085e-02 6.517236e-02 6.812259e-02 5.693376e-02 4.522683e-02
#>    157 2.658981e-02 2.775076e-02 2.923811e-02 2.440615e-02 1.906266e-02
#>    160 1.089380e-02 1.162353e-02 1.234472e-02 1.029816e-02 7.907642e-03
#>    163 4.395529e-03 4.793621e-03 5.131760e-03 4.280801e-03 3.231813e-03
#>    166 1.748394e-03 1.948265e-03 2.102204e-03 1.754497e-03 1.302587e-03
#>    169 6.862293e-04 7.810366e-04 8.493105e-04 7.095523e-04 5.182310e-04
#>    172 2.660012e-04 3.090996e-04 3.386796e-04 2.833664e-04 2.036874e-04
#>    175 1.019163e-04 1.208583e-04 1.334067e-04 1.118300e-04 7.915389e-05
#>    178 3.862685e-05 4.672369e-05 5.194628e-05 4.364305e-05 3.043466e-05
#>    181 1.449244e-05 1.787289e-05 2.000910e-05 1.685415e-05 1.158653e-05
#>    184 5.386426e-06 6.769364e-06 7.629415e-06 6.444793e-06 4.370278e-06
#>    187 1.984517e-06 2.540276e-06 2.881557e-06 2.441659e-06 1.634185e-06
#>    190 7.252180e-07 9.450678e-07 1.078707e-06 9.170362e-07 6.061491e-07
#>    193 2.630172e-07 3.487696e-07 4.004704e-07 3.416270e-07 2.231410e-07
#>    196 9.472955e-08 1.277562e-07 1.475314e-07 1.263028e-07 8.156799e-08
#>    199 3.389272e-08 4.646812e-08 5.395668e-08 4.636439e-08 2.962281e-08
#>    202 1.205471e-08 1.679404e-08 1.960265e-08 1.690763e-08 1.069203e-08
#>    205 4.261140e-09 6.030332e-09 7.074364e-09 6.125708e-09 3.836901e-09
#>    208 1.499691e-09 2.154474e-09 2.539571e-09 2.207554e-09 1.369980e-09
#>    211 5.263217e-10 7.669171e-10 9.081679e-10 7.926310e-10 4.872890e-10
#>    214 1.834648e-10 2.709799e-10 3.221249e-10 2.822878e-10 1.723958e-10
#>    217 6.397572e-11 9.559095e-11 1.142952e-10 1.006169e-10 6.112065e-11
#>    220 2.198685e-11 3.349551e-11 4.010028e-11 3.536535e-11 2.121973e-11
#>    223 7.377508e-12 1.158638e-11 1.402092e-11 1.234741e-11 7.268621e-12
#>    226 2.619449e-12 4.016448e-12 4.873231e-12 4.335902e-12 2.574213e-12
#>    229 6.730855e-13 1.236553e-12 1.529943e-12 1.402923e-12 7.744713e-13
#>    232 3.954142e-13 6.172703e-13 7.019015e-13 5.860994e-13 3.546127e-13
#>    235 9.707161e-14 1.684832e-13 2.304239e-13 1.920663e-13 1.040461e-13
#>    238 1.193258e-14 4.033091e-14 5.245619e-14 6.181305e-14 3.025234e-14
#>       year
#> length           16           17           18           19           20
#>    1   1.774958e-56 2.274014e-56 3.703298e-56 5.096634e-56 8.533406e-56
#>    4   2.146796e-16 2.750400e-16 4.479106e-16 6.164335e-16 1.032108e-15
#>    7   1.570782e-02 2.012430e-02 3.277302e-02 4.510360e-02 7.551795e-02
#>    10  6.557258e+03 8.400929e+03 1.368116e+04 1.882859e+04 3.152511e+04
#>    13  7.847970e+05 1.005454e+06 1.637412e+06 2.253475e+06 3.773043e+06
#>    16  1.801535e+06 2.307899e+06 3.758377e+06 5.172430e+06 8.660213e+06
#>    19  3.626909e+05 4.439380e+05 7.098153e+05 9.760876e+05 1.621533e+06
#>    22  4.844285e+05 3.884928e+05 4.852241e+05 6.589221e+05 9.603628e+05
#>    25  9.974830e+05 7.963082e+05 9.816540e+05 1.331800e+06 1.929174e+06
#>    28  6.345349e+05 5.622638e+05 6.453977e+05 8.689168e+05 1.249578e+06
#>    31  2.820137e+05 4.377877e+05 3.590580e+05 4.599651e+05 6.311813e+05
#>    34  2.366884e+05 5.071751e+05 3.672985e+05 4.440384e+05 5.864294e+05
#>    37  1.935267e+05 4.029217e+05 3.394827e+05 3.706614e+05 4.762832e+05
#>    40  1.417626e+05 2.536461e+05 3.000042e+05 2.800517e+05 3.371478e+05
#>    43  1.091649e+05 1.738184e+05 2.650869e+05 2.405332e+05 2.619949e+05
#>    46  8.011361e+04 1.283629e+05 2.043005e+05 2.144012e+05 2.090483e+05
#>    49  5.792015e+04 9.376429e+04 1.412395e+05 1.825011e+05 1.658371e+05
#>    52  4.813902e+04 6.817478e+04 9.739588e+04 1.437730e+05 1.349153e+05
#>    55  4.550051e+04 5.099236e+04 6.989422e+04 1.040391e+05 1.103787e+05
#>    58  4.288640e+04 4.098854e+04 5.150929e+04 7.147663e+04 8.747275e+04
#>    61  3.734262e+04 3.545546e+04 3.881468e+04 4.895942e+04 6.611700e+04
#>    64  2.955775e+04 3.109250e+04 3.024390e+04 3.446031e+04 4.805107e+04
#>    67  2.149224e+04 2.602304e+04 2.429923e+04 2.512681e+04 3.432315e+04
#>    70  1.469405e+04 2.022652e+04 1.957756e+04 1.895258e+04 2.469813e+04
#>    73  9.752047e+03 1.458845e+04 1.529663e+04 1.463351e+04 1.820239e+04
#>    76  6.513292e+03 9.910050e+03 1.136001e+04 1.132204e+04 1.375473e+04
#>    79  4.528383e+03 6.503709e+03 7.994590e+03 8.575136e+03 1.050819e+04
#>    82  3.365602e+03 4.265342e+03 5.388179e+03 6.263057e+03 7.950832e+03
#>    85  2.713458e+03 2.903374e+03 3.550235e+03 4.399152e+03 5.856456e+03
#>    88  2.360486e+03 2.115160e+03 2.349811e+03 2.996388e+03 4.163054e+03
#>    91  2.154745e+03 1.662878e+03 1.605733e+03 2.011664e+03 2.856383e+03
#>    94  1.986826e+03 1.384119e+03 1.152611e+03 1.357700e+03 1.905440e+03
#>    97  1.791072e+03 1.179278e+03 8.678763e+02 9.363992e+02 1.250346e+03
#>    100 1.546056e+03 9.962032e+02 6.731291e+02 6.640569e+02 8.174311e+02
#>    103 1.264674e+03 8.161002e+02 5.247905e+02 4.811639e+02 5.376284e+02
#>    106 9.767759e+02 6.402357e+02 4.026043e+02 3.510710e+02 3.569524e+02
#>    109 7.124450e+02 4.782057e+02 2.995361e+02 2.538131e+02 2.383947e+02
#>    112 4.917806e+02 3.395002e+02 2.143195e+02 1.794543e+02 1.588379e+02
#>    115 3.222324e+02 2.292446e+02 1.468934e+02 1.229980e+02 1.045727e+02
#>    118 2.010964e+02 1.475065e+02 9.633363e+01 8.131672e+01 6.746133e+01
#>    121 1.199369e+02 9.066821e+01 6.048112e+01 5.174018e+01 4.238681e+01
#>    124 6.858748e+01 5.338449e+01 3.640548e+01 3.167024e+01 2.584158e+01
#>    127 3.772517e+01 3.019218e+01 2.105096e+01 1.866121e+01 1.525819e+01
#>    130 2.001582e+01 1.644630e+01 1.171891e+01 1.059896e+01 8.720593e+00
#>    133 1.027164e+01 8.650877e+00 6.294998e+00 5.812258e+00 4.826111e+00
#>    136 5.111018e+00 4.404838e+00 3.270179e+00 3.083058e+00 2.588508e+00
#>    139 2.471540e+00 2.176058e+00 1.646486e+00 1.584877e+00 1.347223e+00
#>    142 1.163942e+00 1.045218e+00 8.051113e-01 7.910517e-01 6.813704e-01
#>    145 5.348549e-01 4.891022e-01 3.831038e-01 3.840654e-01 3.353768e-01
#>    148 2.402429e-01 2.233813e-01 1.777219e-01 1.817024e-01 1.608978e-01
#>    151 1.056532e-01 9.974446e-02 8.051559e-02 8.390697e-02 7.535068e-02
#>    154 4.556004e-02 4.361266e-02 3.568088e-02 3.787958e-02 3.449680e-02
#>    157 1.929102e-02 1.870058e-02 1.549042e-02 1.674286e-02 1.546088e-02
#>    160 8.030640e-03 7.874219e-03 6.597418e-03 7.255713e-03 6.792584e-03
#>    163 3.290649e-03 3.260008e-03 2.760188e-03 3.086936e-03 2.929088e-03
#>    166 1.328690e-03 1.328613e-03 1.135767e-03 1.290943e-03 1.241218e-03
#>    169 5.291954e-04 5.336072e-04 4.601734e-04 5.312751e-04 5.174564e-04
#>    172 2.080978e-04 2.114119e-04 1.837803e-04 2.153941e-04 2.124579e-04
#>    175 8.086441e-05 8.270521e-05 7.241923e-05 8.611708e-05 8.599655e-05
#>    178 3.107705e-05 3.197536e-05 2.818318e-05 3.398575e-05 3.434851e-05
#>    181 1.182073e-05 1.222743e-05 1.084138e-05 1.325078e-05 1.354997e-05
#>    184 4.453274e-06 4.628344e-06 4.125636e-06 5.108386e-06 5.283646e-06
#>    187 1.662774e-06 1.735400e-06 1.554314e-06 1.948774e-06 2.038140e-06
#>    190 6.157094e-07 6.449844e-07 5.801464e-07 7.361933e-07 7.783197e-07
#>    193 2.262348e-07 2.377645e-07 2.146723e-07 2.755948e-07 2.944456e-07
#>    196 8.253205e-08 8.698667e-08 7.880047e-08 1.023011e-07 1.104230e-07
#>    199 2.990830e-08 3.160107e-08 2.871077e-08 3.767716e-08 4.107542e-08
#>    202 1.077115e-08 1.140582e-08 1.038894e-08 1.377570e-08 1.516438e-08
#>    205 3.856725e-09 4.091709e-09 3.735152e-09 5.002674e-09 5.559187e-09
#>    208 1.373755e-09 1.459893e-09 1.335051e-09 1.805421e-09 2.024805e-09
#>    211 4.871040e-10 5.181377e-10 4.745847e-10 6.478908e-10 7.331400e-10
#>    214 1.722717e-10 1.832501e-10 1.679253e-10 2.312716e-10 2.639383e-10
#>    217 6.039994e-11 6.426012e-11 5.903147e-11 8.204880e-11 9.451889e-11
#>    220 2.117358e-11 2.262313e-11 2.082007e-11 2.909121e-11 3.371144e-11
#>    223 7.195964e-12 7.850458e-12 7.271711e-12 1.029020e-11 1.199934e-11
#>    226 2.537059e-12 2.763372e-12 2.476433e-12 3.557335e-12 4.214020e-12
#>    229 7.506711e-13 8.117403e-13 7.748076e-13 1.151909e-12 1.447736e-12
#>    232 3.644237e-13 4.060367e-13 4.147290e-13 5.052370e-13 5.425612e-13
#>    235 1.013726e-13 1.070761e-13 1.069143e-13 1.826960e-13 1.902766e-13
#>    238 2.621460e-14 2.736448e-14 2.089286e-14 4.018283e-14 7.494593e-14
#> 
#> $sim_length
#> function (age = NULL, length_age_key = FALSE) 
#> {
#>     pred_length <- Linf - (Linf - L0) * exp(-K * age)
#>     if (length_age_key) {
#>         breaks <- seq(0, ceiling(max(pred_length)) * 10, length_group)
#>         lak <- matrix(NA, ncol = length(pred_length), nrow = length(breaks) - 
#>             1, dimnames = list(length = group_lengths(breaks, 
#>             length_group)[-length(breaks)], age = age))
#>         for (i in seq_along(breaks)[-1]) {
#>             for (j in seq_along(pred_length)) {
#>                 lak[i - 1, j] <- stats::pnorm(log(breaks[i]), 
#>                   log(pred_length[j]), sd = log_sd) - stats::pnorm(log(breaks[i - 
#>                   1]), log(pred_length[j]), sd = log_sd)
#>             }
#>         }
#>         lak <- lak[rowSums(lak) > 0, ]
#>         if (plot) 
#>             graphics::image(x = as.numeric(colnames(lak)), y = as.numeric(rownames(lak)), 
#>                 z = t(lak), xlab = "Age", ylab = "Length", main = "P(Length | Age)", 
#>                 col = viridis::viridis(100))
#>         return(lak)
#>     }
#>     else {
#>         log_length <- stats::rnorm(length(age), log(pred_length), 
#>             sd = log_sd)
#>         length <- round(exp(log_length), digits)
#>         if (plot) 
#>             plot(age, length)
#>         return(length)
#>     }
#> }
#> <bytecode: 0x55d5ac817108>
#> <environment: 0x55d5b2a2c5f8>
#> 

sim <- sim_abundance()
plot_trend(sim)
plot_surface(sim, mat = "N")
plot_surface(sim, mat = "Z")
plot_surface(sim, mat = "N_at_length", xlab = "Length", zlab = "N")