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
Piecewise Regression with a median as a knotDear Stata Users My data is in panle format (firm, time). I need to estimate piesewise linear regre…
Shaded area xtline graphDear Statalisters, Currently I am working on a panel dataset where my probit model predicts either …
Benchmarking Stata to Test Speed Across Computers and VersionsAfter helping my son upgrade his gaming machine, I decided it was time to upgrade my 8-year old desk…
Saving multiple Excel files as Stata filesIn "C:\Users\budug\OneDrive\Documents\School\Projects ", I have a few Excel files, namely data_2004,…
Loop to open, keep variables, and join different filesHello, I am struggling with the following task that already kept me bugging for hours. This is the…
Subscribe to:
Post Comments (Atom)
0 Response to ritest command
Post a Comment