FMC (num) circuli number identifying First marine circulus
FMC.spacing (num) FMC intercirculi spacing
smolt.incr (num) smolt increment (focus to last circuli before FMC)
marine.growth (num) marine growth = FMC to end
total.growth (num) entire scale from 1st circuli to the end
smolt.circ (num) number of smolt circuli
marine.circ (num) number of marine circuli
total.circ (num) number of total circuli
FS.incr (num) first summer at sea growth (FMC to FSM)
FW.incr (num) first winter at sea growth (first circuli after FSM to M1)
PS.incr (num) post-smolt growth (FMC to M1)
FSM.spacing (num) first summer maximum intercirculi spacing
M1.spacing (num) M1 intercirculi spacing
FS.circ (num) First summer, number of circuli
FW.circ (num) First winter, number of circuli
PS.circ (num) Post-smolt, number of circuli
SS.incr (num) Second summer at sea growth (first circuli after M1 to SSM (second summer max))
SW.incr (num) Second winter at sea growth (first circuli after SSM to M2)
Y2.incr (num) Year 2 growth (first circuli after M1 to M2)
SSM.spacing (num) Second summer maximum intercirculi spacing
M2.spacing (num) M2 intercirculi spacing
SS.circ (num) Second summer, number of circuli
SW.circ (num) Second winter, number of circuli
Y2.circ (num) Year-two number of circuli
#Combine "ME" and "Maine" levels
Carlin_full_growth$State[Carlin_full_growth$State == "ME"] = "Maine"
Check distribution of dependent variables (dv).
Create function to loop through all dv for set of models. Expvars include cohort year, sea age, state of recapture (location), season of recapture, length at recapture, and weight at recapture, plus relevant interactions (length and weight never included in same model due to covariance)
Run makemodels function to create all possible models for the four DV abd return the AIC model selection tables.
makemodels(dv)
Write top models for each of the DVs and store in list. Create function to make summary and anova table for each of the top models.
Run summarizetopmodels to produce summary tables.
summarizetopmodels(topmods)
Example candidate models and AIC model selection table for smolt increment.
smolt.aictab
##
## Model selection based on AICc:
##
## K AICc Delta_AICc AICcWt Cum.Wt LL
## yearxagestatexmolen 22 451.85 0.00 0.50 0.50 -203.52
## yearxagestatemolen 15 453.12 1.26 0.26 0.76 -211.37
## yearxagestatexmowt 22 455.04 3.19 0.10 0.86 -205.12
## yearagestatelen 12 455.64 3.78 0.07 0.94 -215.70
## yearagestatemolen 14 456.90 5.05 0.04 0.98 -214.28
## yearxagestatemowt 15 459.36 7.51 0.01 0.99 -214.49
## yearagestatewt 12 459.57 7.72 0.01 1.00 -217.67
## yearagestatemowt 14 462.96 11.11 0.00 1.00 -217.31
## yearagelen 5 471.28 19.42 0.00 1.00 -230.62
## yearagemolen 7 473.20 21.35 0.00 1.00 -229.56
## yearagestate 12 488.53 36.68 0.00 1.00 -232.17
## yearagestatemo 13 493.54 41.68 0.00 1.00 -233.65
## yearage 4 510.61 58.76 0.00 1.00 -251.29
Top model: smolt.incr ~ SeaAge + RecaptureYear + State + capLen
formattable(smolt.modsum)
| term | estimate | std.error | statistic | p.value |
|---|---|---|---|---|
| (Intercept) | 16.25 | 3.04 | 5.35 | 0.0000 |
| SeaAge | -0.15 | 0.03 | -4.74 | 0.0000 |
| RecaptureYear | -0.01 | 0.00 | -5.06 | 0.0000 |
| StateLabrador | 0.39 | 0.15 | 2.63 | 0.0087 |
| StateMaine | 0.41 | 0.22 | 1.86 | 0.0638 |
| StateNew Brunswick | 0.34 | 0.16 | 2.09 | 0.0364 |
| StateNewfoundland | 0.32 | 0.14 | 2.20 | 0.0282 |
| StateNova Scotia | 0.18 | 0.15 | 1.23 | 0.2192 |
| StateQuebec | 0.31 | 0.25 | 1.23 | 0.2180 |
| StateWest Greenland | 0.25 | 0.14 | 1.77 | 0.0769 |
| capLen | 0.00 | 0.00 | 1.15 | 0.2498 |
Top model: FS.incr ~ SeaAge + RecaptureYear + State + RecaptureSeason + capWeight
formattable(FS.modsum)
| term | estimate | std.error | statistic | p.value |
|---|---|---|---|---|
| (Intercept) | 2.36 | 2.71 | 0.87 | 0.3833 |
| SeaAge | -0.01 | 0.03 | -0.37 | 0.7108 |
| RecaptureYear | 0.00 | 0.00 | -0.68 | 0.4966 |
| StateLabrador | 0.14 | 0.13 | 1.09 | 0.2770 |
| StateMaine | -0.18 | 0.19 | -0.96 | 0.3391 |
| StateNew Brunswick | 0.15 | 0.14 | 1.05 | 0.2929 |
| StateNewfoundland | 0.15 | 0.12 | 1.18 | 0.2368 |
| StateNova Scotia | 0.11 | 0.13 | 0.80 | 0.4217 |
| StateQuebec | 0.68 | 0.28 | 2.47 | 0.0137 |
| StateWest Greenland | 0.11 | 0.12 | 0.86 | 0.3910 |
| RecaptureSeasonSummer | 0.00 | 0.02 | -0.08 | 0.9345 |
| RecaptureSeasonWinter | -0.10 | 0.05 | -2.15 | 0.0317 |
| capWeight | 0.01 | 0.01 | 2.12 | 0.0343 |
Top model: FW.incr ~ SeaAge + RecaptureYear + State + RecaptureSeason + capLen
formattable(FW.modsum)
| term | estimate | std.error | statistic | p.value |
|---|---|---|---|---|
| (Intercept) | 7.96 | 3.26 | 2.44 | 0.0147 |
| SeaAge | -0.07 | 0.04 | -1.84 | 0.0658 |
| RecaptureYear | 0.00 | 0.00 | -2.12 | 0.0346 |
| StateLabrador | -0.55 | 0.15 | -3.62 | 0.0003 |
| StateMaine | -0.37 | 0.23 | -1.64 | 0.1021 |
| StateNew Brunswick | -0.57 | 0.17 | -3.44 | 0.0006 |
| StateNewfoundland | -0.58 | 0.15 | -3.92 | 0.0001 |
| StateNova Scotia | -0.49 | 0.16 | -3.09 | 0.0020 |
| StateQuebec | -0.66 | 0.33 | -1.99 | 0.0464 |
| StateWest Greenland | -0.58 | 0.15 | -3.89 | 0.0001 |
| RecaptureSeasonSummer | -0.01 | 0.02 | -0.29 | 0.7746 |
| RecaptureSeasonWinter | 0.08 | 0.06 | 1.37 | 0.1697 |
| capLen | 0.01 | 0.00 | 4.15 | 0.0000 |
Top model: PS.incr ~ SeaAge + RecaptureYear + State + capLen
formattable(PS.modsum)
| term | estimate | std.error | statistic | p.value |
|---|---|---|---|---|
| (Intercept) | 10.19 | 3.29 | 3.10 | 0.0020 |
| SeaAge | -0.06 | 0.04 | -1.62 | 0.1063 |
| RecaptureYear | 0.00 | 0.00 | -2.65 | 0.0081 |
| StateLabrador | -0.42 | 0.16 | -2.69 | 0.0072 |
| StateMaine | -0.56 | 0.23 | -2.39 | 0.0170 |
| StateNew Brunswick | -0.44 | 0.17 | -2.53 | 0.0115 |
| StateNewfoundland | -0.44 | 0.15 | -2.87 | 0.0042 |
| StateNova Scotia | -0.39 | 0.16 | -2.36 | 0.0183 |
| StateQuebec | 0.02 | 0.34 | 0.04 | 0.9645 |
| StateWest Greenland | -0.48 | 0.15 | -3.09 | 0.0020 |
| capLen | 0.01 | 0.00 | 5.41 | 0.0000 |