I wonder if there's a command like lfit that plots a linear regression line with the intercept constrained to zero.
I could do in a few lines by estimating the line with -reg, noconstant- and then plotting it. But it would be even better if I could do it in one line. I'm teaching statistics to beginners, so I want to keep the code as simple as possible.
I could do in a few lines by estimating the line with -reg, noconstant- and then plotting it. But it would be even better if I could do it in one line. I'm teaching statistics to beginners, so I want to keep the code as simple as possible.
Comment