Two files (one ado; one do) attached, which checks a variable containing South African id numbers for validity using the Luhn algorithm.
The actual implementation of the alogrithm is my own (and very parsimonious!) - but the surrounding code is built off the original suggestion provided here (https://www.stata.com/statalist/arch.../msg00300.html) by Nick Cox and modified as the pnrcheck.ado by N Orsini.
Related Posts with Validity check for South African identity numbers using the Luhn algorithm
Generating a Count Variable using the 90 percentile centered on a five day window Hi I am working with a panel data set for 300 districts from 1959 to 1999 using Stata 13. I have go…
within-between-Interations in hybrid models for panel dataDear Statalists, I have a question concerning the possibility of using interaction terms in a hybri…
Principal Component AnalysisI am working with data for Indian schools. I intend to create an Index by combining several variable…
Weighting and Clustering in Pooled Data AnalysisI am working with DHS (Demographic and Health Survey) data. I have pooled data from about 25 countri…
Struggling with reshapeHi, I have data where i am looking at IDs, a test for different genes and extra information. I am tr…
Subscribe to:
Post Comments (Atom)
0 Response to Validity check for South African identity numbers using the Luhn algorithm
Post a Comment