Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Specifying and implied decimal place with an infix statement


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Specifying and implied decimal place with an infix statement
Date   Fri, 21 May 2004 15:41:53 +0100

I am not aware that you can. I'd just divide by 
10 inside Stata. Any downside to that? 

Nick 
[email protected] 

Joseph McCrary
> 
> I'm reading in a text file using an infix statment. Some of 
> my variables
> (the nce variables) occupy 3 columns but have an implied 
> decimal between
> the 2nd and 3rd columns. How do I correctly specify this in my infix
> statement?
> 
> Here's the a snippet of the code I'm using:
> 
> infix
>   record 1-2
>   str studln 3-13
>   str studfn 14-22
>   str sudmi 23
>   str studnum 33-42
> <much stuff deleted>
>   nce_str1  3450-3452
>   nce_str2  3453-3455
>   nce_str3  3456-3458
>   nce_str4  3459-3461
>   nce_str5  3462-3464
>   nce_str6  3465-3467
>   nce_str7  3468-3470
>   nce_str8  3471-3473
>   nce_str9  3474-3476
>   nce_str10 3477-3479
>   nce_str11 3480-3482
>   nce_str12 3483-3485
>   nce_str13 3486-3488
>   nce_str14 3489-3491
>   nce_str15 3492-3494
>   nce_str16 3495-3497
>   nce_str17 3498-3500
>   nce_str18 3501-3503
>   nce_str19 3504-3506
>   nce_str20 3507-3509
>   nce_str21 3510-3512
>   nce_str22 3513-3515
>   nce_str23 3516-3518
>   nce_str24 3519-3521
>   nce_str25 3522-3524
>   nce_str26 3525-3527
>   nce_str27 3528-3530
>   nce_str28 3531-3533
>   nce_str29 3534-3536
>   nce_str30 3537-3539
>   using "c:\work\stanford\baltimore.txt";
> 
> Thank you.
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index