-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
report autocorrelation for recruitment devs and selectivity deviations #65
Comments
comment from @k-doering-NOAA on 2020-06-25: |
comment from neal.schindler on 2020-07-21: Thanks On Thu, Jun 25, 2020 at 2:31 PM vlab.redmine@noaa.gov wrote: |
comment from @RickMethot on 2020-07-23: the calculation of autocorrelation with a lag of 1 year would modify: to something like |
comment from @k-doering-NOAA on 2020-07-30:
@richard.methot, the question I'm unclear on is do you just want SS to report autocorrelation values with only a lag of 1? Or should something more extensive, like the "acf function in R":https://www.rdocumentation.org/packages/stats/versions/3.6.2/topics/acf be done (acf calculates the autocorrelation at any lag up to 1 less than the number of observations)? It sounds like in your description above, just reporting autocorrelation with lag 1 should be sufficient, but I wanted to check. In case it is helpful, "this tutorial":https://www.datacamp.com/community/tutorials/autocorrelation-r talks about the acf function in R, but also about why you would want to calculate autocorrelation. Also, where should the autocorrelation values for rec devs and (if they exist) for AR selectivity devs be reported? I assume somewhere in the Report file? |
comment from neal.schindler on 2020-09-15: |
comment from neal.schindler on 2020-09-17: |
comment from @RickMethot on 2020-09-17: And it produces this: |
comment from @RickMethot on 2020-09-18: |
comment from @k-doering-NOAA on 2020-09-18: > mean_vec <- "0.003487 0.0995438 -0.0289223 -0.0383366 -0.116556 -0.0349321 0.0832474 -0.0301072 -0.0389668 -0.0339012 0.05903 0.0453705 -0.097335 -0.0212511 -0.007485 0.0453392 0.049019 0.0362427 -0.0147502 0.0757082 0.0216629 0.0166401 0.0389378 -0.0997079 0.00124213 0.0784732 0.00288204 0.0128394 0.0748724 0.0112728 0.00949114 -0.029344 0.000299763 -0.00782208 0.00575388 -0.0154758 -0.000304169 0.0723033 -0.0820862 -0.0194007 0.000657266 -0.0282459 -0.0310298 -0.0301495 -0.0144236 -0.035682 -0.0453522 0.0600598 -0.000173357 -0.00263498" > > mean_vec <- as.numeric(strsplit(mean_vec, split = " ")[[1]]) > > mean_vec [1] 0.003487000 0.099543800 -0.028922300 -0.038336600 [5] -0.116556000 -0.034932100 0.083247400 -0.030107200 [9] -0.038966800 -0.033901200 0.059030000 0.045370500 [13] -0.097335000 -0.021251100 -0.007485000 0.045339200 [17] 0.049019000 0.036242700 -0.014750200 0.075708200 [21] 0.021662900 0.016640100 0.038937800 -0.099707900 [25] 0.001242130 0.078473200 0.002882040 0.012839400 [29] 0.074872400 0.011272800 0.009491140 -0.029344000 [33] 0.000299763 -0.007822080 0.005753880 -0.015475800 [37] -0.000304169 0.072303300 -0.082086200 -0.019400700 [41] 0.000657266 -0.028245900 -0.031029800 -0.030149500 [45] -0.014423600 -0.035682000 -0.045352200 0.060059800 [49] -0.000173357 -0.002634980 > > acf(mean_vec, lag.max = 1, plot = FALSE) #get est_rho by looking at lag 1 Autocorrelations of series ‘mean_vec’, by lag 0 1 1.000 0.022 > > car::durbinWatsonTest(model = mean_vec) # get D-W statistic [1] 1.956458 Let me know if there is anything else you wanted me to check! |
comment from @RickMethot on 2020-09-21: |
comment from @RickMethot on 2020-09-21: In parm_dev_details: |
I think this is resolved. Chantel, please take a look. @chantelwetzel-noaa |
I also think this is resolved, but maybe just needs documentation (opened nmfs-ost/ss3-doc#17 just in case) closing, but feel free to reopen if it seems it needs more than just documentation. |
Imported from redmine, Issue #73992
Opened by @iantaylor-NOAA on 2020-01-29
Status when imported: Resolved
As discussed at 29 January 2020 meeting, it would be useful to report autocorrelation for recruitment deviations and semi-parametric (2D-AR) selectivity deviations.
The text was updated successfully, but these errors were encountered: