🔵 🔵 🔵


Primary

၊၊||၊|။

Fit.error() ⚬|docu|1st|20251021194646-00-⌔

FitManager — PyXspec 2.1.5 documentation#xspec.FitManager.error

error(argString, respPar=False)

Determine confidence intervals of a fit.

Args:
argString:

A string with identical syntax to the standard interactive XSPEC error command.

“[[stopat ] [maximum ] [] […]]“

where ::=[:] -

See the XSPEC manual for a more detailed description.

respPar: Optional flag. Set this to True if the parameters

are response parameters. [bool]

The results of the error command are stored in the error attributes of the individual Parameter objects.

Examples:

# Estimate the 90% confidence ranges for parameters 1-3
Fit.error("1-3")
# Repeat but with delta fit statistic = 9.0, equivalent to the
# 3 sigma range.
Fit.error("9.0")
# Estimate for parameter 3 after setting the number of trials to 20.
# Note that the tolerance field has to be included (or skipped over).
Fit.error("stop 20,,3")
# Perform an error calculation on response parameter 1
Fit.error("1",True)

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •