I want to make a loop that incorporates both strings and integers. So far I have created a group with a lot of variables (+/- 200). I'm working on a project where p > n, that means I have more variables then observations. There is a method called the LASSO method that chooses some of the variables from the group that are 'relevant' and gives the one that are not relevant a coefficient of zero. I have a serie called "serie_test" with the indexes of the group that I want to regress on the dependant variable. For example: I want to regress the variables 3,4 and 12 on the dependant variables. In EViews it will look like this:
Code: Select all
equation regression.ls y group01(3) group01(4) group01(12)
Code: Select all
string test = ""
!numberOfRows = @rows(serie_test)
for !i = 1 to !numberOfRows
test = test + "group01(serie_test(!i))"
next
In stead of group01(serie_test(!i)) I want my output to be like this: group01(3) group01(4) etc.group01(serie_test(!i)) group01(serie_est(!i)) group01(serie_test(!i))
Can someone help me please?
Thanks in advance!!!!
