Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_evbf() is not producing the correct indicator results #50

Open
ernestguevarra opened this issue Feb 9, 2025 · 0 comments
Open

get_evbf() is not producing the correct indicator results #50

ernestguevarra opened this issue Feb 9, 2025 · 0 comments
Assignees
Labels
bug Something isn't working refactor

Comments

@ernestguevarra
Copy link
Member

For example:

df <- within(iycfData, {
  evbf <- get_evbf(q4 = child_bf, age = calc_age_months)
})

table(df$evbf)

which produces:

  0   1 
  8 145 

when checking manually:

with(df, table(calc_age_months < 24, child_bf))

which produces:

     child_bf
          0   1 999
  FALSE   0   0   0
  TRUE    7 145   1

get_evbf() seems to be counting the one record that reports a 999 value for child_bf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working refactor
Projects
None yet
Development

No branches or pull requests

2 participants