Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
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/