Dear Stata Users and Experts,
To put it simply, I am trying to create interactions variables in Stata. I found the following way to do so:
First and most importantly, is to mention that I am doing interaction between to explanatory variable not between the original method which is dummy variable X explanatory variable. Is this actually possible?
Second of all I am creating factor variable by using "unary operator to treat as continuous". The reason to that is because when I am trying to do a simple " binary operator" I am getting the following message:
"ownership_concentration: factor variables may not contain noninteger values".
Basically, the command in Stata looks like this:
official(regulation variable)#c.ownership_concentration(variable for governance). By using only one unary operator(only for ownership), I get strange result which I cannot interpret - Could you please advise?
By using two unary operators (for both variables official and ownership) I get more logical result.

However, I was not able to understand what is the difference between two of the approaches. Do you have any idea and most importantly is this a correct way to do the test? If this is a correct way, can we say the if we end with a significant value the official variable is interacting on the ownership variable?
Thank you very much in advance for the help. It will be much appreciated.
To put it simply, I am trying to create interactions variables in Stata. I found the following way to do so:
First and most importantly, is to mention that I am doing interaction between to explanatory variable not between the original method which is dummy variable X explanatory variable. Is this actually possible?
Second of all I am creating factor variable by using "unary operator to treat as continuous". The reason to that is because when I am trying to do a simple " binary operator" I am getting the following message:
"ownership_concentration: factor variables may not contain noninteger values".
Basically, the command in Stata looks like this:
official(regulation variable)#c.ownership_concentration(variable for governance). By using only one unary operator(only for ownership), I get strange result which I cannot interpret - Could you please advise?
By using two unary operators (for both variables official and ownership) I get more logical result.
However, I was not able to understand what is the difference between two of the approaches. Do you have any idea and most importantly is this a correct way to do the test? If this is a correct way, can we say the if we end with a significant value the official variable is interacting on the ownership variable?
Thank you very much in advance for the help. It will be much appreciated.
Comment