| jupytext |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| kernelspec |
|
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
Announcements- Dropbox
- 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
What's new this week?
1. Wish to TA Stata Programming in the [Summer Institute](https://www.jhsph.edu/courses/course/36927/2023/340.600.49/stata-programming)? Let me know!
2. Video for chapter: `local v: di` has gone live!
3. Graduating students cannot submit `hw3` beyond May 18 since your grades are due in the Academic registrars office by 4pm May 19.
4. See tip for `hw3` below
if c(version)>17 { //tip 4 hw3
set scheme s2color
}
else { //stcolor is default in v18
di "you're good to go!"
}Footnotes
-
see chapter:
net searchfor source code ↩ -
see chapter:
net searchfor more on NHANES ↩