Hi,
I am a doctoral student in the economics domain. I am facing some issues with respect to ritest command. The syntax for the command is :
ritest resampvar exp_list , options : command
With a typical example given below for a regression regress testscore treatment age:
ritest treatment _b [ treatment ] , cluster ( class ) strata ( school ) : regress testscore treatment age
The issue that I am facing here is that my 'treatment' variable is formed by interaction of two other variables ,say, a and b. so in place of treatment variable I want to put something like 'a#b' , as I am interested in beta of 'a#b'. However, I only want to randomize only one out of a and b at a time.
So, in effect, I am trying to check for something like this:
ritest a _b [ a#b ] , cluster ( class ) strata ( school ) : regress testscore a#b age
However, when I enter such a command it gives an error that there is an error in expression and a#b is invalid name.
Both a and b are dummy variables.
It would be really helpful if someone could suggest a way to enter these arguments. Thank you.
Related Posts with ritest command
Count unique appearance of values across multiple variables in wide formatHello! It has been a while since I have used Stata and I need a bit of help. I have a wide dataset…
converting "None"(python) to "" (Stata).Hi , manipulating a list in python I ended up with the following tuple, which I need to send to sta…
Adjacency matrix大家好: 如何使用统计码构建中国各省的(0,1 )空间邻接矩阵 …
Generating IDsDear all, Suppose I have the following dataset Code: clear input var1 var2 1 1 1 2 1 3 1 4 2 1 2 …
Interpretation of a Regression OutputDear experts, I would like to kindly ask for your help in the interpretation of a regression output…
Subscribe to:
Post Comments (Atom)
0 Response to ritest command
Post a Comment