Hi all,
I wonder if exist some way to get p-value in PSM within strata in psmatch2.
I am able to calculate p-value using a naive PSM:
But the mehod for a within strata in psmatch2.is:
Some tips??
Thanks in advance.
Rodrigo
I wonder if exist some way to get p-value in PSM within strata in psmatch2.
I am able to calculate p-value using a naive PSM:
Code:
sysuse nlsw88, clear psmatch2 married hours collgrad industry tenure , out(wage) local pval: di %6.3f = 2*ttail(`e(df_r)', abs(`r(att)'/`r(seatt)')) di "`pval'" 0.974
Code:
g att = .
g seatt = .
egen g = group(race)
levels g, local(gr)
qui foreach j of local gr {
psmatch2 married hours collgrad industry tenure if g==`j', out(wage)
replace att = r(att) if g== `j'
replace seatt = r(seatt) if g== `j'
}
sum att
Thanks in advance.
Rodrigo

Comment