[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Descriptive statistics as scalars
One of the main roles of -return list- is to save
your fingers leaving the keyboard.
In the manual, however, each command entry lists
such returned results. Thus [R] summarize
lists them on p.153.
> I was not aware of the "return list" function.
> I believe that will help me to capture the regression
> coefficients as well.
> > this might help:
> > . summ x(t)
> > . scalar mean_xt = r(mean)
> > . scalar std_xt = r(sd)
> > . scalar count_ = r(N)
> > for other possibilities look at "return list" after "summ" routine
> I started using stata only about a week ago and hence
> pardon me for a very basic question.
> > >
> > >I have a variable x(t)
> > >
> > >I want the following scalars for further analysis etc.
> > >mx = mean(x(t))
> > >sx = stdev(x(t))
> > >nx = count(x(t))
> > >
> > >How can I asssign these descriptive statistics to scalar variables?
> > >(I can't find anything in the manual)
* For searches and help try: