Storing the number of observations in STATA



Hello,

I am running a whole lot of regressions in STATA. Each regression has a
different number of observations. I would like to store that number
after each regression, but there does not seem to be a simple
STATA-command. Does anybody know of a way to do this?

STATA displays the number of observations when running a regression.
4193 in this case:

.. xtreg y x1 x2 x3 x4 x5, i(ccodeisic) fe
Fixed-effects (within) regression Number of obs = 4193

Unlike the regression coefficients, it does not seem to be possible to
store that number, though.

I would greatly appreciate any help with this!
Gernot

.



Relevant Pages

  • Re: Non-stationary sales data
    ... the sales of product A in store one. ... Ordinary Regression Models were developed for cross-sectional data. ... Regression Structure, ...
    (sci.stat.consult)
  • Re: Storing the number of observations in STATA
    ... I would like to store that number ... after each regression, but there does not seem to be a simple ... STATA displays the number of observations when running a regression. ... Rich ...
    (sci.stat.edu)
  • Re: Approximate solution to linear regression
    ... In similar situations, I use Partial Least Squares Regression, ... So, with that in mind, it seems to me your approximate solution is ... I'm MUCH better off re-inventing the wheel. ... A single-user corporate version of Stata is $1150.00, according to their website. ...
    (sci.stat.consult)
  • are there any example/help on random and fixed effects models for regression
    ... regression in matlab help? ... Thank you for your suggestion. ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • Re: RCU latency regression in 2.6.16-rc1
    ... >> still would have a regression... ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ...
    (Linux-Kernel)