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%.
xtlogit and excluding ineligible participantsHi Listers, I have collected data of people who want to join the gym at 4 regular intervals. At eac…
Dropping every ID when respondent go from "work" to "retirement"Hi In the data below the ID's is sorted in Waves (years). The Retirement variable can take 3 values…
Is there a way to use panel data rolling regressions with driscoll-Kraay standard errors?Hello to everyone in this forum, I wonder if there is a way to add Driscoll-Kraay standard errors t…
Obtain same results with regress and rifhdregHi everyone, I am trying to make a RIF regression analysis using an inequality index that uses two…
Coefplot: Displaying each level of a factor variable in one plotGreetings: I am trying to visualize the data for logistic regressions. My independent variable of i…
Subscribe to:
Post Comments (Atom)
0 Response to Testing if the difference between two rates is more than 5%.
Post a Comment