[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: RE: Can't Read "00020" as a Character in Stata?
Sorry I was not clear before. Suppose I have the following file in fixed format:
I am trying to read column 1-5 in charater format, so that I have variables in Stata memory as follows:
The problem is that when I use "infix ID 1-5 Sale 6-10", I have the following because Stata treat:
"Nick Cox" <email@example.com> wrote:
>You must spell out that you want the id read
>as a string variable. The help includes examples.
>> I encounter a data input problem in Stata. I have a fixed
>> format file, i.e., abc.raw, and there are ID numbers that I
>> would like to read them in character format. However, the way
>> the ID numbers are created makes it hard to do so. For
>> example, I have an ID is "00020", but Stata read it as "20".
>> Can anyone help me out here? I use "infix id 1-5 using ..."
>> but it does not work.
>* For searches and help try:
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
* For searches and help try: