找回密码
 注册
查看: 328|回复: 0

R语言 spatstat包 residuals.ppm()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 14:05:57 | 显示全部楼层 |阅读模式
residuals.ppm(spatstat)
residuals.ppm()所属R语言包:spatstat

                                         Residuals for Fitted Point Process Model
                                         点过程模型拟合的残差

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Given a point process model fitted to a point pattern, compute residuals.
由于模式装到一个点一个点过程模型,计算残差。


用法----------Usage----------


  ## S3 method for class 'ppm'
residuals(object, type="raw", ..., check=TRUE, drop=FALSE,
                fittedvalues=fitted.ppm(object, check=check, drop=drop),
                coefs=NULL, quad=NULL)



参数----------Arguments----------

参数:object
The fitted point process model (an object of class "ppm") for which residuals should be calculated.  
拟合点过程模型(一个类的对象"ppm")的残差应该被计算出来的。


参数:type
String indicating the type of residuals to be calculated. Current options are "raw", "inverse", "pearson" and "score". A partial match is adequate.  
字符串,用于指示的类型以计算的残差。当前选项"raw","inverse","pearson"和"score"。部分匹配的是足够的。


参数:...
Ignored.  
忽略。


参数:check
Logical value indicating whether to check the internal format of object. If there is any possibility that this object has been restored from a dump file, or has otherwise lost track of the environment where it was originally computed, set check=TRUE.   
逻辑值,该值指示是否要检查的内部格式object。如果有任何可能,这个对象已经从dump文件中恢复,或以其他方式失去它最初被计算的环境中,设置check=TRUE。


参数:drop
Logical value determining whether to delete quadrature points that were not used to fit the model. See quad.ppm for explanation.   
逻辑值,确定是否删除不使用的正交点,拟合模型。见quad.ppm解释。


参数:fittedvalues
Vector of fitted values for the conditional intensity at  the quadrature points, from which the residuals will be computed.  For expert use only.  
向量正交点的拟合值的条件的强度,从其中将被计算残差。有关专家方可使用。


参数:coefs
Optional. Numeric vector of coefficients for the model, replacing coef(object). See the section on Modified Residuals below.  
可选。数字矢量模型的系数,取代coef(object)。改进的残差下面的部分。


参数:quad
Optional. Data specifying how to re-fit the model. A list of arguments passed to quadscheme. See the section on Modified Residuals below.  
可选。数据指定如何拟合模型。的参数列表传递给quadscheme。改进的残差下面的部分。


Details

详细信息----------Details----------

This function computes several kinds of residuals for the fit of a point process model to a spatial point pattern dataset (Baddeley et al, 2005). Use plot.msr to plot the residuals directly, or diagnose.ppm to produce diagnostic plots based on these residuals.
此函数计算几种类型的残差为合适的点过程模型空间图形数据集(巴德利等人,2005)。使用plot.msr绘制残差直接或diagnose.ppm产生这些残差诊断图的基础上。

The argument object must be a fitted point process model (object of class "ppm"). Such objects are produced by the maximum pseudolikelihood fitting algorithm ppm). This fitted model object contains complete information about the original data pattern.
参数object必须是一个安装点过程模型(对象类"ppm"“)。这些对象是由的最大pseudolikelihood拟合算法ppm)。这种拟合模型对象包含原始数据模式的完整信息。

Residuals are attached both to the data points and to some other points in the window of observation (namely, to the dummy points of the quadrature scheme used to fit the model). If the fitted model is correct, then the sum of the  residuals over all (data and dummy) points in a spatial region B has mean zero. For further explanation, see Baddeley et al (2005).
残差的数据点和一些其他的窗口观察点(即正交方案,以适应模型的虚拟点)。如果合适的模型是正确的,那么余数的总和(数据和虚拟)点在空间区域B平均为零。为了进一步说明,请参阅巴德利等人(2005年)。

The type of residual is chosen by the argument type. Current options are
残余所选择的参数type。当前选项

the raw residuals
原始残差

at the quadrature points u[j], where z[j] is the indicator equal to 1 if u[j] is a data point and 0 if u[j] is a dummy point; w[j] is the quadrature weight attached to u[j]; and
在正交点u[j],其中z[j]是指标等于1,如果u[j]是一个数据点和0,如果u[j]是一个虚拟的点; w[j]是正交的权重u[j];

is the conditional intensity of the fitted model at u[j]. These are the spatial analogue of the martingale residuals of a one-dimensional counting process.
在u[j]的拟合模型是有条件的强度。这是一个一维的计数过程的鞅残差的空间类似物。

