get.small.tiles(sperrorest)
get.small.tiles()所属R语言包:sperrorest
Identify small partitions that need to be fixed.
确定需要固定的小分区。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
get.small.tiles identifies partitions (tiles) that are too small according to some defined criterion / criteria (minimum number of samples in tile and/or minimum fraction of entire dataset).
get.small.tiles标识太小,根据一些明确的标准/标准(最小样本数瓷砖和/或整个数据集的最低分数)的分区(地砖)。
用法----------Usage----------
get.small.tiles(tile, min.n = NULL, min.frac = 0,
ignore = c())
参数----------Arguments----------
参数:tile
factor: tile/partition names for all samples; names must be coercible to class tilename, i.e. of the form "X4:Y2" etc.
因素:瓷砖/分区的所有样本的名称,名称必须转换成类tilename,即形式的"X4:Y2"等
参数:min.n
integer (optional): minimum number of samples per partition
整数(可选):最低数量的样本,每个分区
参数:min.frac
numeric >0, <1: minimum relative size of partition as percentage of sample
数值> 0,<1:最小相对的分区大小的样品的百分比
参数:ignore
character vector: names of tiles to be ignored, i.e. to be retained even if the inclusion criteria are not met.
字符向量:瓷砖的名字被忽略,即使不符合纳入标准,即要保留。
值----------Value----------
character vector: names of tiles that are considered 'small' according to these criteria
,字符向量:姓名,瓷砖被认为是“小”,根据这些标准
参见----------See Also----------
partition.tiles, tilename
partition.tiles,tilename
实例----------Examples----------
data(ecuador) # Muenchow et al. (2012), see ?ecuador[明肖等。 (2012年),厄瓜多尔,看到了吗?]
# Rectangular partitioning without removal of small tiles:[没有拆除的小瓷砖的矩形分区:]
parti = partition.tiles(ecuador, nsplit = c(10,10), reassign = FALSE)
summary(parti)
length(parti[[1]])
# Same in factor format for the application of get.small.tiles:[相同的因素格式的应用get.small.tiles的:]
parti.fac = partition.tiles(ecuador, nsplit = c(10,10), reassign = FALSE, return.factor = TRUE)
get.small.tiles(parti.fac[[1]], min.n = 20) # tiles with less than 20 samples[少于20个样本的瓷砖]
parti2 = partition.tiles(ecuador, nsplit = c(10,10), reassign = TRUE,
min.n = 20, min.frac = 0)
length(parti2[[1]]) # < length(parti[[1]])[<长度(颗粒[[1]])]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|