pbs-assess / gfiphc

:fishing_pole_and_fish: An R package for data extraction and analysis of groundfish data from the IPHC Longline Survey in British Columbia
3 stars 0 forks source link

To include hook competition #2

Closed andrew-edwards closed 3 years ago

andrew-edwards commented 6 years ago

So basically this involves just scaling all the raw catch rates by a set-specific number. I'll do those and save the .rds results in a new folder gfsynopsis/data-cache/iphc-competition/. Everything should be the same structure, just the numbers will be different.

@seananderson - with two sets of results will be it 'easy' to show two time series, like you do for the other surveys? I think it will be useful to see if/how hook competition matters. I'll end up with results in the same format.

Steps for Andy:

andrew-edwards commented 6 years ago

@elisekeppel - for the GFbio data I can't just use

x <- get_iphc_hooks("bait on hook")

as that's not a real species. Wondering if we have to just create a new .sql from get-iphc-hook-level.sql. I'll first check those other queries you made recently.

andrew-edwards commented 6 years ago

@seananderson - for the hook competition results I was going to create all the figures in a compeition/ folders, but looking at make.R in gfsynopsis it will be simpler (hmm....) just to overlay the results on the existing ones in the IPHC plot. Can I easily see how to do that - could you just point me to the code where you did it for your surveys. Thanks. I haven't done the calculations yet but have the necessary data extracted, just have to scale the catch rates.

seananderson commented 6 years ago

Oh, it's super ugly because I'm just trying to get this thing done! https://github.com/pbs-assess/gfsynopsis/blob/master/R/make-pages.R#L348-L373

andrew-edwards commented 6 years ago

Won't get done in time for working paper. Will discuss it and show some data by year, but the calculations will get fiddly. A lot more hook-with-baits are zero, which I hadn't anticipated (and which would blow up the competition adjustment factor).

andrew-edwards commented 3 years ago

We included some data on this in Anderson et al. (2019). Is now a full-on project with Joe Watson. Much more than an Issue.