[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Patrick Sturgis" <p.sturgis@surrey.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: RE: RE: RE: copy values of matched cases |

Date |
Tue, 8 Apr 2003 19:27:56 +0100 |

Sorry, I didn't make myself very clear (wife shouting at me from bath!). I'm requesting a table of point estimates and confidence intervals using ci varlist, binomial. I want the output table to list the variables in the order I specify them in the varlist but it produces a table in which the variables appear in alphabetical/ascending order. Hope this is clearer, Patrick -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Nick Winter Sent: 08 April 2003 19:10 To: statalist Subject: st: RE: RE: RE: copy values of matched cases > -----Original Message----- > From: Patrick Sturgis [mailto:p.sturgis@surrey.ac.uk] > Sent: Tuesday, April 08, 2003 1:58 PM > To: statalist@hsphsun2.harvard.edu > Subject: st: RE: RE: copy values of matched cases > > > Many thanks to both Nicks. One other thing which is probably > very obvious > but I can't find the answer to: I want to have data files and > output in file > rather than alphabetical/numerical order. How does one specify this? > > Patrick > Not quite sure what you are asking. But here's a guess: the data are in some meaningful order before this merging operation, and you would like the data to be in that order when you are done, notwithstanding the resorting of the data to make the merge work. If that's the issue, then add the following lines before and after all the other code: . gen n=_n << sorting and merging here>> . sort n . drop n This just indexes the current sort order, then resorts at the end. Note that if the data were -sort-ed on some other variables to start, you could just re-sort- on those variables at the end, rather than creating a new variable. Nick W. * * 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/

**References**:**st: RE: RE: RE: copy values of matched cases***From:*"Nick Winter" <nwinter@policystudies.com>

- Prev by Date:
**Re: st: seriesstyle** - Next by Date:
**st: Order of variables in -ci-** - Previous by thread:
**st: RE: RE: RE: copy values of matched cases** - Next by thread:
**st: Order of variables in -ci-** - Index(es):

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