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

R语言 vacem包 w.matrix()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 14:21:14 | 显示全部楼层 |阅读模式
w.matrix(vacem)
w.matrix()所属R语言包:vacem

                                        Creates a weight matrix from (1) immunization information for a set...
                                         从(1)免疫为一组的信息创建一个权重矩阵...

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

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

Creates a weight matrix from (1) immunization information for a set of individuals, e.g. observations derived from a Demographic and Health Survey (DHS), (2) a set of vaccination activity descriptions,
从(1)免疫一组个体的信息,例如,创建一个权重矩阵来自人口统计和健康调查(DHS),(2)疫苗接种活动说明一组的意见,


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


w.matrix(obs, activities, cdf.fun, ...)



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

参数:obs
a data frame with one row per observation and columns for date of observation and age of individual on that date; <i>Note: all ages should be in months</i>
一个数据框,观察每行和列于该日的日期的观察和个人的年龄<i>请注意:所有的年龄应该是在几个月</ I>


参数:activities
a data frame with one row per activity and columns providing the activity's date and the @c is.SIA flag indicating whether the activity is a Supplemental Immunization Activity (SIA) or routine vaccination.
活动提供活动的日期和@ C is.SIA标志,表示该活动是否是一个补充免疫活动(SIA)或常规免疫接种和列一列,每一个数据框。


参数:cdf.fun
a cumulative distribution function (CDF) used to calculate the probability of routine vaccination during each activity as a function of age, e.g. @code constant.post.9mo .
用于计算每个活动期间的常规疫苗接种的概率作为年龄的函数的累积分布函数(CDF),例如@代码constant.post.9mo。


参数:...
additional arguments to the @p cdf.fun, e.g. @c lambda </table>
其他参数@ P cdf.fun,例如@ C的lambda </ TABLE>


Details

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

The @c w.matrix function loops through all the provided activities and determines weights for all observations.  These weights give the probability of an individual having the "opportunity" to be vaccinated
@ C w.matrix函数遍历提供的所有活动,并确定所有观测值的权重。这些权重给个人进行免疫接种的“机会”的概率


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

a matrix with one row per observation and one column per activity; matrix cells contain an "opportunity" weight which is 0 for SIA campaigns and calculated as using the @p cdf.fun for routine vaccination activities
一个矩阵,观察每行一列每项活动;基质单元中含有的“机会”权重为0 SIA活动和计算使用的的@ P cdf.fun为常规免疫接种活动

@see nine.month.pointmass
@见nine.month.pointmass


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

For all Supplemental Immunization Activities (SIAs), i.e. campaigns, the routine vaccination opportunity weight defaults to zero (0).
对于所有补充免疫活动(SIAS),即宣传,常规免疫接种的机会,重量默认值为零(0)。

For each routine vaccination activity, the opportunity weight is based on the individual's age at the start of the activity and the length of exposure to that year's activity (12 months most years, but truncated in the survey year).  Specifically, the weight is calculated as: @f[ cdf.fun( xij + lj ) - cdf.fun( xij ) @f] where @c xij is the age of individual @c i at the start of year @c j and @c lj is the length of exposure to routine vaccination in year @c j.
对于每个常规疫苗接种活动,机会重量是根据个人的年龄在活动的开始和暴露于该年度活动的长度(12个月大多数年,但在调查年度截断)。具体来说,重量的计算方法为:F [cdf.fun(XIJ + LJ) -  cdf.fun(XIJ)_AT_ F],其中@ C XIJ年开始的年龄是个人@词@ CJ和@&#199; LJ是在今年@ C J暴露于常规免疫接种的长度。

For length of the exposure to the routine vaccination, @c lj, there are three possible cases: @li a. if survey date is before activity year, then the individual is not "exposed" to this routine vaccination and hence @f$ lj = 0 months @f$  @li b. if survey date is during activity year, then the individual is "exposed" only up until the observation date and hence @f$ lj = (obs$date - activities$date) @f$  @li c. if survey date is after activity year, then the individual is "exposed" to this routine vaccination for the entire year
对于曝光的常规免疫接种的长度,@ C LJ,有三种可能的情况:@李一。如果调查日期是活动前的一年,那么个人是不是“暴露”这个常规免疫接种,因此@ F $ LJ = 0 @ F $ @李B。调查日期是今年活动期间,个人被“曝光”,最多只,直到观察日,因此@ F $ LJ =(OBS日 - 活动日期)@ F $ @李才。调查日期是今年活动后,个别是“裸露”这全年的常规免疫接种


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

For routine vaccinations, the date provided (i.e. @p activities$date) is used as start of the activity year and hence is typically given
对于常规疫苗接种,日期(即@ P活动$日期),被用作活性年开始,因此通常是给出

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-27 18:28 , Processed in 0.023880 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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