Author Topic: R code examining errors and detection limits for map with fixed background  (Read 104 times)

Ben Buse

  • Emeritus
  • *****
  • Posts: 514
    • Various scripts for EPMA
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

  • Administrator
  • Emeritus
  • *****
  • Posts: 3314
  • Other duties as assigned...
    • Probe Software
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://probesoftware.com/smf/index.php?topic=393.msg9220#msg9220

https://probesoftware.com/smf/index.php?topic=1452.0
« Last Edit: July 23, 2024, 09:51:39 AM by John Donovan »
John J. Donovan, Pres. 
(541) 343-3400

"Not Absolutely Certain, Yet Reliable"