I am trying to better understand how Stata deals with the _all: option in mixed/xtmixed commands. What I specifically am looking to understand is what exactly is happening when the _all: option is followed by a continuous variable rather than the more commonly used R.identifier_variable approach. From what Clyde writes in this forum, I understand that without the R. Stata tries to fit a model with random slope specified to the variable that comes after _all:. At what level then would the slope of that variable be varying?
Let me provide an example to clarify what I am looking for. I have a dataset with multiple brands (denoted by i) and each brand has several observations across months (denoted by t). The dependent variable of interest is sales (i.e., Salesit) and the independent variable of interest is brand's monthly advertising expenditures (i.e., Advit). What model would be estimated if I run the following command?
Code:
mixed sales adv || _all: adv
Is there any document going into the detail of how the above model is estimated?
Thank you very much in advance.
0 Response to _all: in mixed models: What if it is followed by a continuous variable without the "R." part?
Post a Comment