Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: middle initial

From   Michael Eisenberg <>
Subject   st: middle initial
Date   Wed, 28 Dec 2011 12:12:00 -0800


I have what I hope will be a simple question to answer.

I have a list of middle names and I'd like to isolate the first initial.

I tried but it gives me the letter with ... after it.

gen midi=middlename
format midi %1s

Thank you in advance.

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index