model.images(spatstat)
model.images()所属R语言包:spatstat
Compute Images of Constructed Covariates
计算构造协变量图像
译者:生物统计家园网 机器人LoveR
描述----------Description----------
For a point process model fitted to spatial point pattern data, this function computes pixel images of the covariates in the design matrix.
此功能对于安装空间点格局数据点过程模型,协变量的设计矩阵计算像素的图像。
用法----------Usage----------
model.images(object, ...)
## S3 method for class 'ppm'
model.images(object, W = as.owin(object), ...)
## S3 method for class 'kppm'
model.images(object, W = as.owin(object), ...)
## S3 method for class 'lppm'
model.images(object, L = as.linnet(object), ...)
参数----------Arguments----------
参数:object
The fitted point process model. An object of class "ppm" or "kppm" or "lppm".
拟合点过程模型。对象的类"ppm"或"kppm"或"lppm"。
参数:W
A window (object of class "owin") in which the images should be computed. Defaults to the window in which the model was fitted.
一个窗口(类的对象"owin"“”),其中的图像进行计算。默认的窗口,在其中的模型拟合。
参数:L
A linear network (object of class "linnet") in which the images should be computed. Defaults to the network in which the model was fitted.
线性网络(类的对象"linnet"),其中图像应计算。默认到网络的模型拟合。
参数:...
Other arguments (such as na.action) passed to model.matrix.lm.
其他参数(如na.action)传递给model.matrix.lm。
Details
详细信息----------Details----------
This command is similar to model.matrix.ppm except that it computes pixel images of the covariates, instead of computing the covariate values at certain points only.
此命令是类似model.matrix.ppm不同的是它的协变量计算像素的图像,而不是只在某些点的协变量值计算。
The object must be a fitted spatial point process model object of class "ppm" (produced by the model-fitting function ppm) or class "kppm" (produced by the fitting function kppm) or class "lppm" (produced by lppm).
object必须是一个厨房的空间点过程模型对象的类"ppm"(模型的拟合函数ppm)或类"kppm"(所产生的拟合函数kppm)或类"lppm"(lppm)。
The spatial covariates required by the model-fitting procedure are computed at every pixel location in the window W. For lppm objects, the covariates are computed at every location on the network L.
计算在每个像素位置的窗口中W的协变量的模型拟合过程中所需要的空间。对于lppm对象,协变量,计算在每个位置上的网络L。
Note that the spatial covariates computed here are not the original covariates that were supplied when fitting the model. Rather, they are the covariates that actually appear in the loglinear representation of the (conditional) intensity and in the columns of the design matrix. For example, they might include dummy or indicator variables for different levels of a factor, depending on the contrasts that are in force.
请注意,这里的空间协变量计算是不是原来的协变量拟合模型时所提供。相反,它们是实际出现在(有条件的)强度的对数线性表示,在设计矩阵的列的协变量。例如,他们可能会包括不同层次的因素的虚拟或指标变量,根据已生效的对比。
The pixel resolution is determined by W if W is a mask (that is W$type = "mask"). Otherwise, the pixel resolution is determined by spatstat.options.
像素的分辨率是由W如果W是一个面具(即是W$type = "mask")。否则,像素分辨率是由spatstat.options。
The result is a named list of pixel images (objects of class "im") containing the values of the spatial covariates. The names of the list elements are the names of the covariates determined by model.matrix.lm.
结果是命名列表,其中包含的空间协变量的值的像素的图像(对象类"im")。列表中的元素的名称是由model.matrix.lm的协变量的名称。
The result is also of class "listof" so that it can be plotted immediately.
其结果也是类"listof",以便它可以立即被绘制。
值----------Value----------
An object of class "listof" consisting of a named list of pixel images (objects of class "im"). This list can be plotted immediately using plot.listof.
类的一个对象"listof"像素的图像的命名列表(类的对象"im")。这个列表可以绘制立即使用plot.listof。
For model.images.lppm, the images are also of class "linim".
对于model.images.lppm,图像也类"linim"。
(作者)----------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>
参见----------See Also----------
model.matrix.ppm, model.matrix, ppm, ppm.object, im, im.object, plot.listof, spatstat.options
model.matrix.ppm,model.matrix,ppm,ppm.object,im,im.object,plot.listof,spatstat.options
实例----------Examples----------
fit <- ppm(cells, ~x)
model.images(fit)
fit2 <- ppm(cells, ~cut(x,3))
model.images(fit2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|