Hi All,
I am trying to create a loop in stata that looks like the following-
foreach m of mnf_num {
foreach n of num_date {
drop if first_pos_qtr<n-4 & last_pos_qtr>n
tab brgroups
tab bigclass_num
tab formgroups
}
}
But I keep getting an invalid syntax error. Any edits I could make to the code so that this works? Thanks so much!
I am trying to create a loop in stata that looks like the following-
foreach m of mnf_num {
foreach n of num_date {
drop if first_pos_qtr<n-4 & last_pos_qtr>n
tab brgroups
tab bigclass_num
tab formgroups
}
}
But I keep getting an invalid syntax error. Any edits I could make to the code so that this works? Thanks so much!
Comment