Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: RANDOM ID GENERATORS & BACKWARD SELECTION


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: RE: RANDOM ID GENERATORS & BACKWARD SELECTION
Date   Thu, 30 Oct 2003 18:21:13 -0000 (GMT)

Alex,

Quite right. Apologies for the mix-up and thanks very much for your
solution! :-)

C.

> The subject of your e-mail suggested you wanted a random ID, but your
> e-mail asked for a consecutive ID --
>
> egen caseid=seq()
>
> will do the consecutive ID for you.
>
> Cheers
> Alex
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Clive
> Nicholas
> Sent: Wednesday, October 29, 2003 8:28 AM
> To: [email protected]
> Subject: st: RANDOM ID GENERATORS & BACKWARD SELECTION
>
>
> All,
>
> Two more queries I have:-
>
> (1) How do you tell Stata to generate a case ID variable that
> consecutively numbers all the cases in your dataset, starting with 1, 2,
> 3, ... N?
>
> (2) Can you instruct Stata to perform a backward selection procedure
> when running -xtgee-, -xtlogit- or -xtprobit-? I've failed to get it to
> so far!
>
> Yours,
> CLIVE NICHOLAS,
> Politics Building,
> School of Geography, Politics and Sociology,
> University of Newcastle-upon-Tyne,
> Newcastle-upon-Tyne,
> NE1 7RU,
> United Kingdom.
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>


Yours,
CLIVE NICHOLAS,
Politics Building,
School of Geography, Politics and Sociology,
University of Newcastle-upon-Tyne,
Newcastle-upon-Tyne,
NE1 7RU,
United Kingdom.
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index