vaccinate.sample.pop(vacem)
vaccinate.sample.pop()所属R语言包:vacem
Vaccinates a sample population based on probabilities generated from the...
接种疫苗的基础上产生的概率,样本人口...
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Vaccinates a sample population based on probabilities generated from the
接种的基础上产生的概率,样本人口
用法----------Usage----------
vaccinate.sample.pop(obs, camps, rho, alpha, cdf.fun, ...)
参数----------Arguments----------
参数:obs
the synthetic population, i.e. a data frame with one row per observation and columns for @c date of observation and @c age of individual on that date; <i>Note: all ages should be in months</i>
合成的人口,即一个数据框,观察每行和列日@ C的观察和C年龄的人于该日<i>请注意:所有年龄应该是在几个月</ I>
参数:camps
a data frame with one row per activity and columns providing the activity's @c date, targeted age range (@c age.low and @c age.high), size of targeted population (@c N) and the number of vaccine doses nominally distributed (@c v)
活动提供活动的@ C日期,有针对性的年龄范围(和列一列,每一个数据框@Çage.low @ C age.high),目标人群的大小(@ C N)的数量的疫苗剂量名义上分布(CV)
参数:rho
the proportion of the population (scalar) that can be vaccinated, i.e @code1 - rho is the @e inaccessible portion of the general population.
(标量),可以接种疫苗的人口比例,即代码1 - rho是@ E无法访问部分的总人口。
参数:alpha
the vaccination efficiency parameter (scalar) for the campaign; @codealpha = -inf implies perfect efficiency, @codealpha = 0 implies random efficiency; see note above
疫苗接种效率参数(标量)的活动; codealpha =-INF意味着完美的效率,@ codealpha = 0表示随机的效率;见上文附注
参数:cdf.fun
a cumulative distribution function (CDF) used to calculate the probability of routine vaccination based upon age, e.g. @code constant.post.9mo .
的累积分布函数(CDF)用于计算常规疫苗接种的概率根据年龄,例如@代码constant.post.9mo。
参数:...
any additional arguments to the @p cdf.fun, e.g. @c lambda </table>
@ P cdf.fun,例如任何其他参数@ C的lambda </ TABLE>
Details
详细信息----------Details----------
TBD: Add details
TBD:添加详细信息
值----------Value----------
a copy of @p obs data frame with two new columns appended: @c y (vaccination status, i.e. @c 0 or @c 1) and @c p.vac (vaccination probability)
副本的的@ P OBS数据框附加了两个新的列:@ CY(疫苗接种情况,即C 0或C 1)和@ C p.vac(接种疫苗的可能性)
@see g @see z.matrix @see w.matrix @see nine.month.pointmass
@ G @ z.matrix:w.matrix:nine.month.pointmass
注意----------Note----------
The inefficiency measure @p alpha is defined as the natural log of psi, i.e. @codepsi = e^alpha. @codepsi = 0 (@codealpha = -inf) represents perfect efficiency, i.e. when every dose results in an additional vaccinee. @codepsi = 1 (@codealpha = 0) represents random efficiency, i.e. when probability of any dose resulting in an additional vaccinee is independent of receiving a dose previously
@ P字母被定义为PSI的自然对数的低效率措施,即@ codepsi = E ^阿尔法。 @ codepsi = 0(codealpha =-INF)代表完美的效率,即每剂量的额外疫苗接种的结果。 codepsi = 1(@ codealpha = 0)表示随机效率,即当在一个额外的接种者产生任何剂量的概率是独立的先前接收的剂量
实例----------Examples----------
dates <- as.Date( c( "2005-05-01", "2007-07-02", "2009-09-03" ) )
sample.obs <- make.sample.pop( N=N, age.low=0, age.high=25,
date=array(dates,dim=N) )
sample.camps <- data.frame( date=(dates - 3*DAYS.PER.MONTH),
N=(0.5*N), v=(0.5*N),
age.low=8, age.high=20, is.SIA=1 )
vaccinate.sample.pop( sample.obs, sample.camps, rho=0.9, alpha=0,
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|