[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: variable data type problem
David Kantor did hit it on the head--the size of the
weight is the problem. I have tried both Austin's and
David's suggestions, but the problem appears to be
with the -tabout- command; it appears to only accept
the strict "int" definition of frequency weights (ie,
integers less than 32740).
I will try working with -aweights-, but if anyone else
has ideas, please let me know.
--- Austin Nichols <email@example.com> wrote:
> Jon Schwabish <firstname.lastname@example.org>:
> I think David Kantor identified your problem, but I
> think you should,
> in general, either round and then -recast- since
> -recast- will
> truncate (e.g. turn 3.9 into 3), or (possibly
> better) specify your
> weight as an [aweight] instead.
> input f
> recast int f, force
> input f
> replace f=round(f)
> recast long f
> On 6/18/07, David Kantor <email@example.com> wrote:
>> Try -recast long-
>> At 02:11 PM 6/18/2007, Jon Schwabish wrote:
>>> The weights appear to be
>>>integers (using the data browser) and I've tried
>>>compressing and reformatting but to no avail.
> When I
>>>try -recast int wgt-, it turns out that about 14
>>>different observations would be changed, but I
>>>tell why. (If I try -recast int wgt, force- Stata
>>>turns those observations into missings).
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
* For searches and help try: