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
Managing time factor in repeated-measures ANOVAHello, I'm analysing data from a protocol which in fact works under the same structure as described …
How to regress with seasonality dummy variablesExcuse my perhaps dumb question, however I have a dataset consisting of daily crime date and weather…
Inserting blank rows at specific observations in datasetI am trying to manipulate a text (.tex) document (a multiple-choice exam) in Stata, which I realize …
Error when using medsem command in simultaneous group SEM estimationHi all, I am running a between groups SEM with multiple mediators. In one group there is a signific…
How to open codebook file (.cdb)?I downloaded a dataset, which includes .cdb file. How to open it? …
Subscribe to:
Post Comments (Atom)
0 Response to ritest command
Post a Comment