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%.
Collect recode problemHi I am working with the new table and collect command in STATA 17. After I recode levels of a dimen…
Problem with parallel: parallelize a loopHello to all, I am not very strong in STATA but I wrote a program. I wanted to parallelize a loop. B…
How to evaluate the following hypothesizes?Hello all! I am currently working on a research project and I have a dataset of bankrupt and non-ba…
Problem with parallelHello to all, I am not very strong in STATA but I wrote a program. I wanted to parallelize a loop. B…
Optimal lags and Error-correction modelGood morning everyone; I want to perform a cointegration with the Error correction model. Everythi…
Subscribe to:
Post Comments (Atom)
0 Response to Testing if the difference between two rates is more than 5%.
Post a Comment