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

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

[复制链接]
发表于 2012-9-30 09:14:10 | 显示全部楼层 |阅读模式
simStructure(simPopulation)
simStructure()所属R语言包:simPopulation

                                         Simulate the household structure of population data
                                         模拟的家庭结构,人口数据。

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

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

Simulate basic categorical variables that define the household structure  (typically household ID, age and gender) of population data by resampling  from survey data.
模拟基本分类变量定义的家庭结构,人口数据重新取样调查数据(通常是家庭ID,年龄,性别)。


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


simStructure(dataS, hid = "db030", w = "db090",
             hsize = NULL, strata = "db040", pid = NULL,
             additional = c("age", "rb090"),
             method = c("direct", "multinom", "distribution"),
             keep = TRUE, seed)



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

参数:dataS
a data.frame containing household survey data.
data.frame包含家庭调查数据。


参数:hid
a character string specifying the column of dataS that  contains the household ID.
一个字符串指定列的dataS包含家庭ID。


参数:w
a character string specifying the column of dataS that  contains the (household) sample weights, which are used as probability  weights for resampling.
指定dataS的列的字符字符串包含(户)的样本权重,这是用来作为概率加权重采样。


参数:hsize
an optional character string specifying a column of  dataS that contains the household size.  If NULL, the  household sizes are computed.
一个可选的字符串,指定列的dataS包含家庭大小。如果NULL,住户家庭人数计算。


参数:strata
a character string specifying the column of dataS that  define strata.  Note that this is currently a required argument and only  one stratification variable is supported.
一个字符串指定列的dataS定义阶层。请注意,这是目前一个必要的参数,并支持只有一个分层变量。


参数:pid
an optional character string specifying a column of dataS  that contains the personal ID.
一个可选的字符串指定一列dataS,包含个人ID。


参数:additional
a character vector specifying additional categorical  variables of dataS that define the household structure, typically  age and gender.
指定额外的dataS,定义家庭结构,通常是年龄和性别分类变量的字符向量。


参数:method
a character string specifying the method to be used for  simulating the household sizes.  Accepted values are "direct"  (estimation of the population totals for each combination of stratum and  household size using the Horvitz-Thompson estimator), "multinom"  (estimation of the conditional probabilities within the strata using a  multinomial log-linear model and random draws from the resulting  distributions), or "distribution" (random draws from the observed  conditional distributions within the strata).
一个字符的字符串指定的方法被用于模拟家庭大小。可接受的值是"direct"(估计的人口总数为各阶层和家庭规模相结合的霍维茨 - 汤普森估计),"multinom"(估计的条件概率的地层内使用多项式对数线性从分布模型和随机抽取),或"distribution"(随机从所观察到的条件分布的地层内)。


参数:keep
a logical indicating whether the original IDs of the  corresponding households in the underlying sample should be stored as a  variable in the resulting population data.  If TRUE, the  corresponding column name is given by hid with postfix  "Sample".
逻辑指示是否所得人口数据中的变量应该存储为相应的底层样品中的住户的原始ID。如果TRUE,相应的列名hid后缀"Sample"。


参数:seed
optional; an integer value to be used as the seed of the random  number generator, or an integer vector containing the state of the random  number generator to be restored.
可选的,一个整数的值被用作种子的随机数发生器,或一个整数矢量包含随机数发生器的状态,以被恢复。


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

A data.frame containing the simulated population household structure.
Adata.frame包含的模拟人口家庭结构。


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

The function sample is used, which gives results incompatible  with those from R < 2.2.0 and produces a warning the first time this happens  in a session.
的功能sample时,给出的结果不符合R <2.2.0和第一时间的推移,这种情况发生在一个会话中会产生一个警告。


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


Andreas Alfons and Stefan Kraft



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

simCategorical, simContinuous,  simComponents, simEUSILC
simCategorical,simContinuous,simComponents,simEUSILC


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


set.seed(1234)  # for reproducibility[可重复性]
data(eusilcS)   # load sample data[加载示例数据]
eusilcP <- simStructure(eusilcS)
summary(eusilcP)

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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