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
Multiple treatmentsHi I have a panel of roughly 1000 firms across 10 years (2004-2013) in 2 states in the US (CA and PA…
period to period changeDear Stata users, The dataset I am working on is repeated measures data and it looks as below. I wa…
Loop Through The Same Procedures with Multiple DatasetsHi all, I have several datasets that I would like to do the same procedures to. I have the same gen…
String variable to date formatHi, I am encountered with a problem in converting a string variable to date format to enable time s…
How to import large mdb fileHi, I have to import large .mdb files and transfer into stata file. As the databases are saved in 3…
Subscribe to:
Post Comments (Atom)
0 Response to Validity check for South African identity numbers using the Luhn algorithm
Post a Comment