### Coefficients count

Posted:

**Sat Feb 23, 2019 2:35 pm**Hello,

I'm creating a simple program that will export the estimated coefficients of a linear regression to a table (which I'll then use w/ the COM add-in later on). The program will loop through each equation of the workfile and save each equations' coefficients to a vector or table. This is the first few lines:

The next step would be where ?? needs to be some way of counting the coefficients in {%eqlist} so I can loop through each and store to the vector. How can I do this (and totally open to another way to go about this if recommended?

Thanks!

I'm creating a simple program that will export the estimated coefficients of a linear regression to a table (which I'll then use w/ the COM add-in later on). The program will loop through each equation of the workfile and save each equations' coefficients to a vector or table. This is the first few lines:

Code: Select all

`%eqlist = @wlookup("*", "equation")`

for !i=1 to @wcount(%eqlist)

%reg = @word(%eqlist, !i)

The next step would be

Code: Select all

`for !j= 1 to ??`

Thanks!