hello statalist. i have a problem with a do file that i am sure will be simple to resolve. But its driving me mad!!!!
i am using the ralloc add on to create a randomised block trial. The problem isn't with this however (this is just context). The problem is prior to this. I need to set up a data set with 2 columns v1 and v2 where v1 is the strata (1, 2, 3, ....n) and v2 is the number of levels in each stratum.
So far I have these displays on the screen (see code below). The _request2() causes the do file to stop as required. I then use input v1 v2 typed into the command window, which allows me to populate v1 and v2 in a new data file. I then want the do file to continue with the save command to save the data file I just created.
After this the ralloc ad on runs fine. The problem is that after the input command, the do file doesn't start again with the 'save' command automatically.
Does anybody know what's the problem is here?
di in red "Type this into command window 'input v1 v2'. (in command window): "
di in red "Type strata number and number of levels (example 1 2, then 2 7 .... after all strata entered type end)'. (in command window): " _request2()
save "X:\RandomBlockRandomisation\block_setup.dta", replace
Any ideas on how to sort this will be much appreciated
Tony
i am using the ralloc add on to create a randomised block trial. The problem isn't with this however (this is just context). The problem is prior to this. I need to set up a data set with 2 columns v1 and v2 where v1 is the strata (1, 2, 3, ....n) and v2 is the number of levels in each stratum.
So far I have these displays on the screen (see code below). The _request2() causes the do file to stop as required. I then use input v1 v2 typed into the command window, which allows me to populate v1 and v2 in a new data file. I then want the do file to continue with the save command to save the data file I just created.
After this the ralloc ad on runs fine. The problem is that after the input command, the do file doesn't start again with the 'save' command automatically.
Does anybody know what's the problem is here?
di in red "Type this into command window 'input v1 v2'. (in command window): "
di in red "Type strata number and number of levels (example 1 2, then 2 7 .... after all strata entered type end)'. (in command window): " _request2()
save "X:\RandomBlockRandomisation\block_setup.dta", replace
Any ideas on how to sort this will be much appreciated
Tony
Comment