# NOT RUN {
# Example
heritability <- seq(0,1, by=0.1)
target_sizes <- sort(c(0.30, 0.25, 0.20, 0.15, 0.05, 0.01))
AF_h <- AFfunction(Prevalence=0.5, Heritability = heritability,
Target = target_sizes, Intervention = 1,
compare="Target", xaxis = "Heritability",
ylim = c(0,0.3), cex = 1.6)
AF_h
# }
Run the code above in your browser using DataLab