The results are illustrated on several examples. The formula covers both frequentist and Bayesian contexts and does not require explicit nuisance parameterisation.
Implementation is discussed in terms of computer algebra packages.
Examples are given and the relationship to Barndorff-Nielsen's approximation is discussed. The often conservative nature, for discrete data, of so- called exact tests seems usually the result of unnecessarily precise conditioning. We consider avoiding this by conditioning only approximately on the sufficient statistics for nuisance parameters. Modest relaxation of conditioning results in small loss in terms of the rationale for conditional inference, but can greatly reduce the difficulties caused by discreteness. Exact calculation of p-values based on approximate conditioning is possible, but unattractive both in terms of the amount of calculation involved and in requiring explicit specification of the extent to which conditioning is to be relaxed.