region.N (object, region = NULL, spacing = NULL, session = NULL,
group = NULL, se.N = TRUE, alpha = 0.05, loginterval = TRUE,
keep.region = FALSE, nlowerbound = TRUE)secr object output from secr.fitse.N = FALSE, the numeric value of expected population size,
otherwise, a dataframe with rows `E.N' and `R.N', and columns as
below.
keep.region = TRUE then the mask object for the region is
saved as the attribute `region' (see Examples).object$model$D == ~1 or object$CL == TRUE) then
$E(N)$ is simply the density multiplied by the area of region,
and the standard error is also a simple product. In the conditional
likelihood case, the density and standard error are obtained by first
calling derived.
If, on the other hand, the density has been modelled then the density
surface is predicted at each point in region and $E(N)$ is
obtained by discrete summation. Pixel size may have a minor effect on
the result - check by varying spacing. Sampling variance is
determined by the delta method, using a numerical approximation to the
gradient of $E(N)$ with respect to each beta parameter.
The region may be defined as a mask object (if omitted, the mask
component of object will be used). Alternatively, region
may be a SpatialPolygonsDataFrame object (see package make.mask for an example importing a
shapefile to a SpatialPolygonsDataFrame.
Group-specific N has yet to be implemented.secr.fit, derived, make.maskregion.N(secrdemo.0)
## a couple more routine examples
region.N(secrdemo.CL)
region.N(ovenbird.model.D)
## region defined as vector polygon
## retain and plot region mask
temp <- region.N(possum.model.1, possumarea, spacing = 40,
keep.region = TRUE)
temp
plot (attr(temp, 'region'))Run the code above in your browser using DataLab