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

Abortion-related deaths with no abortion indicator in the data #1

Open
jarathomas opened this issue Jun 17, 2021 · 0 comments
Open

Comments

@jarathomas
Copy link
Contributor

In probbase

Pr(abortion-related death | i310o) = 0.00001

note: i310o is a parent item to the abortion indicators i334o and i335o

Potential fix:

Pr(abortion-related deaths | i310o = 1) = 0

where i310o is

"Please confirm: When she died, she was NEITHER pregnant NOR had recently been pregnant NOR had recently delivered when she died - is that right?"

R code would be something like

sci.new <- probbaseV5
sci.new[1, 3] <- "Customized with abortion fix"
# update sci to make P(b0901 | i310) = 0
#                                 P(b0902 | i310) = 0
sci.new[which(sci.new[,1] == "i310o"), "b_0901"] <- "N"
sci.new[which(sci.new[,1] == "i310o"), "b_0902"] <- "N"
fit <- codeVA(..., sci = sci.new)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant