MCdof(SpatialVx)
MCdof()所属R语言包:SpatialVx
Estimate the distribution of the proportion of spatial locations that contain significant correlations with randomly generated data
估计的比例包含显着的相关性与随机生成的数据的空间位置的分布
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Estimate the distribution of the proportion of spatial locations that contain significant correlations with randomly generated data along the lines of Livezey and Chen (1983).
估价的比例包含显着的相关性与随机产生的数据沿Livezey和Chen(1983)的线的空间位置的分布。
用法----------Usage----------
MCdof(x, ntrials = 5000, field.sig = 0.05, zfun = "rnorm", zfun.args = NULL, which.test = c("t", "Z", "cor.test"), verbose = FALSE, ...)
sig.cor.t(r, len = 40, ...)
sig.cor.Z(r, len = 40, H0 = 0)
fisherz(r)
参数----------Arguments----------
参数:x
n X m numeric matrix whose rows represent temporal points, and whose columns are spatial locations.
N×M的数字矩阵的行表示时间点,而其空间位置的列。
参数:ntrials
numeric/integer giving the number of times to generate random samples of size n, and correlate them with the columns of x.
数字/整数给予的次数,生成随机样品的大小为n,和关联他们的列x。
参数:field.sig
numeric between 0 and 1 giving the desired fields significance level.
数字0和1之间提供所需的字段的显着性水平。
参数:zfun
character naming a random number generator that takes n (the size of the sample to be drawn) as an argument, and any other arguments necessary.
字符命名n(样本的大小被提取)作为参数,必要的任何其他参数的随机数生成器,它。
参数:zfun.args
list object giving the values for additional arguments to the function named by zfun.
列表对象给予额外的参数的值的功能命名zfun。
参数:which.test
character naming which type of test to do (default, "t", is a t-test, calls sig.cor.t). "Z" does Fisher's Z transform (calls sig.cor.Z). "cor.test" calls cor.test giving more options, but is also considerably slower than "t" or "Z".
字符命名做哪种类型的测试(默认情况下,“T”,t检验,要求sig.cor.t“)。 “Z”Fisher的Z变换(检测sig.cor.Z)。 “cor.test”调用cor.test提供更多的选择,但也明显慢于“T”或“Z”。
参数:r
numeric giving the correlation value(s).
发出的相关值(s)的数字。
参数:len
numeric giving the size of the data for the test.
数字给出的测试数据的大小。
参数:H0
numeric giving the null hypothesis value (not used by MCdof).
数字的零假设值(不使用MCdof)。
参数:verbose
logical, should progress information (including total run time) be printed to the screen?
逻辑,应打印到屏幕上的信息(包括总运行时间)的进展吗?
参数:...
optional arguments to sig.cor.t (not used), sig.cor.Z, or cor.test depending on argument which.test.
可选参数sig.cor.t(未使用),sig.cor.Z或cor.test根据上的参数which.test。
Details
详细信息----------Details----------
This function does the Livezey and Chen (1983) Monte Carlo step 2 (a) from Elmore et al. (2006). It generates a random sample of size n, and finds the p-values of a correlation test with this random sample and each column of x. From this, it estimates the proportion of spatial locations that could contain significant bias purely by chance.
此功能的Livezey的和Chen(1983)蒙特卡洛步骤2(a)从埃尔莫尔等。 (2006年)。它会产生一个大小为n的随机样本,并发现这个随机抽样的相关测试和每一列的x的p值的。这一点,估计比例的空间位置,可能包含重大的偏差纯属偶然。
值----------Value----------
MCdof returns a list object with components:
MCdof返回一个列表对象的组件:
参数:MCprops
numeric vector of length ntrials giving the proportion of locations with significant bias found by chance for each repition of the experiment.
数字矢量的长度ntrials,给人的位置的机会为每个repition的实验发现的重大偏差的比例。
参数:minsigcov
single numeric giving the 1 - field.sig quantile of the resulting proportions given by MCprops.
单一的数字,1 - field.sig位数的比例由MCprops。
sig.cor.t and sig.cor.Z return umeric vectors of p-values, and fisherz returns a numeric vector of test statistics.
sig.cor.t和sig.cor.Z返回umeric的向量p-值,并返回一个数值向量fisherz的检验统计量。
(作者)----------Author(s)----------
Kimberly L. Elmore and Eric Gilleland
参考文献----------References----------
参见----------See Also----------
spatbiasFS, LocSig, cor.test, rnorm, runif, rexp, rgamma
spatbiasFS,LocSig,cor.test,rnorm,runif,rexp,rgamma
实例----------Examples----------
data(GFSNAMfcstEx)
data(GFSNAMobsEx)
data(GFSNAMlocEx)
id <- GFSNAMlocEx[,"Lon"] >=-100 & GFSNAMlocEx[,"Lon"] <= -75 & GFSNAMlocEx[,"Lat"] <= 36
look <- MCdof(GFSNAMfcstEx[,id] - GFSNAMobsEx[,id], ntrials=500)
stats(look$MCprops)
look$minsigcov
fisherz( abs(cor(rnorm(10),rexp(10), use="pairwise.complete.obs")))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|