Description Usage Arguments Details Value See Also Examples
Functions to set demographic and cost parameter, to perform forecasting, and to inspect the results.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | caribou_settings(pen.type = c("mat.pen", "pred.excl",
"moose.red", "wolf.red", "cons.breed"), herd = NULL, ...)
caribou_forecast(settings, tmax = 20, pop.start = 100,
fpen.prop, fpen.inds)
caribou_breakeven(forecast, lambda=1,
type=c("prop", "inds"), max=10^4, tol=0.01)
## S3 method for class 'caribou_settings'
print(x, ...)
## S3 method for class 'caribou_forecast'
print(x, ...)
## S3 method for class 'caribou_forecast'
plot(x, plot = TRUE, ...)
## S3 method for class 'caribou_forecast'
lines(x, pen = TRUE, plot = TRUE, ...)
## S3 method for class 'caribou_forecast'
summary(object, ...)
## S3 method for class 'summary.caribou_forecast'
print(x, ...)
|
pen.type |
character: maternity penning, predator exclusion, moose reduction, wolf reduction, or conservation breeding. It can also be a settings object. |
herd |
|
settings |
a settings object returned by |
tmax |
positive integer, number of years to forecast after initial year 0. |
pop.start |
positive integer, initial population size in year 0. |
fpen.prop, fpen.inds |
|
forecast |
a forecast object returned by |
lambda |
numeric, annual intrinsic growth rate, must be >0. |
type |
what to provide as output: proportion ( |
max |
numeric (>0), maximum value for breakeven optimization when
|
tol |
numeric, tolerance limit, i.e. the maximum acceptable deviation
from |
x, object |
an object to print, summarize, plot, etc. |
plot |
logical, whether a plot is to be produced. |
pen |
logical, whether to display the pen or no-pen (baseline) results. |
... |
additional arguments to functions. For |
The following cost parameters can be set by caribou_settings
:
pen.cap
: how many individual Caribou can live in a
single maternity pen.
pen.cost.setup
: initial cost in thousands to set up pen.
pen.cost.proj
: annual costs in thousands for project manager.
pen.cost.maint
: annual cost in thousands for patrolling
and repairing fence.
pen.cost.capt
: annual cost in thousands to capture cows, monitor,
survey, calf collar.
pen.cost.pred
: annual cost in thousands for removing predators.
The following demographic parameters can be set by caribou_settings
:
c.surv.wild
: calf survival rate in the wild, annual.
c.surv.capt
: calf survival rate when captive, annual.
f.surv.wild
: adult female survival when wild, annual.
f.surv.capt
: adult female survival when captive, annual.
f.preg.wild
: pregnancy rate when wild.
f.preg.capt
: pregnancy rate when captive.
caribou_settings
returns a settings object.
caribou_forecast
returns a forecast object.
caribou_breakeven
returns a numeric value representing the
'breakeven' proportion of females penned where lambda
is within tol
erance. It returns NA
when
proportion satisfying the lambda
criterion cannot be found,
alongside a warning.
The print
method returns the input object x
invisibly.
The summary
method returns population and cost summaries
for the forecast object.
The plot
and lines
methods return the plotted data invisibly
(years, pen and no-pen population size for plot
;
years, pen or no-pen population size for lines
).
Both methods produce plots as a side effect.
caribou_matrix
, caribou_breeding
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ## Predefined settings
(s1 <- caribou_settings("mat.pen"))
(s2 <- caribou_settings("pred.excl"))
## Modifying predefined settings
caribou_settings("mat.pen", c.surv.capt=0.65, pen.cap=30)
caribou_settings(s1, c.surv.capt=0.65, pen.cap=30)
## Forecast based on settings for 75% females penned
(f1 <- caribou_forecast(s1, fpen.prop = 0.75))
(f2 <- caribou_forecast(s2, fpen.prop = 0.75))
## Get population and cost summaries
summary(f1)
summary(f2)
## Plot the results
plot(f2)
lines(f1, col = 2)
legend("topleft", col = c(1,1,2), lty = c(2,1,1),
legend = c("No pen", "Mat pen", "Pred excl"))
## Find 'breakeven' proportion of females penned where lambda=1
(b1 <- caribou_breakeven(f1, lambda = 1))
(b2 <- caribou_breakeven(f2, lambda = 1))
f3 <- caribou_forecast(s1, fpen.prop = b1)
f4 <- caribou_forecast(s2, fpen.prop = b2)
## See that lines are truly flat
op <- par(mfrow = c(1, 2))
plot(f3, main = "Mat pen")
plot(f4, main = "Pred excl")
par(op)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.