the "inverse-lambda" residuals (Baddeley et al, 2005)
“反拉姆达的残差(巴德利等人,2005)

obtained by dividing the raw residuals by  the fitted conditional intensity. These are  a counterpart of the exponential energy marks (see eem).
方式获得拟合有条件强度除以原料的残差。这些都是对应的指数能源标志(见eem“)。

the Pearson residuals (Baddeley et al, 2005)
Pearson残差(巴德利等人,2005)

obtained by dividing the raw residuals by the square root of the fitted conditional intensity. The Pearson residuals are standardised, in the sense that if the model (true and fitted) is Poisson, then the sum of the Pearson residuals in a spatial region B has variance equal to the area of B.
方式获得拟合有条件强度的平方根除以原料的残差。 Pearson残差是标准化的,在这个意义上,如果该模型(真实和拟合)是泊松,然后于一个空间区域B Pearson残差的总和具有等于B的区域的方差。

the score residuals (Baddeley et al, 2005)
score残差(巴德利等人,2005)

obtained by multiplying the raw residuals r[j] by the covariates x[j,] for quadrature point j. The score residuals always sum to zero.
通过以下方式获得原料残差相乘r[j]由协变量x[j,]为正交点j。 score残差总和为零。

Use plot.msr to plot the residuals directly, or diagnose.ppm to produce diagnostic plots based on these residuals.
使用plot.msr绘制残差直接或diagnose.ppm产生这些残差诊断图的基础上。


值----------Value----------

An object of class "msr"  representing a signed measure or vector-valued measure (see msr). This object can be plotted.
类的一个对象"msr"表示一个有符号的措施或向量值措施(见msr)。这个对象可以被绘制。


改进的残差----------Modified Residuals----------

Sometimes we want to modify the calculation of residuals by using different values for the model parameters. This capability is provided by the arguments coefs and quad.
有时候,我们要修改的残差计算通过使用不同的模型参数值。此功能提供了的参数coefs和quad。

If coefs is given, then the residuals will be computed by taking the model parameters to be coefs. This should be a numeric vector of the same length as the vector of fitted model parameters coef(object).
如果coefs,然后将残差计算模型参数coefs。这应该是一个数值向量具有相同的长度作为矢量拟合模型参数coef(object)。

If coefs is missing and quad is given, then the model parameters will be determined by re-fitting the model using a new quadrature scheme specified by quad.  Residuals will be computed for the original model object using these new parameter values.
如果coefs失踪,quad,然后对模型参数将取决于重新装修的模型,使用新的积分方案指定的quad。残差计算的原始模型object使用这些新的参数值。

The argument quad should normally be a list of arguments in name=value format that will be passed to quadscheme (together with the original data points) to determine the new quadrature scheme. It may also be a quadrature scheme (object of class "quad" to which the model should be fitted, or a point pattern (object of class "ppp" specifying the dummy points in a new quadrature scheme.
参数quad通常应的参数列表中name=value格式将被传递到quadscheme(连同原始数据点),以确定新的积分方案。这也可能是一个正交计划(对象类的对象的类"quad"该模型应安装,或点模式("ppp"指定虚拟一个新的积分方案。


(作者)----------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>
and Rolf Turner
<a href="mailto:r.turner@auckland.ac.nz">r.turner@auckland.ac.nz</a>




参考文献----------References----------

Residual analysis for spatial point processes. Journal of the Royal Statistical Society, Series B 67, 617&ndash;666.
Properties of residuals for spatial point processes. Annals of the Institute of Statistical Mathematics 60, 627&ndash;649.

参见----------See Also----------

msr, diagnose.ppm, ppm.object, ppm
msr,diagnose.ppm,ppm.object,ppm


实例----------Examples----------


    data(cells)
    fit <- ppm(cells, ~x, Strauss(r=0.15))

    # Pearson residuals[Pearson残差]
    rp <- residuals(fit, type="pe")
    rp

     # simulated data[模拟数据]
   X <- rStrauss(100,0.7,0.05)
   # fit Strauss model [适合施特劳斯模型]
   fit <- ppm(X, ~1, Strauss(0.05))
   res.fit <- residuals(fit)
   # true model parameters[真正的模型参数]
   truecoef <- c(log(100), log(0.7))
   res.true <- residuals(fit, coefs=truecoef)  

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-16 09:54 , Processed in 0.025137 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表