get.prob.vacc(vacem)
get.prob.vacc()所属R语言包:vacem
Calculates the vaccination probability for all individuals in a group...
计算的疫苗接种概率为一组的每一个人都...
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Calculates the vaccination probability for all individuals in a group of observations and under a described set of vaccination activities
在一组的意见,并根据描述的疫苗接种活动,为所有个人的概率计算的疫苗接种
用法----------Usage----------
get.prob.vacc(obs, camps, trans.rho, alpha, z, w, cdf.fun, ...)
参数----------Arguments----------
参数:obs
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)
参数:trans.rho
the log-odds (aka logit) of @c rho, the proportion of the population (scalar) that can be vaccinated; see note above
的log的赔率(又名罗吉特)@ C RHO,可以接种疫苗的人口(标量)的比例;见上文附注
参数: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表示随机的效率;见上文附注
参数:z
the eligibility matrix for each individual/campaign pairing, i.e. @codez[i,j] = 1 if this individual @c i is eligible for campaign @c j, otherwise @codez[i,j] = 0; <i>Note: if @c z is @c NULL, then the eligibilty matrix is calculated from @p obs and @p camps parameters using @code z.matrix function.</i>
每一个人的资格矩阵/运动配对,即@ codez [I,J] = 1,如果这个人@词是活动@ CJ资格,否则@ codez [I,J] = 0; <i>请注意:如果锆石是C NULL,,然后eligibilty矩阵计算@ P OBS和@ P营地的参数,使用@的代码z.matrix的函数。</ I>
参数:w
the weight matrix for each individual/campaign pairing, i.e. @code w[i,k] gives the probability of individual @c i receiving a routine vaccination in year @c k <i>Note: if @c w is @c NULL, then the weight matrix is calculated from @p obs, @p camps, @p cdf.fun and @p ... parameters using @code w.matrix function.</i>
每一个人/运动配对的权重矩阵,即@代码W [I,K]给出的概率的个别@词在今年@ CK <i>请注意接收常规免疫接种:@ CW @ C NULL,那么权重矩阵计算@ P OBS,@ P营地,@ P cdf.fun和@ P ...参数@的代码w.matrix的函数。</ I>
参数:cdf.fun
a cumulative distribution function (CDF) used to calculate the probability of routine vaccination based upon age, e.g. @code constant.post.9mo . <i>Note: this parameter is only required if the weight matrix, @p w, is <u>not</u> provided.</i>
的累积分布函数(CDF)用于计算常规疫苗接种的概率根据年龄,例如@代码constant.post.9mo。 <i>注意:此参数只需要@ PW,权重矩阵,是<u> </ U> </ I>
参数:...
any additional arguments to the @p cdf.fun, e.g. @c lambda <i>Note: this parameter is only required if the weight matrix, @p w, is not provided.</i> </table>
@ P cdf.fun,例如任何其他参数@ C的lambda <i>请注意:此参数仅在需要权重矩阵,@ PW,不提供。</ I> </ TABLE>
Details
详细信息----------Details----------
The @c get.prob.vacc function simply applies the @code g function to all the entries in observations data frame, @p obs. The @p obs argument should contain the immunization information as derived, for example, from a Demographic and Health Survey (DHS). The @c get.prob.vacc function uses the observations and vaccination activity descriptions, @p camps, to calculate the eligibility matrix, @code z.matrix and the weight matrix @code w.matrix , if not provided. Then the vaccination probabilities are calculated by calling @c g with each individual's eligibility and weight vector as well as the relevant vaccination activity information (i.e. @p camps$N and @p camps$v), the efficiency parameter (@p alpha) and the accessibility multiplier
@ C get.prob.vacc功能只适用于@代码G功能的观测数据框,@ P OBS的所有项。得出应该包含的免疫信息的@ P OBS参数,例如,从人口统计和健康调查(DHS)。 @ C get.prob.vacc功能使用的意见和疫苗接种活动说明,@ P阵营,计算的资格矩阵,@代码z.matrix和权重矩阵代码w.matrix的,如果不提供。然后,在疫苗接种的概率是计算与每个人的资格和权重向量以及相关的疫苗接种活动信息(即@ P阵营$ N和@ p阵营$ V)的效率参数(@ p阿尔法),并在调用@ CG辅助功能倍增器
值----------Value----------
a vector containing the probability of vaccination for each individual in observations data frame, @p obs.
一个向量疫苗的概率为每个观测数据框,@ P的OB。
@see g @see z.matrix @see w.matrix @see nine.month.pointmass
@ G @ z.matrix:w.matrix:nine.month.pointmass
注意----------Note----------
The @p trans.rho argument represents the @linklogit of @c rho, i.e. @code trans.rho = log( rho / (1-rho) ) , where @c rho is the proportion of population that is accessible to any vaccination activity and @code 1-rho the inaccessible portion. It follows then that @c rho is calculated as the inverse-logit (or logistic function) of @p trans.rho, that is:
的@ P trans.rho参数表示的@ C RHO,即代码trans.rho的@ linklogit的log(ρ/(1-RHO)),@ C rho是可以访问的任何疫苗接种活动的人口比例和@ code 1-RHO人迹罕至的部分。然后,@çrho沸石作为逆罗吉特(或Logistic函数),即以@ p trans.rho的计算如下:
注意----------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)表示随机效率,即当在一个额外的接种者产生任何剂量的概率是独立的先前接收的剂量
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|