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

Re: st: RE: RE: RE: Removing trailing letter from string


From   Ada Ma <pec187@abdn.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: RE: RE: Removing trailing letter from string
Date   Fri, 25 Feb 2005 21:21:47 +0000

There is an All Field Postcode Directory for UK.
http://census.ac.uk/cdu/Datasets/Lookup_tables/Postal/All_Fields_Postcode_Directory/

However the AFPD is only as up to date as 1999. Some of the valid postcodes are not on AFPD. I have sent and received replies from certain postcodes, and those postcodes are also recognised by the www.royalmail.com postcode finder, but they are not on the AFPD. In a dataset I collected myself, there are 9 valid postcodes out of 326 that are not on the AFPD.

Cheers,
Ada



Nick Cox wrote:


I had in mind an automated check for valid postcodes. Many (but not I think all) British postcodes have the form
<letters><number(s)><space><number><letters>

Outside Stata many list members will know ways of specifying valid forms, for example through some regular expression syntax.
Nick n.j.cox@durham.ac.uk
Seb Buechte


what do you exactly mean. Checking for the validity in terms of  a
code fullfilling the requirements of a certain nations postcodes e.g.
German postcodes contain only 5 digits. Or do you mean checking wether
a specific code does not only look like a postcode but is also a real
one?

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index