Hi there,
I am trying to use the command rwolf to adjust the p-values of my regressions for multiple hypothesis testing.
My regressions are weighted with inverse probability weights to account for attrition. The help section of the command rwolf says that it is possible to include weights: the sintax is rwolf depvars [if] [in] [weight], indepvar(varname) [options].
I tried to include the weights, typing the following command: rwolf Y1 Y2 Y3 [pweight=myweights], indepvar(treatment) method(regress) seed(1234) controls(X1 X2) cluster(cluster_var)
When I run the command, Stata comes up with the following:
"weights not allowed
r(101)."
When I delete [pweight=myweights], everything runs well.
Can somebody explain me why I cannot use the weights?
Thank you in advance.
I am trying to use the command rwolf to adjust the p-values of my regressions for multiple hypothesis testing.
My regressions are weighted with inverse probability weights to account for attrition. The help section of the command rwolf says that it is possible to include weights: the sintax is rwolf depvars [if] [in] [weight], indepvar(varname) [options].
I tried to include the weights, typing the following command: rwolf Y1 Y2 Y3 [pweight=myweights], indepvar(treatment) method(regress) seed(1234) controls(X1 X2) cluster(cluster_var)
When I run the command, Stata comes up with the following:
"weights not allowed
r(101)."
When I delete [pweight=myweights], everything runs well.
Can somebody explain me why I cannot use the weights?
Thank you in advance.
Comment