I have a file with multiple columns and I would like to make multiple linear regressions (to be all plotted in same graph after regression) over the file using a loop as follows:
do for [i=1:6] {
g(i,x)= 'm'.i*x + 'b'.i
fit g(i,x) 'Dens.dat' using 1:(column(i+1)) via 'm'.i,'b'.i
}
But I get an error: could not read parameter-file "m1"
How can I fix this?