In C++, for example, I could write:
Code:
cout<<"Which dataset do you want to use?" cin>>dataset if (dataset == A) { //code } if (dataset == B) { //code }
P.S. Asking me to write down 'what I wrote in Stata and what is not working for clarification' would be a non-sequitur because I couldn't find anything which works in such an interactive way in Stata. All I could do is write an analogous C++ code.

0 Response to Interactive do File à la C++/Python
Post a Comment