#252sols Fakes simple ols regression by hand
regress c1 1 c2
let c3=c2*c2 #Put y in c1, x in c2
let c4=c1*c2 #c3 is x squared, c4 is xy
let c5=c1*c1 #c5 is y squared
let k1=sum(c1) #k1 is sum of y
let k2=sum(c2) #k2 is sum of x
let k3=sum(c3) #k3 is sum of x squared
let k4=sum(c4) #k4 is sum of xy
let k5=sum(c5) #k5 is sum of y squared
print c1-c5
let k17=count(c1) #k17 is n
let k21=k2/k17 #k21 is mean of x
let k22=k1/k17 #k22 is mean of y
let k18=k21*k21*k17
let k18=k3-k18 #k18 is SSx
let k19=k22*k22*k17
let k19=k5-k19 #k19 is SSy
let k20=k21*k22*k17
let k20=k4-k20 #k20 is SSxy
print k1-k5
print k17-k22
end