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

  • PEP proposal optparse
    ... options the developer has to specify it in each add_optioncall. ... help = 'Top level dir of previous release for regression ... to store the results tarball', ...
    (comp.lang.python)
  • 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: How to calculate OR from estimated coefficients of a multinomial log regression?
    ... log regression model. ... I'm not very well versed in Stata, but I suspect you're using the mlogit procedure, right? ... That seems a bit odd to me, because Expin a logistic regression is usually described as giving the odds ratio. ... I know that some epidemiology books when discussing case-control studies give the formula for the odds ratio /), but call the result a relative risk (presumably because in a case-control study, the OR provides a good estimate of the RR). ...
    (sci.stat.math)
  • Re: How to calculate OR from estimated coefficients of a multinomial log regression?
    ... regression (by use of STATA). ... log regression model. ... usually described as giving the odds ratio. ... The values in the RRR (relative-risk reduction) column of the Stata ...
    (sci.stat.math)

Loading