Kres(spatstat)
Kres()所属R语言包:spatstat
Residual K Function
剩余K功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a point process model fitted to a point pattern dataset, this function computes the residual K function, which serves as a diagnostic for goodness-of-fit of the model.
给定一个点过程模型安装阵列点数据集,这个函数计算的剩余K功能,它作为一个诊断模型拟合善良的。
用法----------Usage----------
Kres(object, ...)
参数----------Arguments----------
参数:object
Object to be analysed. Either a fitted point process model (object of class "ppm"), a point pattern (object of class "ppp"), a quadrature scheme (object of class "quad"), or the value returned by a previous call to Kcom.
对象,以进行分析。无论是拟合点过程模型(类的对象"ppm"),点模式(类的对象"ppp"),一个正交计划(类的对象"quad"),或返回的值由以前调用Kcom。
参数:...
Arguments passed to Kcom.
传递参数到Kcom。
Details
详细信息----------Details----------
This command provides a diagnostic for the goodness-of-fit of a point process model fitted to a point pattern dataset. It computes a residual version of the K function of the dataset, which should be approximately zero if the model is a good fit to the data.
此命令提供了一个诊断,适合安装阵列点数据集的点过程模型的恩惠。计算剩余版本的K的数据集的功能,这应该是接近于零的数据如果模型是一个不错的选择。
In normal use, object is a fitted point process model or a point pattern. Then Kres first calls Kcom to compute both the nonparametric estimate of the K function and its model compensator. Then Kres computes the difference between them, which is the residual K-function.
在正常使用,object是一个安装点过程模型或点模式。然后Kres第一次调用Kcom计算K功能的非参数估计和模型补偿的。然后Kres计算它们之间的差值,这是残余K功能。
Alternatively, object may be a function value table (object of class "fv") that was returned by a previous call to Kcom. Then Kres computes the residual from this object.
另外,object可能是函数值表(对象类的"fv")所返回的上一次调用Kcom。 Kres计算的剩余可从该对象。
值----------Value----------
A function value table (object of class "fv"), essentially a data frame of function values. There is a plot method for this class. See fv.object.
类的对象的函数值表("fv"),本质上是一个数据框的函数值。有一个图,这个类的方法。见fv.object。
(作者)----------Author(s)----------
Adrian Baddeley
<a href="mailto:Adrian.Baddeley@csiro.au">Adrian.Baddeley@csiro.au</a>
<a href="http://www.maths.uwa.edu.au/~adrian/">http://www.maths.uwa.edu.au/~adrian/</a>
Ege Rubak and Jesper Moller.
参考文献----------References----------
Score, pseudo-score and residual diagnostics for spatial point process models. Statistical Science 26, 613–646.
参见----------See Also----------
Related functions: Kcom, Kest.
相关功能:Kcom,Kest。
Alternative functions: Gres, psstG, psstA, psst.
替代功能:Gres,psstG,psstA,psst。
Point process models: ppm.
点过程模型:ppm。
实例----------Examples----------
data(cells)
fit0 <- ppm(cells, ~1) # uniform Poisson[统一的泊松]
K0 <- Kres(fit0)
K0
plot(K0)
# isotropic-correction estimate[各向同性校正估计]
plot(K0, ires ~ r)
# uniform Poisson is clearly not correct[均匀泊松显然是不正确的]
fit1 <- ppm(cells, ~1, Strauss(0.08))
K1 <- Kres(fit1)
plot(K1, ires ~ r)
# fit looks approximately OK; try adjusting interaction distance[适合看上去尝试调节作用距离约为OK;]
plot(Kres(cells, interaction=Strauss(0.12)))
# How to make envelopes[如何使信封]
## Not run: [#不运行:]
E <- envelope(fit1, Kres, interaction=as.interact(fit1), nsim=19)
plot(E)
## End(Not run)[#(不执行)]
# For computational efficiency[为了计算效率]
Kc <- Kcom(fit1)
K1 <- Kres(Kc)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|