Hi all!
I'm transcribing a HTML JavaScript code to Stata. However, I'm new in Stata and I'm stuck with transcribing the array from JavaScript to Stata.
The HTML JavaScript code:
var balloons = new Array(0.06, 0.066, 0.05, 0.0612, 0.0582, 0.0546, 0.0522, 0.0475);
What I did in Stata:
foreach i of balloons 0.06, 0.066, 0.05, 0.0612, 0.0582, 0.0546, 0.0522, 0.0475{
}
But this doesn't work out. Someone who can help me?
Thanks in advance!
I'm transcribing a HTML JavaScript code to Stata. However, I'm new in Stata and I'm stuck with transcribing the array from JavaScript to Stata.
The HTML JavaScript code:
var balloons = new Array(0.06, 0.066, 0.05, 0.0612, 0.0582, 0.0546, 0.0522, 0.0475);
What I did in Stata:
foreach i of balloons 0.06, 0.066, 0.05, 0.0612, 0.0582, 0.0546, 0.0522, 0.0475{
}
But this doesn't work out. Someone who can help me?
Thanks in advance!
Comment