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

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

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

                                         Cross tabulations of expected and realized population sizes
                                         交叉制表的预期,实现了人口规模

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

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

Compute contingency tables of expected (i.e., estimated) and realized (i.e.,  simulated) population sizes.  The expected values are obtained with the  Horvitz-Thompson estimator.
计算列联表(即估计),实现预期(即模拟)的人口规模。预期值的的霍维茨-Thompson估计获得。


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


spTable(dataS, dataP, select = NULL, weights = NULL)

## S3 method for class 'formula'[类formula的方法]
spTable(dataS, dataP, select, weights = NULL)



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

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


参数:dataP
a data.frame containing simulated population data.
data.frame包含模拟的人口数据。


参数:select
for the formula method, a formula specifying the variables to  be used for cross tabulation.  For the default method, an optional  character vector defining the columns of dataS and dataP to  be used.
式方法,公式中的变量指定要用于交叉制表。对于默认的方法,一个可选的字符向量定义dataS和dataP要使用的列。


参数:weights
either a numeric vector containing the (personal) sample  weights, or the name of the corresponding column of dataS (for the  default method, the name must be a character string).
无论是数字向量(个人)样本权重,或dataS(默认的方法,该名称必须是一个字符串)对应的列的名称。


Details

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

The contingency tables are computed with tableWt.
列联表计算tableWt。


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

A list of class "spTable" with the following components:
类"spTable"以下组件的列表:


参数:expected
the contingency table estimated from the survey data.
从调查数据估计的应变表。


参数:realized
the contingency table computed from the simulated population  data.
从模拟的人口数据计算的列联表。


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

The class of the argument select determines the method to be  dispatched, not the class of the first argument.
的类的说法select的决定派出的方法,而不是类的第一个参数。


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



Andreas Alfons




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

spMosaic, tableWt
spMosaic,tableWt


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


set.seed(1234)  # for reproducibility[可重复性]
data(eusilcS)   # load sample data[加载示例数据]
eusilcP <- simStructure(eusilcS)
spTable(eusilcS, eusilcP, select = ~ rb090 + db040, weights = rb050)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-24 20:01 , Processed in 0.023271 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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