I need to test if the difference between male and female program coverage rates (number treated/target pop) is more than 5%.
The null and alternative hypothesis are set as follows:
Null hypothesis: Male coverage rate – female coverage rate = ± 0.05
Alternative hypothesis: Male coverage rate – female coverage rate (not euqal to) ± 0.05
Can I use the following Stata command?
gen comp=.05
gen diff =abs(pcvg_m - pcvg_f) // pcvg=program coverage rate; m for male and f for female
prtesti target_pop diff comp
local p = r(p)
gen pval=`p’
Related Posts with Testing if the difference between two rates is more than 5%.
Group-wise value assignmentHello Statalist, I hope everyone is fine. In my event study, I have event variable (EV) contain 110…
line breaks in command -global-Dear all,How can I break line in the command -global-.I use "///" ,but I get error.My codes in dofil…
Printing out balance tableEDIT: Formatting of tables and code in this post got messed up. View my post below to see correct fo…
Rearrange panel data in STATADear all, I have several datasets I would like to merge, however, they are set up differently. What…
Change values within groups based on conditionsDear All, I have a dataset with group ID, individual ID, age, and sex of the individuals, as well a…
Subscribe to:
Post Comments (Atom)
0 Response to Testing if the difference between two rates is more than 5%.
Post a Comment