I've occasionally seen people do something like the following. Let's say we have a survey battery with k questions, for instance an evaluation of red jelly beans, an evaluation of green jelly beans, etc. Then we have another battery of related questions, such as an evaluation of the color red, green, and so forth. The data might look like this:
id | y1 | y2 | y3 | x1 | x2 | x3 |
---|---|---|---|---|---|---|
1 | 10 | 9 | 5 | 6 | 10 | 5 |
2 | 9 | 5 | 10 | 0 | 10 | 5 |
The data is then 'stacked', so that for each respondent there are k rows:
id | y | x |
---|---|---|
1 | 10 | 6 |
1 | 9 | 10 |
1 | 5 | 5 |
2 | 9 | 0 |
2 | 5 | 10 |
2 | 10 | 5 |
Finally, a model such as OLS is fitted, with y as the dependent variable and x as the independent variable. Most likely there are several independent variables, and they may have been constructed in more complicated ways.
I'm trying to understand whether this is a sensible thing to do, and what issues might arise. It feels a bit fishy: observations are not independent (there are k observations for each respondent, and n (the number of respondents) observations for each type of jelly bean). A model with mixed effects would seem reasonable, as suggested in answers to similar questions here and here.
If, however, the analysis was performed as described, what should I be cautious about when interpreting the results?