Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[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–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index