Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: RE: RE: RE: distribution curve with svy


From   sjsamuels@gmail.com
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: RE: RE: RE: distribution curve with svy
Date   Tue, 8 Sep 2009 15:18:29 -0400

--
Frequency weights (fweights)  must be integers, but your survey
weights probably are not in general  To convert the survey weights to
proportional frequency weights equivalent to two decimal places (which
should be more than enough):

gen fwt_new =round(100*pwgt,1)

and use that for your fweight.

I
-Steve

On Tue, Sep 8, 2009 at 2:45 PM, Holly Kosiewicz<HKosiewicz@epe.org> wrote:
> I know Stata is a bit finicky at times, but I just eliminated the space and Stata is still telling me I am using invalid syntax. The space is not the problem.
>
> -----Original Message-----
> From: Martin Weiss [mailto:martin.weiss1@gmx.de]
> Sent: Tuesday, September 08, 2009 2:42 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: RE: RE: RE: distribution curve with svy
>
>
> <>
> No blank after -gen-! Just " gen(incdrop)"
>
>
> HTH
> Martin
>
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Holly Kosiewicz
> Sent: Dienstag, 8. September 2009 20:28
> To: statalist@hsphsun2.harvard.edu
> Subject: st: RE: RE: distribution curve with svy
>
> Hi Martin,
>
> Thanks very much for your help. It seems as though this command may work.
> Unfortunately, when I type "cumul pincp if dropout==1 [fweight=pwgpt], gen
> (incdrop)", stata tells me I am using an invalid syntax. It seems as though
> I am following the syntax given in the help window for cumul so I can't tell
> where Stata is finding the error.
>
> Any thoughts?

-- 
Steven Samuels
sjsamuels@gmail.com
18 Cantine's Island
Saugerties NY 12477
USA
845-246-0774
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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