A(H1N1)v immunity in the Finnish population: Difference between revisions

From Opasnet
Jump to navigation Jump to search
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{variable|moderator=Teemu R|stub=Yes}}
{{variable|moderator=Teemu R|stub=Yes}}
[[Category:Code under inspection]]


== Scope ==
== Scope ==
Line 30: Line 31:


=== Formula ===
=== Formula ===
*P(immune) = P(vaccinated or base_immunity)
**Since both events are totally independent of each other: P(immune) = 1 - P(not vaccinated) * P(no base_immunity)


<rcode>
<rcode>
Line 48: Line 52:
#op_baseWrite("opasnet_base", imm[,c(1,5)])
#op_baseWrite("opasnet_base", imm[,c(1,5)])


# Total immunity P(imm) = P(vac) or P(base_imm)
# Total immunity P(imm) = P(vac or base_imm)


imm <- function(ibimm = op_baseGetData("opasnet_base", "Op_en4943", series_id = 994)[,-1],  
imm <- function(ibimm = op_baseGetData("opasnet_base", "Op_en4943", series_id = 994)[,-1],  
Line 56: Line 60:
out <- merge(ibimm, ivac_cov)
out <- merge(ibimm, ivac_cov)
out <- model.frame(I(1 - (1 - ibimm) * (1 - ivac_cov)) ~., data = out)
out <- model.frame(I(1 - (1 - ibimm) * (1 - ivac_cov)) ~., data = out)
colnames(out)[1] <- "Result"
return(out)
return(out)
}
}


imm()
imm()
#op_baseWrite("opasnet_base", imm())
</rcode>
</rcode>



Latest revision as of 10:32, 26 August 2013

Scope

What was the immunity to this virus before the 2009 pandemic in Finland?

Definition

Data

Immunity due to infections related to the early 1900s Spanish flu[1]
Age group %-immune
65-79 15-20
80-89 57
90-100 96

Dependencies

Unit

Formula

  • P(immune) = P(vaccinated or base_immunity)
    • Since both events are totally independent of each other: P(immune) = 1 - P(not vaccinated) * P(no base_immunity)

+ Show code

Result

See also

Assessment of the health impacts of H1N1 vaccination

Keywords

References

Related files

<mfanonymousfilelist></mfanonymousfilelist>