Calculate residuals DAMMIN/Crysol

ATSAS for Windows, Linux and Mac, general installation issues, ATSAS online etc.
Post Reply
Message
Author
dorivajk
Guest
Posts: 1
Joined: 2022.04.18 20:24

Calculate residuals DAMMIN/Crysol

#1 Post by dorivajk » 2022.04.19 16:52

Hi,

A reviewer asked us to add residuals to our publication, for all DAMMIN and Crysol fits. How could I calculate them using the output of both programs?

Thank you

Jonathan

User avatar
AL
Administrator
Posts: 760
Joined: 2007.08.03 18:55
Location: Hamburg, Germany
Contact:

Error-weighted residual difference plot

#2 Post by AL » 2022.04.27 11:00

You can open the .fit file from CRYSOL (or the .fir file from DAMMIN) in PRIMUS, then go to the 'Processing' tab and click 'Data Comparison'. You will see the fit and the error-weighted residual difference plot below. You can right-click on any of the plots and choose 'Export'. You may want to play with 'Configure' and the image size to make it look according to the journal requirements.

To calculate the actual residuals and plot them e.g. in gnuplot do something like:

Code: Select all

plot inputfile using 1:(($2 - $4) / $3) with points
Here the first column $1 is q;
$2 is Iexperiemntal(q);
$3 is the experimental error σ(q) (standard deviation);
$4 is Ifit(q),
see Trewhella et al. (2017) Publication guidelines for solution SAS data. Acta Cryst. D73, page 718.

Post Reply