Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Creating extra observations within clusters of panel data
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Creating extra observations within clusters of panel data
Date
Wed, 28 Mar 2012 18:38:14 +0100
<>
. help expand
bysort voter : gen toexpand = _n == _N
expand 2 if toexpand
Nick
On Wed, Mar 28, 2012 at 6:28 PM, Peter Grand <[email protected]> wrote:
> How can I create extra observations within clusters? E.g. an existing data-set with vote-choices `nested in' voters (i.e. a data set in long format), say 5 choices for each voter. How can I create a 6th vote-choice for each voter? (Could be an observation with only missing values or a copy of an existing choice-alternative).
*
* 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/