Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: expand dataset


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: expand dataset
Date   Fri, 30 Mar 2012 10:38:30 +0100

You have the right keyword, so

. search expand

points to a command with the same name.

. help expand
. expand abs_fr

But you only need to do this if commands you need don't support
frequency weights.

Nick

On Fri, Mar 30, 2012 at 10:33 AM, Nikolaos Pandis <npandis@yahoo.com> wrote:

> I was wondering how I could possibly expand the dataset below so one  row corresponds to 1 observation:
>
> values_x abs_fr rel_fr
> 0 30 0,238
> 1 51 0,405
> 2 33 0,262
> 3 10 0,079
> 4 2 0,016
>

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