perform a goodness of fit MonteCarlo simulation

Syntax:  goodness  [<# of realizations>] [simnosim] [fitnofit] 

This command simulates <# of realizations> spectra based on the model and writes out the percentage of these simulations with the test statistic less than that for the data. If the observed spectrum was produced by the model then this number should be around 50%. This command only works if the sole source of variance in the data is counting statistics. The simnosim switch determines whether each simulation will use parameter values drawn from a Gaussian distribution centered on the best fit with sigma from the covariance matrix. The sim switch turns on this option, nosim turns it off in which case all simulations are drawn from the bestfit model. The default starting setting is sim. The fitnofit switch determines whether fitting will be performed on each simulated dataset to find the best fit before calculation of the test statistic. The fit switch turns on this option, nofit turns it off in which case the test statistic is calculated immediately after creating the simulated dataset. The default starting setting is fit. The goodness calculation may be sped up by setting the parallel command's goodness option to run multiple processes.
HEASARC Home  Observatories  Archive  Calibration  Software  Tools  Students/Teachers/Public
Last modified: Friday, 23Aug2024 13:20:40 EDT