找回密码
 注册
查看: 948|回复: 0

R语言 simFrame包 sampling()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 02:43:24 | 显示全部楼层 |阅读模式
sampling(simFrame)
sampling()所属R语言包:simFrame

                                        Random sampling
                                         随机抽样

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Functions for random sampling.
随机抽样的功能。


用法----------Usage----------


srs(N, size, replace = FALSE)

ups(N, size, prob, replace = FALSE)

brewer(prob, eps = 1e-06)

midzuno(prob, eps = 1e-06)

tille(prob, eps = 1e-06)



参数----------Arguments----------

参数:N
a non-negative integer giving the number of observations from  which to sample.
一个非负的整数,从样品给予观测值的数量。


参数:size
a non-negative integer giving the number of observations to  sample.
一个非负的整数,给予观测值的数量的样本。


参数:prob
for ups, a numeric vector giving the probability weights  (see sample).  For tille and midzuno, a vector  of inclusion probabilities (see inclusionProb).
ups,给一个数值向量的概率权重(见sample)。对于tille和midzuno,包含概率的向量(见inclusionProb)。


参数:replace
a logical indicating whether sampling should be performed  with or without replacement.
逻辑是否应进行采样或无需更换。


参数:eps
a numeric control value giving the desired accuracy.
一个数字控制值,得到所需要的精度。


Details

详细信息----------Details----------

srs and ups are wrappers for simple random sampling and  unequal probability sampling, respectively. Both functions make use of  sample.
srs和ups是包装为简单随机抽样,不等概率抽样,分别。这两个函数使用的sample。

brewer, midzuno and tille perform Brewer's, Midzuno's and  Till茅's method, respectively, for unequal probability sampling  without replacement and fixed sample size.
brewer,midzuno和tille执行布鲁尔,Midzuno的和Tillé的方法,分别,无需更换和固定样本大小不等概率抽样。


值----------Value----------

An integer vector giving the indices of the sampled observations.
的整数向量给的指数,其中采样的观测。


注意----------Note----------

brewer, midzuno and tille are faster C++ implementations  of UPbrewer, UPmidzuno and  UPtille, respectively, from package sampling.
brewer,midzuno和tille是更快的C + +实现的UPbrewer,UPmidzuno和UPtille,分别从包sampling。


(作者)----------Author(s)----------


Andreas Alfons



参考文献----------References----------

Australian Journal of Statistics, 17(3), 166-172.
of size. Annals of the Institute of Statistical Mathematics,  3(2), 99–107.
sampling without replacement. Biometrika, 83(1), 238–241.
without replacement through a splitting method. Biometrika,  85(1), 89–101.

参见----------See Also----------

"SampleControl", "TwoStageControl",  setup, inclusionProb, sample,  UPbrewer, UPmidzuno,  UPtille
"SampleControl","TwoStageControl",setup,inclusionProb,sample,UPbrewer,UPmidzuno,UPtille


实例----------Examples----------


## simple random sampling[#简单随机抽样]
# without replacement[无需更换]
srs(10, 5)
# with replacement[与更换]
srs(5, 10, replace = TRUE)

## unequal probability sampling[#不等概率抽样]
# without replacement[无需更换]
ups(10, 5, prob = 1:10)
# with replacement[与更换]
ups(5, 10, prob = 1:5, replace = TRUE)

## Brewer, Midzuno and Tille sampling[#布鲁尔,Midzuno和采样Tille]
# define inclusion probabilities[定义包含概率]
prob <- c(0.2,0.7,0.8,0.5,0.4,0.4)
# Brewer sampling[布鲁尔采样]
brewer(prob)
# Midzuno sampling[Midzuno采样]
midzuno(prob)
# Tille sampling[Tille采样]
tille(prob)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-24 06:17 , Processed in 0.023390 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表