Hi, I am trying to make forest plots using the ipdforest command in a dataset with and one without multiple imputed data. I got two different errors:
- in the non mi dataset, Stata reports:
'Warning: Binary exposure variable arm_original used
cluster variable trialnumf cannot be a string variable
use 'encode' and re-run regression model
not possible with string variable'
the variable is actually numeric, not string. (If it was a string variable I wouldn't have been able to run the xtmixed command as well).
-in the mi dataset, Stata requires the esample() option in the xtmixed estimation to be used, I have no idea how to add this option in the mi estimate command.
The exmixed command is defined as: xtmixed diff_pain arm_original pain0100 i.trialnum, || trialnumf:arm_original, nocons
the ipdforest is defined as: arm_original as expoure variable, fe: pain0100 i.trialnum, fets: trialnumf
The only instructions that I found on how to use the ipdforest command were from the paper from E. Kontopantelis and I couldn't find any solution there.
If anyone could help me I would be very thankful.
Related Posts with ipdforest command errors
Forloops in panel data - am I indexing incorrectly and using 'if' statements correctly?I am trying to use a loop in stata to achieve the following: My example data is below, but a brief …
using "program" command and applying the "program" createdHello, I created this program, which I am trying to apply in the code later: program fixK renvars …
missing value for string type and missing value for numeric typeHi , I'm now trying to replace the two conditions. If the variable is the string, replace var ==" OR…
Help in generating a variable based on certain conditionDear All I want to create a disability identifier based on the following criteria those who respon…
Forloops in panel data - am I indexing incorrectly?I am trying to use a loop in stata to achieve the following: My example data is below, but a brief …
Subscribe to:
Post Comments (Atom)
0 Response to ipdforest command errors
Post a Comment