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
powersimI am having trouble getting the simulations to work for a particular problem and was wondering if an…
clock returns inaccurate resultsHi, I want to convert some string variable to datetime format using the clock() function (Stata 14.…
Comparison between regressions with and without autocorrelationHello! I am using a panal data for N=11 and T=12, and I am using fixed-effect models for each of 3 o…
Problem deleting common y-axis in catplot with by() optionDear Stata users, Context : I want to display the industry distribution within 3 age categories (re…
Bilateral data (origin and destination country) and the command tsset/xtsetHi i have a migration dataset with origin and destination country for the years 1980, 85, 90, 95, …
Subscribe to:
Post Comments (Atom)
0 Response to Validity check for South African identity numbers using the Luhn algorithm
Post a Comment