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

 From Holly Kosiewicz <[email protected]> To <[email protected]> Subject RE: st: RE: RE: RE: RE: distribution curve with svy Date Wed, 9 Sep 2009 08:02:57 -0400

```Steve, Nick, and Martin,

I figured it out - I typed two equal signs between fweights and my weights. Sorry!

Thanks for bearing with me!

Best,
Holly

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, September 08, 2009 4:16 PM
To: [email protected]
Subject: Re: st: RE: RE: RE: RE: distribution curve with svy

Holly,

To show us exactly what you typed (and what Stata reported), paste
your commands and error message directly from the Stata log or results

The FAQ suggest that if you have a strange error, you try to reproduce
it with a standard data set. In Stata Version 10, I just ran the
following with no errors.  How about you?

**********************************************
sysuse auto,clear
cumul mpg if foreign==1 [fweight=rep78], gen(cmpg)
***********************************************
-Steve

On Tue, Sep 8, 2009 at 3:20 PM, Holly Kosiewicz<[email protected]> wrote:
> Hi Steve,
>
> My weights are integers.
>
> Holly
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Tuesday, September 08, 2009 3:18 PM
> To: [email protected]
> Subject: Re: st: RE: RE: RE: RE: distribution curve with svy
>
> --
> 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<[email protected]>
> 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:[email protected]]
>> Sent: Tuesday, September 08, 2009 2:42 PM
>> To: [email protected]
>> Subject: st: RE: RE: RE: distribution curve with svy
>>
>>
>> <>
>> No blank after -gen-! Just " gen(incdrop)"
>>
>>
>> HTH
>> Martin
>>
>>
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On Behalf Of Holly
> Kosiewicz
>> Sent: Dienstag, 8. September 2009 20:28
>> To: [email protected]
>> 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
> [email protected]
> 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/
>
>
>
> *
> *   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/
>

--
Steven Samuels
[email protected]
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/

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