tokenize#
Our teaching team is here to help!
Your instructor
Abimereki Muzaale muzaale@jhmi.edu
Teaching assistants
Vincent Jin zjin26@jhmi.edu (Lead TA)
Johnathan He zhe33@jhu.edu
Darien Colson-Fearo dcolson3@jhmi.edu
Sophia Magalona cmagalo1@jhmi.edu
Jinqiao Ma jma75@jh.edu
Jianan Lu jlu84@jhmi.edu
Rediet Tekalign rtekali1@jhu.edu
Optional labs
Courseplus perks
Q&A on discussion forum
AnnouncementsDropbox
Gradebook
Passcodes
Who to email? 1
qui {
    
    
    if 1 { //N=26
        
        cls
        clear
        set obs 26
        
        capture log close 
        log using tokenize.log, replace  
        
    }
    
    if 2 { //Int 1-26
        
        egen lastname = seq(), f(1) t(26)
        tostring lastname, replace 
        tokenize "`c(ALPHA)'" 
        
    }
    if 3 { //Tokenize
        
        forval i = 1/26 {
            
            replace lastname = "``i''" if lastname == "`i'" 
            
        }
        
    }
    
    if 4 { //Randomly
        
        set seed 340600
        g randomorder=runiform()
        sort random  
        drop random    
        
    }
    
    if 5 { //Output
        
        noi list 
        log close 
        
    }
}
SLBTM -> Darien Colson-Fearo
YZRVU -> Sophia Magalona
KGHJW -> Jinqiao Ma
FIDXC -> Jianan Lu
APEON -> Rediet Tekalign
Bonus points: Use the tokenize command to append the DEMO.XPT files for all continuous NHANES: 1999-2018 into one file.2
Your .do file should include only one import sasxport5 statement.
Search this book for the import sasxport5 command. Up to 1.5 bonus points
Hint: tokenize.hint.do tokenize.hint.log
Academic integrity
Collaboration is strongly encouraged
You should have a Github account (optional)
Submit your own work, acknowledging any other contributors
Please do cite sources of code snippets
See also
What’s new this week?
Wish to TA Stata Programming in the Summer Institute? Let me know!
Video for chapter:
local v: dihas gone live!Graduating students cannot submit
hw3beyond May 18 since your grades are due in the Academic registrars office by 4pm May 19.See tip for
hw3below
if c(version)>17 { //tip 4 hw3
    set scheme s2color
}
else { //stcolor is default in v18
    di "you're good to go!"
}