I'm hoping to generate a large number (likely 20-30) of new variables at once. Essentially, I have a long list of courses, and have generated flags for the top 10 courses based on a few variables (such # of times taken, retaken, etc).
I now need to create variables for those courses. So essentially if *any* of the three variables listed below are flagged with a 1, then that course would become a new variable. There's some overlaps but plenty that don't, so doing this manually is certainly possible but the potential to overlook one is high. Thanks much.
I now need to create variables for those courses. So essentially if *any* of the three variables listed below are flagged with a 1, then that course would become a new variable. There's some overlaps but plenty that don't, so doing this manually is certainly possible but the potential to overlook one is high. Thanks much.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str98 course float(course_starts1 five_min1 retakes1) "New Survey " . . . "New Handbook" 1 . . "Miller Reentry Resources " . . . "E-Car" . . . "Interpretation Quiz" . . . "Tennessee Test" . . . "Introduction to Math " 1 . . "MA Reading" 1 . . "Baseline Test" . . 1 "New Resources" . 1 . "Intro English" . . 1 "Targeting Success " . . . "Infographics" . 1 . "Christian Prayer - Part V" . . . "Christian Prayer - Part I" . . . "Georgia Test" 1 . . "History 101" . . . "Astronomy 101" . . . end
Comment