library(DiagrammeR) grViz(" digraph boxes_and_circles { # a 'graph' statement graph [overlap = false, fontsize = 32, fillcolor = red] # several 'node' statements node [shape = box, fontname = Helvetica , fontsize = 32 fontcolor = 'darkgreen', penwidth = 2] 'CAMS Appt'; 'CAMS trip attr'; 'NEFOP'; 'ASM'; node [shape = oval, fontname = Helvetica , fillcolor = 'Cyan'] 'CAMS STATAREA STOCK'; 'CAMS GEARCODE STRATA'; 'CAMS DISCARD MORTALITY STOCK'; node [shape = circle, fixedsize = false, width = 2, fontsize = 32] // sets as circles 'CAMS OBS CATCH'; 'OBS by YEAR' ; 'CAMS CATCH TA MOCK'; 'OBS CAMS PRORATE'; node [shape = diamond, fixedsize = false, width = 2, fontsize = 40, fontweight = 'bold'] // 'R'; # several 'edge' statements 'NEFOP'->'OBS by YEAR' 'ASM'->'OBS by YEAR' 'OBS by YEAR'->'OBS CAMS PRORATE' 'CAMS Appt' -> 'CAMS CATCH TA MOCK' 'CAMS trip attr' ->'CAMS CATCH TA MOCK' 'CAMS CATCH TA MOCK'-> 'CAMS OBS CATCH' 'OBS CAMS PRORATE'-> 'CAMS OBS CATCH' 'CAMS OBS CATCH'->'R' 'CAMS STATAREA STOCK'-> 'R' 'CAMS GEARCODE STRATA'->'R' 'CAMS DISCARD MORTALITY STOCK'->'R' } ")
Incomplete observed trips have missing 'hauls' prorated by observed information from that trip
Prorate observed discards on unobserved hauls within a subtrip. This is done by applying a ratio of kept all on the entire trip to kept all on the unobserved hauls only
$$d_{total} = d_{observedhauls}*(1+KALL_{unobserved hauls}/KALL_{subtrip})$$
discaRd
R package built for 2016 Discard Estimation Peer Review
\includegraphics[width = .25\textwidth, height = .25\textheight]{discaRd.png}
New functions for CAMS:
make_assumed_rate
Calculates 'fallback rate' using a subset of STRATA
variablesmake_bdat_focal
Constructs data frame of observed trip data for species of interestrun_discard
Runs these functions in conjucntion with discaRd
run_discard
transition rates
, two time periods are definedCAMS_GEAR_GROUP
DONESTAT_AREAS
DONECAMS_DISCARD_MORTALITY_STOCK
in processSECTOR
for multispecies (see above) DONE*Will likely be based on modules that run common sets of species (e.g. common CAMS_GEAR_GROUP
and stock definition)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.