Data _null_;
a1=pdf("binomial",60,0.5,100);
a2=1-cdf("binomial",59,0.5,100);
put a1 a2;
run;
I am trying to get a simple binomial function without having to give a option of above or below a certain number I am very lost THis is the question that I am trying to answer, I don't need the answer just some more clues on how to do it. For a particular infectious disease, 15% of non-vaccinated individuals will become infected with the disease in one year versus 5% of vaccinated individuals. Simulate a virtual randomized trial in which you vaccinate 1000 individuals with the real vaccine and 1000 individuals with a placebo vaccine and follow the groups for one year. (Hint: Generate values from random binomial functions with N=1000, p=.15 and N=1000, p=.05; then subtract). How many more infections occurred in the placebo group than in the vaccine group in this single virtual trial?
... View more