LocSig(SpatialVx)
LocSig()所属R语言包:SpatialVx
Temporal block bootstrap keeping locations in space constant
保持位置在空间内恒定的时间块引导
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Temporal block bootstrap for data at spatial locations (holding locations constant at each iteration). This is a wrapper function to the tsboot or boot functions for use with the field significance approach of Elmore et al. (2006).
时间块引导数据在空间位置(在每一次迭代中保持位置不变)。这是一个包装函数的tsboot或引导功能埃尔莫尔等用于与字段的意义的方法。 (2006年)。
用法----------Usage----------
LocSig(Z, numrep = 1000, block.length = NULL, bootfun = "mean", alpha = 0.05, bca = FALSE, ...)
## S3 method for class 'LocSig'
plot(x, loc = NULL, nx = NULL, ny = NULL, ...)
参数----------Arguments----------
参数:Z
n X m numeric matrix whose rows represent contiguous time points, and whose columns represent spatial locations.
N×M的数字矩阵的行表示连续的时间点,而其代表空间位置的列。
参数:numrep
numeric/integer giving the number of bootstrap replications to use.
数字/整数,引导重复使用的次数。
参数:block.length
positive numeric/integer giving the desired block lengths. If NULL, floor(sqrt(n)) is used. If 1, then the IID bootstrap is performed, and the BCa method may be used to find CI's, if bca is TRUE.
正数/整数得到所需要的块长度。如果为NULL,floor(sqrt(n))使用。如果为1,然后被执行的IID引导,和BCA方法可以被用来找到CI的,如果bca为TRUE。
参数:bootfun
character naming an R function to be applied to each replicate sample. Must return a single number, but is otherwise the statistic argument for function tsboot (or boot if block.length = 1).
字符命名一个R函数要施加到每个复制样品。必须返回一个数字,而是否则statistic参数功能tsboot(或boot如果block.length = 1)。
参数:alpha
numeric giving teh value of alpha to obtain (1-alpha)*100 percent CI's for bootfun.
数字的格兰值的alpha得到(1 - alpha)* 100%CI为bootfun。
参数:bca
logical, should bias-corrected and adjusted (BCa) CI's be calculated? Only used if block.length = 1. Will give a warning if this argument is TRUE, and block.length > 1, and will use the percentile method.
逻辑,应偏置校正和调整(BCA)CI的计算?仅用于block.length= 1。会给出一个警告,如果这种说法是真实的,和block.length> 1,并且将使用百分位数法。
参数:x
data frame of class "LocSig" as returned by LocSig.
返回的数据框类“LocSig”LocSig。
参数:loc
m X 2 matrix of location coordinates.
m个X 2的位置坐标的矩阵。
参数:nx,ny
If loc is NULL, then nx and ny must be supplied. These give the number of rows and columns of a grid to make an image (using as.image) for plotting. If these are used, the data Z must be from a regular grid of points.
如果loc是NULL,那么nx和ny必须提供。这些一格的行和列的数量,使图像(使用as.image)的图。如果这些被使用时,数据Z必须是从一个普通的网格点。
参数:...
LocSig: optional additional arguments to the tsboot (or boot if block.length=1) function. plot.LocSig: optional additional arguments to image.plot.
LocSig:可选的附加参数的tsboot(boot如果block.length= 1)功能。 plot.LocSig:可选的额外参数image.plot。
Details
详细信息----------Details----------
This function performs the circular block bootstrap algorithm over time at each of m locations (columns of x). So, at each bootstrap iteration, entire blocks of rows of x are resampled with replacement. If 'Z' represents forecast errors at grid points, and bootfun="mean", then this finds the grid-point CI's in steps 1 (a) to 1 (c) of Elmore et al. (2006).
这个函数执行的圆块引导算法随着时间的推移,每米的位置(列x)。因此,在每个引导迭代,整个块的x的行重采样更换。如果“Z”表示的网格点的预测误差,和bootfun =“的意思是”,那么这个发现的格点的CI的在步骤1(a)至图1(c)埃尔莫尔等。 (2006年)。
值----------Value----------
LocSig: A data frame with class attribute "LocSig" with components:
LocSig:A的数据框类属性“LocSig”的组件:
参数:Estimate
numeric giving the estimated values of bootfun (the statistic for which CI's are computed).
数值给bootfun(CI的计算的统计)的估计值的。
参数:Lower, Upper
numeric giving the estimated lower (upper) (1-alpha)*100 percent CI's.
数值赋予估计的下部(上部)(1-α)* 100%CI的。
plot.LocSig: invisibly returns a list containing the estimate as returned by LocSig, and the confidence range.
看不见的plot.LocSig:返回一个列表,其中包含估计返回的LocSig,和置信区间。
(作者)----------Author(s)----------
Eric Gilleland
参考文献----------References----------
参见----------See Also----------
spatbiasFS, tsboot, boot, boot.ci, MCdof, sig.cor.t, sig.cor.Z, cor.test, image.plot, as.image
spatbiasFS,tsboot,boot,boot.ci,MCdof,sig.cor.t,sig.cor.Z,cor.test,image.plot,as.image
实例----------Examples----------
data(GFSNAMfcstEx)
data(GFSNAMobsEx)
data(GFSNAMlocEx)
id <- GFSNAMlocEx[,"Lon"] >=-100 & GFSNAMlocEx[,"Lon"] <= -75 & GFSNAMlocEx[,"Lat"] <= 36
look <- LocSig(GFSNAMfcstEx[,id] - GFSNAMobsEx[,id], numrep=500)
stats(look)
## Not run: [#不运行:]
plot(look, loc=cbind(GFSNAMlocEx$Lon[id],GFSNAMlocEx$Lat[id]))
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|