spsample-methods(spcosa)
spsample-methods()所属R语言包:spcosa
Spatial Sampling of Compact Strata
空间紧凑型分层抽样中
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Methods for sampling in compact strata.
在紧凑的地层取样的方法。
方法----------Methods----------
x = "CompactStratification", n = "missing", type = "missing" samples the centroids of each stratum.
X =“CompactStratification”,N =“失踪”,“失踪”的样品各阶层的重心。
x = "CompactStratification", n = "numeric", type = "missing" stratified simple random sampling with n samples per stratum.
所述=“CompactStratification”,N =“数字”,“失踪”分层简单随机抽样的n地层样品每。
x = "CompactStratificationEqualArea", n = "numeric", type = "character" if type = "composite", stratified simple random sampling of n composites.
X =的“CompactStratificationEqualArea”,N =“数字”,“字”,如果type = "composite",分层简单随机抽样的n复合材料。
x = "CompactStratificationPriorPoints", n = "missing", type = "missing" spatial infill sampling
X =“CompactStratificationPriorPoints”,N =“失踪”,“失踪”的空间加密采样
参见----------See Also----------
stratify for stratification, spsample for other types of spatial sampling, and estimate for inference.
stratify分层,spsample其他类型的空间采样,并estimate推论。
实例----------Examples----------
## Not run: [#不运行:]
# read a vector representation of the `Farmsum' field (by means of rgdal-package)[读Farmsum字段的向量表示(通过的rgdal封装)]
shpFarmsum <- readOGR(dsn = system.file("maps", package = "spcosa"), layer = "farmsum")
# stratify `Farmsum' into 50 strata[分层Farmsum到50阶层]
myStratification <- stratify(shpFarmsum, nStrata = 50)
# sample two sampling units per stratum[每个阶层的样品抽样单位]
mySamplingPattern <- spsample(myStratification, n = 2)
# plot the resulting sampling pattern[绘制得到的采样模式]
plot(myStratification, mySamplingPattern)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|