F.est.efficiency | R Documentation |
Estimate trap efficiency for every sample period, per trap.
F.est.efficiency( release.df, batchDate, df.spline = 4, plot = TRUE, plot.file = NA )
release.df |
A data frame produced by |
batchDate |
A POSIX-formatted vector of dates. |
df.spline |
The default degrees of freedom to use in the estimation of splines. Default is 4 (1 internal knot). |
plot |
A logical indicating if efficiencies are to be plotted over time, per trap. |
plot.file |
The name to which a graph of efficiency is to be output, if
|
Generally, fish released as part of an efficiency trial arrive in
traps over the course of several days. F.est.efficiency
calculates
the mean recapture time of all re-captured fish. When a release trial
resulted in no recaptures, the mean recapture time is half way between the
first and last visit of the trial (i.e., after release).
Function F.assign.batch.date
assigns mean recapture time, which is
mesured to the nearest minute, to a batchDate
. Batch date a simple
calendar date.
Fishing instances during which traps utilized half-cones are recorded in
variable HalfCone
. During these instances, the number of captured
fish, variable Recaps
, is multiplied by the value of
halfConeMulti
. The value of halfConeMulti
is set in
GlobalVars
and defaults to 2. The expansion by halfConeMulti
happens on the raw catch, and not the mean recapture. In this way, the
number recorded in variable Recaps
may not be twice the number
recorded in variable oldRecaps
.
Note that the run season sample period is a vector of length 2 of dates,
housing the beginning and ending of the run. These are stored as an
attribute of the release.df
data frame.
A data frame containing fishing intervals and associated capture
efficiency, along with variable gam.estimated
. Variable
gam.estimated
is "Yes"
if efficiency for that interval was
estimated by the GAM model (method=3
), rather than being empirical
(method=1
).
WEST Inc.
F.get.release.data
, F.assign.batch.date
## Not run: # ---- Estimate the efficiency. theEff <- F.est.efficiency(release.df,batchDate,df.spline=4,plot=TRUE,plots.file=NA) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.