The foundational pillars of this Spring term course were laid by my esteemed mentors and colleagues in the Department of Surgery at Hopkins, Dorry Segev and Allan Massie.
Quick References#
Classroom and Virtual Attendance Information#
Location: Wolfe W1214 (Sheldon Hall), East Baltimore Campus. You’re encouraged to join the in-person experience for enriched learning.
Zoom Online Classroom: Join Zoom Meeting. Active participation in Zoom sessions is highly encouraged. Ask questions, share your screen when troubleshooting, and engage with your peers to mimic the in-person classroom environment as closely as possible.
Sessions
and labswill be recorded and stored in the cloud for 180 days for review and reference. Passcodes for the recordings can be accessed via theCoursePlus > Online Library > Session
Screen sharing during class is recommended for effective troubleshooting.
Course Materials and Communications#
Syllabus: View Syllabus
CoursePlus Portal: Access Course Materials and Forums
Contains video passcodes, discussion forums, and lab Dropbox for assignments.
Course Team Contacts#
Instructor:
Abimereki Muzaale, Email: muzaale@jhmi.edu
Analytic Mentor:
Vincent Jin, Email: zjin26@jhmi.edu
Teaching Assistants:
Ning Meng, Email: nmeng2@jh.edu (Lead TA)
Natalie Daya Malek, Email: ndaya1@jhu.edu
Xujun Gu, Email: xgu23@jhmi.edu
Maya Aboumrad, Email: maboumr1@jhmi.edu
Darien Colson-Fearon, Email: dcolson3@jhmi.edu
Labs Schedule#
Labs/Office Hours are scheduled from Monday to Friday. These hours are an open forum for you to seek help with homework, lab exercises, or clarify any course material
Lab instructions/solutions:
Lab 1/Week 2: Lab 1 Instructions (04/01 - 04/05) | Solution
Lab 2/Week 3: Lab 2 Instructions (04/08 - 04/12) | Solution
Lab 3/Week 4: Lab 3 Instructions (04/15 - 04/19) | Solution
Lab 4/Week 5: Lab 4 Instructions (04/22 - 04/26) | SolutionLab 5/Week 6: Lab 5 Instructions (04/29 - 05/02) | Solution
Lab 6/Week 7: Lab 6 Instructions (05/06 - 05/10) | Solution
Lab 7/Week 8: Lab 7 Instructions (05/13 - 05/16) | Solution
Ensure to check the specific dates and access the provided solutions for self-review.
Homework Assignments#
Assignments are a crucial part of the coursework, allowing you to apply what you’ve learned:
HW 1: Assignment 1 Due 04/04 | Solution
HW 2: Assignment 2 Due 04/11 | Solution
HW 3: Assignment 3 Due 04/18 | Solution
HW 4: Assignment 4 Due 04/25 | SolutionHW 5: Assignment 5 Due 05/02 | Solution
HW 6: Assignment 6 Due 05/09 | Solution
HW 7: Assignment 7 Due 05/16 | Solution (🎓strict deadline for graduating students)
Make sure to submit by the due dates and refer to the solutions for feedback.
Datasets and Supplementary Materials#
The course utilizes various datasets and Stata do-files, which are integral for lab exercises and homework:
Datasets: Available for download or
direct import
, includingtransplants.dta
,donors.dta
, and more, alongside their respective.txt
versions available for preview.Supplemental do-files: Designed to complement lecture materials, available for topics covered in each week.
-
unique
.do
file structure
Additional Resources and Evaluation#
Stata Version Note: A specific note on Stata 13 usage and compatibility issues is available here.
Course Evaluation: Your honest feedback is not just appreciated; it’s a cornerstone of how this course evolves. Please don’t miss out on the chance to shape future iterations in week 8.
Stata-focused Discussion Community on GitHub: An opportunity to engage with a broader Hopkins community interested in Stata programming. Requires a GitHub account and a willingness to learn and share.
Weekly Insights: Updates, Announcements, and Solutions#
See also
Updated as of 05/16/2024 at 6:27PM
New!!!
Week 7 supplement on handling string variables (e.g. drug names)Week 8 Video has is now available
After the term ends, you’ll be invited to volunteer in a Stata study.
The study compares prompt-based programming (our novelty) with traditional syntax programming (what you’ve learned).
The goal is to test whether individuals with no prior knowledge of programming can use our novel programming tool to achieve faster and more accurate analytic outputs.
Each participant will serve as their own control.
There are no disclosure risks as we will not keep your names.
Since we’ll have submitted grades to the Academic Registrar, participation is truly voluntary.
Help benefit the next generation of students by participating!
Operating system ambiguity#
hist age
sum age
regress age
if c(os) == "MacOSX" { //forward slash
graph export wk7output/age_tx.png, replace
}
else { //backslash
graph export wk7output\age_tx.png, replace
}
ls wk7output
Rubric for all Your Homeworks#
Total Points: 100 (no student will lose more than 20 points; some students may score as many as 105 points)#
Code Structure and Documentation
Clarity (up to -1 point): Deduct if code is disorganized or hard to follow. (
deduct only once, even if several blocks of code are disorganized; use same approach for other issues
)Comments (up to -2 points): Deduct for inadequate comments explaining code blocks, methods, or variables.
Readability (up to -1 point): Deduct for poor use of spacing, indentation, or naming conventions.
Execution and Functionality
Correctness (up to -3 points): Deduct if the script has errors or does not produce the expected output.
Efficiency (up to -2 points): Deduct if code is inefficient with unnecessary repetitions or calculations.
Based on this point, even the solution we will later share with you isn't perfect; there's about -1 points for repetition in creating the .xlsx file
No body is perfect
Yet redeeming qualities could see you earn bonus points!
Completeness (up to -1 point): Deduct if any part of the script is missing or non-functional.
Data Handling and Analysis
Data Import (up to -1 point): Deduct if data is incorrectly imported or cleaned.
Variable Creation (up to -2 points): Deduct if variable creation or transformation is incorrect.
Descriptive Statistics (up to -2 points): Deduct if there are errors in the computation or display of statistics.
Results and Output Quality
Table Outputs (up to -2 points): Deduct if outputs in both
.log
and.xlsx
formats are incorrect or unclear.Labeling and Presentation (up to -2 points): Deduct if variables and results are improperly labeled or presented.
Interpretation (up to -1 point): Deduct if the results are not briefly explained or interpreted correctly.
Additional Considerations:#
Innovation (Bonus up to +5 points): Award for creative approaches that enhance the analysis or presentation. Perhaps five innovations earn five points. Three earn three, etc.
Acknowledgements#
The foundational pillars of this Spring term course were laid by my esteemed mentors and colleagues in the Department of Surgery at Hopkins, Dorry Segev and Allan Massie. Their move to NYU left big shoes to fill, and it has been an absolute honor to continue their legacy.
Having co-taught the summer institute alongside Allan Massie for three years, I’ve been uniquely prepared for this role, thanks to his exceptional mentorship. The core content of this class, akin to the enduring tune of a folk song, was originally composed by Allan. With time, we’ve reinterpreted this melody, introducing new harmonies and dissonances to accommodate the evolution of technology and challenges, including the introduction of this Jupyter Book hosted on GitHub, powered by Python, and navigated with the assistance of GPT-4. My foray into computer programming has been unexpected yet rewarding.
Vincent, your Analytic Mentor, exemplifies the journey from student to teacher, having advanced from being a student in this course to a lead TA, and now, a valued colleague and collaborator in the Department of Surgery. His progression is a testament to the potential that lies within each of you. This course is just the beginning. Like Vincent, many of you have the potential to transition from learners to leaders in the field. Engage deeply, and let’s see where this journey takes you
Our teaching assistants are nothing short of remarkable. Their dedication is evident, whether returning from previous years or joining as exceptional doctoral candidates from the Department of Epidemiology, drawn to this course by their passion for teaching. A special note for our MD/MPH students: one of our TAs has seamlessly bridged their MD/MPH experience at the Bloomberg School into two straight years of teaching, enhancing our team’s cohesion and your learning experience. She’s heading off to residency after this May!
Finally, the positive evolution of this course has been significantly shaped by feedback from over 300 students across the last two years. This feedback, including detailed critiques from a particularly insightful student, has been instrumental in refining our educational approach, aiming to balance challenge with skill to foster an engaging and productive learning environment.
()