Looping with IF function
Posted: Tue Nov 19, 2013 9:11 am
Hello,
I have the following problem. I have more than 45 series and I would like to program the following:
For %y 1-45 '(I don't know if that's possible)
IF nameseries_{%y}>=0.50 then
'count observations before founding >=0.50 condition and put it on a scalar.
else
'nothing
next
So, I don't know how to program it, but I hope you could understand what I am trying to do.
Thank you!!!!
I have the following problem. I have more than 45 series and I would like to program the following:
For %y 1-45 '(I don't know if that's possible)
IF nameseries_{%y}>=0.50 then
'count observations before founding >=0.50 condition and put it on a scalar.
else
'nothing
next
So, I don't know how to program it, but I hope you could understand what I am trying to do.
Thank you!!!!