R code examining errors and detection limits for map with fixed background

Started by Ben Buse, July 23, 2024, 08:32:30 AM

Previous topic - Next topic

Ben Buse

Hi, in case of interest/use

A long bit of code for R calculating detection limits and errors for a map, it's interesting when you consider situations where the error on peak (number of pixels of peak map averaged) can become smaller than the error on the background (a series of quant points - if a few points are taken)

The code reads
1. background quant points - reading count intensities.
2. background quant points - reading kraw, count times, analytical conditions, std assign
3. map setup file - for map analytical condtions

Code attached

John Donovan

Very nice Ben.

Note that one can also quickly obtain both detection limits (in wt%) and analytical sensitivity (in one sigma relative percent units) for quant x-ray maps in CalcImage by just checking the boxes in the Project | Specify Quantitative Parameters menu dialog:

https://smf.probesoftware.com/index.php?topic=393.msg9220#msg9220

https://smf.probesoftware.com/index.php?topic=1452.0
John J. Donovan, Pres. 
(541) 343-3400

"Not Absolutely Certain, Yet Reliable"