Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: ratio of part time workers


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   st: Re: ratio of part time workers
Date   Mon, 12 Jun 2006 11:31:34 -0400

You made some mistake in creating zallemps or at least it doesn't equal the sum in the second expression. You seem to be posting many messages that track back to a lack of checking your own work or using built-in help.

Michael Blasnik

----- Original Message ----- From: "peter harper" <[email protected]>
To: <[email protected]>
Sent: Monday, June 12, 2006 10:07 AM
Subject: st: ratio of part time workers



Thanks. David. I also looked at that, as I have a variable called zallemps, which is the total employment on the payroll at the establishment. But when I tried both forms of denominator I got

. gen ratioprtwrk=(zmalprta+zfemprta) / (zallemps)
(40 missing values generated)
. su ratioprtwrk
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
ratioprtwrk | 22411 .0631298 .1019029 .0002026 .8

. gen ratioprtwrk=(zmalprta+zfemprta) / ((zmalfulla+zfemfulla+zmalprta+zfemprta))
(40 missing values generated)
. su ratioprtwrk
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
ratioprtwrk | 22411 .5385854 .0624591 .3333333 .6666667

I am pondering as to why there is a difference.

*
*   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