Hello!
I am using the margins command with pwcompare. Here is my code:
regress y i.t##i.c
margins t, pwcompare(effect)
I am trying to write code that will store the p-value as a scalar for each simulation that I run. When I use the return list command after margins, I cannot see where the p-value is stored. When I try use scalar pval = r(p) or scalar pval = r(pw_p), the scalar is empty. In the output of the margins command, I can see the p-value, I just don't know how to extract it into a scalar.
Thank you in advance!
I am using the margins command with pwcompare. Here is my code:
regress y i.t##i.c
margins t, pwcompare(effect)
I am trying to write code that will store the p-value as a scalar for each simulation that I run. When I use the return list command after margins, I cannot see where the p-value is stored. When I try use scalar pval = r(p) or scalar pval = r(pw_p), the scalar is empty. In the output of the margins command, I can see the p-value, I just don't know how to extract it into a scalar.
Thank you in advance!
Comment