Dear Richard O'Keefe,
Thank you very much.
Take care.
Md
On Tue, Aug 10, 2021 at 8:33 AM Richard O'Keefe wrote:
> If you want to look at each digit, you should take a step back and
> think about what the
> Whipple index is actually doing. Basically, the model underlying the
> Whipple index i
If you want to look at each digit, you should take a step back and
think about what the
Whipple index is actually doing. Basically, the model underlying the
Whipple index is
that Pr(age = xy) = Pr(age = x*)Pr(age = *y) if there is no age
heaping. Or rather,
since the age is restricted to 23..62 (
Here is my hasty attempt last night checked in the light of morning.
It seems to return the correct extreme values and contains an example.
Jim
On Mon, Aug 9, 2021 at 10:50 PM Md. Moyazzem Hossain
wrote:
>
> Dear Jim,
>
> Thank you very much for your kind help.
>
> Take care.
>
> Md
>
> On Mon,
Dear Jim,
Thank you very much for your kind help.
Take care.
Md
On Mon, Aug 9, 2021 at 1:17 PM Jim Lemon wrote:
> And if you really don't like programming:
>
> whipple_index<-function(x,td=c(0,5)) {
> wi<-rep(NA,11)
> names(wi)<-c(paste0("wi",0:9),"O/all")
> for(i in 0:9) {
> ttd<-which(
And if you really don't like programming:
whipple_index<-function(x,td=c(0,5)) {
wi<-rep(NA,11)
names(wi)<-c(paste0("wi",0:9),"O/all")
for(i in 0:9) {
ttd<-which((x %% 10) %in% i)
wi[i+1]<-length(ttd) * 100/length(x)
}
ttd<-which((x %% 10) %in% td)
wi[11]<-length(ttd) * 100/(length(x)/le
5: isoband(0.2.4 -> 0.2.5) [CRAN]
> > 6: utf8 (1.2.1 -> 1.2.2) [CRAN]
> > 7: cli(3.0.0 -> 3.0.1) [CRAN]
> > 8: ggplot2(3.3.3 -> 3.3.5) [CRAN]
> > 9: pillar (1.6.1 -> 1.6.2) [CRAN]
> > 10: tibble (3.1.2 -> 3.1.3) [CRAN]
> > 11: dplyr (1.0
Dear Greg,
Thank you very much for your suggestion. I will try it and follow your
advice.
Actually, I want to find out the index for each digit like 0, 1, ..., 9.
Thanks in advance. Take care.
Md
On Mon, Aug 9, 2021 at 12:05 PM Greg Minshall wrote:
> Md,
>
> if this is what you are looking
Md,
if this is what you are looking for:
https://en.wikipedia.org/wiki/Whipple%27s_index
then, the article says the algorithm is
The index score is obtained by summing the number of persons in the age
range 23 and 62 inclusive, who report ages ending in 0 and 5, dividing
that sum b
.7) [CRAN]
> 12: Rcpp (1.0.6 -> 1.0.7) [CRAN]
> 13: curl (4.3.1 -> 4.3.2) [CRAN]
> 14: cpp11 (0.2.7 -> 0.3.1) [CRAN]
>
> In your case, if you selected All, what exactly did you expect?
>
>
> -Original Message-
> From: R-help On Behalf Of Md.
On Behalf Of Md. Moyazzem Hossain
Sent: Sunday, August 8, 2021 5:25 PM
To: r-help@r-project.org
Subject: [R] Calculation of Age heaping
Dear R-expert,
I hope that you are doing well.
I am interested to calculate the age heaping for each digit (0,1,...,9) based
on my data set. However, when I ru
Dear R-expert,
I hope that you are doing well.
I am interested to calculate the age heaping for each digit (0,1,...,9)
based on my data set. However, when I run the R code, I got the following
errors. Please help me in this regard.
##
library(remotes)
inst
11 matches
Mail list logo