Dear Statalist users,
I am using IPW method to estimate average causal effect of a binary exposure. I am interested in comparing the kernel density of propensity score of the exposed/unexposed in unweighted and IPW weighted space. Plotting the kernel density in the weighted space involves specifying the weight option.
STATA documentation for "kdensity — Univariate kernel density estimation" states that fweights, aweights, and iweights are allowed. However, in my understanding, IPW is a pweight, so none of the allowed weights works?
My questions are:
Qunyan
I am using IPW method to estimate average causal effect of a binary exposure. I am interested in comparing the kernel density of propensity score of the exposed/unexposed in unweighted and IPW weighted space. Plotting the kernel density in the weighted space involves specifying the weight option.
STATA documentation for "kdensity — Univariate kernel density estimation" states that fweights, aweights, and iweights are allowed. However, in my understanding, IPW is a pweight, so none of the allowed weights works?
My questions are:
- Is IPW a pweight? If it is, how to incorporate IPW in plotting kdensity when pweights are not allowed.
- Maybe IPW is an aweight? Why?
Qunyan
Comment