Here is a small curiosity, at least for private exploration before you write up that fancy state-of-the-art impossible to understand model needed for that paper.

The idea is ridiculously simple and obvious in retrospect. With a sufficiently small kernel width, a local polynomial smooth collapses (degenerates?) to a line plot of category means.
It's something I keep re-discovering and somehow forgetting. Posting it may make me remember more easily.
You could even suppress the line if you felt queasy about the connection.
Naturally there are many other ways of getting the same plot, but this one is more amusing than most.
Code:
. sysuse auto, clear (1978 Automobile Data) . lpoly mpg rep78, bw(0.5) lineopts(recast(connected)) kernel(biweight) at(rep78)
The idea is ridiculously simple and obvious in retrospect. With a sufficiently small kernel width, a local polynomial smooth collapses (degenerates?) to a line plot of category means.
It's something I keep re-discovering and somehow forgetting. Posting it may make me remember more easily.
You could even suppress the line if you felt queasy about the connection.
Naturally there are many other ways of getting the same plot, but this one is more amusing than most.
Comment