esa.plot(secr)
esa.plot()所属R语言包:secr
Mask Buffer Diagnostic Plot
面膜缓冲区诊断图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plot effective sampling area (Borchers and Efford 2008) as a function of increasing buffer width.
图有效取样面积(2008年BORCHERS和Efford)为增加缓冲功能的宽度。
用法----------Usage----------
esa.plot (object, max.buffer = NULL, spacing = NULL, max.mask = NULL,
detectfn, detectpar, noccasions, binomN = NULL, thin = 0.1,
poly = NULL, session = 1, plt = TRUE, as.density = TRUE, n = 1,
add = FALSE, overlay = TRUE, ...)
参数----------Arguments----------
参数:object
traps object or secr object output from secr.fit
traps的对象或secr对象输出secr.fit的
参数:max.buffer
maximum width of buffer in metres
米的缓冲区中的最大宽度
参数:spacing
distance between mask points
面膜点之间的距离
参数:max.mask
mask object
mask对象
参数:detectfn
integer code or character string for shape of detection function 0 = halfnormal etc. – see detectfn
的整数代码或字符串检测功能0 = halfnormal等形状 - detectfn
参数:detectpar
list of values for named parameters of detection function
检测功能命名参数的值列表
参数:noccasions
number of sampling occasions
样本的数量
参数:binomN
integer code for discrete distribution (see secr.fit)
整数代码为离散分布(见secr.fit)
参数:thin
proportion of mask points to retain in plot and output
保留图和输出比例的面膜点
参数:poly
matrix of two columns interpreted as the x and y coordinates of a bounding polygon (optional)
两列的矩阵解释为在x和y坐标边界多边形(可选的)
参数:session
vector of session indices (used if object spans multiple sessions)
如果object跨越多个会话的会话指数(矢量)
参数:plt
logical to plot results
逻辑图结果
参数:as.density
logical; if TRUE the y-axis is n / esa
逻辑,如果为true,y轴为n /欧空局
参数:n
integer number of distinct individuals detected
检测到不同的个体的整数
参数:add
logical to add line to an existing plot
逻辑添加到现有的图线
参数:overlay
logical; if TRUE then automatically add = TRUE for plots after the first
逻辑;如果是TRUE,然后自动add = TRUE为图后的第一个
参数:...
graphical arguments passed to plot() and lines()
绘制的图形参数传递()和线()
Details
详细信息----------Details----------
Effective sampling area (esa) is defined as the integral of net capture probability (p.(X)) over a region. esa.plot shows the effect of increasing region size on the value of esa for fixed values of the detection parameters. The max.buffer or max.mask arguments establish the maximum extent of the region; points (cells) within this mask are sorted by their distance dk from the nearest detector. esa(buffer) is defined as the cumulative sum of c * p.(X) for dk(X) <= buffer, where c is the area associated with each cell.
净捕获概率的积分(p.(X))以上的区域被定义为有效取样面积(ESA)。 esa.plot表示的ESA为固定值的检测参数的值增加区域尺寸的影响。 max.buffer或max.mask参数建立的最大范围内的区域;在此面膜进行排序的距离dk距离最近的检测点(单元)。 ESA(缓冲液)的累积总和被定义为c * p.(X)dk(X) <= buffer,其中c是与每个小区相关联的区域。
The default (as.density = TRUE) is to plot the reciprocal of esa multiplied by n; this is on a more familiar scale (the density scale) and hence is easier to interpret.
的默认(as.density = TRUE)是欧空局绘制的倒数乘以n,这是一个规模比较熟悉的密度(规模),因此更容易解释。
Because esa.plot uses the criterion 'distance to nearest detector', max.mask should be constructed to include all habitable cells within the desired maximum buffer and no others. This is achieved with type = "trapbuffer" in make.mask. It is a good idea to set the spacing argument of make.mask rather than relying on the default based on nx. Spacing may be small (e.g. sigma/10) and the buffer of max.mask may be quite large (e.g. 10 sigma), as computation is fast.
因为esa.plot使用的标准的距离到最近的探测器,max.mask应当建立包括所有所需的最大缓冲区,并没有其他人居住的单元内。这是实现type = "trapbuffer"中make.mask。这是一个好主意,而不是依靠默认的基础上spacing的make.mask的nx参数。间隔可以是小(例如sigma/10)和缓冲可能max.mask相当大(例如10Σ),作为计算速度快。
Thinning serves to reduce redundancy in the plotted points, and (if the result is saved and printed) to generate more legible numerical output. Use thin=1 to include all points.
细化服务,以减少冗余绘制的点,(如果结果是保存和打印),以产生更清晰的数字输出。使用thin=1,包括所有的点。
esa.plot calls the internal function esa.plot.secr when object is a fitted model. In this case detectfn, detectpar and noccasions are inferred from object.
esa.plot调用内部函数esa.plot.secr如果object是一个合适的模型。在这种情况下detectfn,detectpar和noccasions是object推断。
值----------Value----------
A dataframe with columns
一个数据框列
参数:buffer
buffer width
缓冲区的宽度
参数:esa
computed effective sampling area
计算有效取样面积
参数:density
n/esa
N / ESA
参数:pdot
p.(X)
p.(X)
参数:pdotmin
cumulative minimum (p.(X))
累计最低(p.(X))
If plt = TRUE the dataframe is returned invisibly.
如果plt = TRUE返回的数据框不可见的。
注意----------Note----------
The response of effective sampling area to buffer width is just one possible mask diagnostic; it's fast, graphic, and often sufficient. mask.check performs more intensive checks, usually for a smaller number of buffer widths.
有效取样面积的缓冲区宽度的响应只是一个可能的面具诊断,它的速度快,图形,通常就足够了。 mask.check执行更密集的检查中,通常为一个较小的宽度的缓冲数。
参考文献----------References----------
likelihood methods for capture–recapture studies. Biometrics 64, 377–385.
参见----------See Also----------
mask, pdot, make.mask, mask.check,
mask,pdot,make.mask,mask.check,
实例----------Examples----------
## with previously fitted model[与先前安装的模型#]
esa.plot(secrdemo.0)
## from scratch[#从头开始]
trps <- make.grid()
msk <- make.mask(trps, buffer = 200, spacing = 5, type = "trapbuffer")
detectpar <- list(g0 = 0.2, sigma = 25)
esa.plot(trps,,, msk, 0, detectpar, nocc = 10, col = "blue")
esa.plot(trps,,, msk, 0, detectpar, nocc = 5, col = "green",
add = TRUE)
esa.plot(trps,,, msk, 0, detectpar, nocc = 5, thin = 0.002, plt = FALSE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|