I am using xmgrace's curve fitting option (DATA-->TRANSFORMATION-->REGRESSION), and I want to find the sum of all residuals^2. xmgrace has an option giving me all the residuals, and I already took the square of this, but I want to find the sum of the squares. How do I do this?
Asked
Active
Viewed 103 times
1 Answers
2
- Identify the set where
rediduals^2
is kept. Let's say it iss4
. - Go to tab Window -> Commands. A small window will pop up.
- Assuming you want to sum the
y
ofresidual^2
set, type ins5 point 0,sum(s4.y)
. Press enter. This will add all they
values in sets4
and place it iny
ofs5
. - If no error pops up, type in
updateall
. This will update the new sets5
. - The sum of
residual^2
will be ins5(y)
.

Sat Yam
- 301
- 3
- 8