ggwr(spgwr)
ggwr()所属R语言包:spgwr
Generalised geographically weighted regression
广义GEO加权回归
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function implements generalised geographically weighted regression approach to exploring spatial non-stationarity for given global bandwidth and chosen weighting scheme.
该函数实现一般性的GEO加权回归的方法来探索空间非平稳性,鉴于全球带宽和选择权计划。
用法----------Usage----------
ggwr(formula, data = list(), coords, bandwidth, gweight = gwr.Gauss,
adapt = NULL, fit.points, family = gaussian, longlat = NULL, type =
c("working", "deviance", "pearson", "response"))
参数----------Arguments----------
参数:formula
regression model formula as in glm
回归模型公式glm
参数:data
model data frame as in glm, or may be a SpatialPointsDataFrame or SpatialPolygonsDataFrame object as defined in package sp
模型数据框在glm,或可能是一个SpatialPointsDataFrame或SpatialPolygonsDataFrame在套件sp中定义的对象作为
参数:coords
matrix of coordinates of points representing the spatial positions of the observations
代表的观测值的空间位置的坐标的点矩阵
参数:bandwidth
bandwidth used in the weighting function, possibly calculated by ggwr.sel
权重函数中使用的带宽,可能计算的ggwr.sel
参数:gweight
geographical weighting function, at present gwr.Gauss() default, or gwr.gauss(), the previous default or gwr.bisquare()
GEO加权函数,目前gwr.Gauss()默认情况下,或gwr.gauss(),以前的默认或gwr.bisquare()
参数:adapt
either NULL (default) or a proportion between 0 and 1 of observations to include in weighting scheme (k-nearest neighbours)
NULL(默认)或比例介于0和1之间的观测中的权重方案,包括(k-最近邻居)
参数:fit.points
an object containing the coordinates of fit points; often an object from package sp; if missing, the coordinates given through the data argument object, or the coords argument are used
一个对象,它包含拟合点的坐标;对象往往从包装sp;如果缺失,所表示的坐标,通过数据参数对象,或坐标参数使用
参数:family
a description of the error distribution and link function to be used in the model, see glm
在模型中使用的误差分布和链接功能的描述,请参阅glm
参数:longlat
TRUE if point coordinates are longitude-latitude decimal degrees, in which case distances are measured in kilometers; if x is a SpatialPoints object, the value is taken from the object itself
TRUE,如果点坐标的经纬度小数度,在这种情况下,测量距离(公里),如果x是一个SpatialPoints,对象,对象本身的价值是从
参数:type
the type of residuals which should be returned. The alternatives are: "working" (default), "pearson", "deviance" and "response"
应返回的残差的类型。的替代品是:“工作”(默认),“培”,“越轨”和“响应”
值----------Value----------
A list of class “gwr”:
类“的名单GWR”:
参数:SDF
a SpatialPointsDataFrame (may be gridded) or SpatialPolygonsDataFrame object (see package "sp") with fit.points, weights, GWR coefficient estimates, dispersion if a "quasi"-family is used, and the residuals of type "type" in its "data" slot.
一个SpatialPointsDataFrame(可能是格点)或SpatialPolygonsDataFrame对象(见包“菌”)与fit.points,重量,GWR系数估计值,分散体,如果一个“准”家庭使用,和类型“类型的残差”在“数据”插槽。
参数:lhat
Leung et al. L matrix, here set to NA
Leung等人。 L矩阵,这里设置为NA
参数:lm
GLM global regression on the same model formula. <tr valign="top"><td>bandwidth</td>
GLM全球回归模型公式相同。 <tr valign="top"> <TD> bandwidth</ TD>
the bandwidth used.
使用的带宽。
参数:this.call
the function call used.
所使用的函数调用。
注意----------Note----------
The use of GWR on GLM is only at the initial proof of concept stage, nothing should be treated as an accepted method at this stage.
使用GWR上GLM只在最初的概念证明阶段,也不应该被视为一个公认的方法,在这个阶段。
(作者)----------Author(s)----------
Roger Bivand <a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>
参考文献----------References----------
Geographically Weighted Regression, Chichester: Wiley;
参见----------See Also----------
ggwr.sel, gwr
ggwr.sel,gwr
实例----------Examples----------
library(maptools)
xx <- readShapePoly(system.file("shapes/sids.shp", package="maptools")[1],
IDvar="FIPSNO", proj4string=CRS("+proj=longlat +ellps=clrk66"))
bw <- 144.4813
## Not run: [#不运行:]
bw <- ggwr.sel(SID74 ~ I(NWBIR74/BIR74) + offset(log(BIR74)), data=xx,
family=poisson(), longlat=TRUE)
## End(Not run)[#(不执行)]
nc <- ggwr(SID74 ~ I(NWBIR74/BIR74) + offset(log(BIR74)), data=xx,
family=poisson(), longlat=TRUE, bandwidth=bw)
nc
## Not run: [#不运行:]
nc <- ggwr(SID74 ~ I(NWBIR74/10000) + offset(log(BIR74)), data=xx,
family=poisson(), longlat=TRUE, bandwidth=bw)
nc
nc <- ggwr(SID74 ~ I(NWBIR74/10000) + offset(log(BIR74)), data=xx,
family=quasipoisson(), longlat=TRUE, bandwidth=bw)
nc
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|