Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Generating Tables


From   "Michele Favre M." <[email protected]>
To   [email protected]
Subject   RE: st: Generating Tables
Date   Wed, 22 Jun 2005 12:29:15 -0400

Upss!... I send a table and it doesn't appear in my last mail... so I'm
gonna correct it...
Hi, I'm gonna try to be more clearer...
The finished product I need is something like this:
Density/ Salary	0-150	150-250	250-500	+500
0.1
0.2
0.3
so I want to know if there is a command that shows me this table with all
the answers, because it takes too much time to do it manually.

Thanks!

-----Mensaje original-----
De: [email protected]
[mailto:[email protected]]En nombre de Daniel Egan
Enviado el: Miércoles, 22 de Junio de 2005 11:33
Para: [email protected]
Asunto: Re: st: Generating Tables

Hi Michele,
If you mean for each of the variables you want to create specific
intervals, and then put tabulations by interval for each variables
into a table, you will have to hand code those intervals, (unless the
are common across variables).

If you want a table of statistics by intervals of salary, then the
code below should work.

*non-entity specific
gen salcat=.
replace salcat=1 if salary<=100
replace salcat=2 if salary>100 & salary<=500
replace salcat=3 if salary>500
lab define salcatv 1 "<=100" 2 "100-500" 3 "500+"
statsby (.......), by(salcat)

Can you be any clearer about what the finished product should be?



On 6/22/05, Michele Favre M. <[email protected]> wrote:
>
>
>
> Hi,
>
> I have a panel data, one observation is the salary, and I want to create a
> table with intervals for the salary and other variables, for example 0-100
> 101-500 and so on... I want to know if is there a way to obtain the
complete
> table or I have to extract each observation and make the table for my
self?
>
>
>
>
>
> Thanks,
>
>
>
> Michele

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index