Example (BAYES ONESAMPLE: Poisson command)

BAYES ONESAMPLE
     /MISSING SCOPE = ANALYSIS
     /CRITERIA CILEVEL = 95
     /INFERENCE DISTRIBUTION = POISSON VARIABLES = prevexp ANALYSIS = BOTH
     /DATA VARIABLES = prevexp NULLPRIORPARAM = 1 1 ALTERPRIORPARAM = 0.5 1
     /PRIOR TYPE = CONJUGATE(0.5 0) .
  • MISSING specifies how missing values are handled. The example specifies ANALYSIS as the missing values SCOPE. The example excludes records with missing values on a test-by-test basis. Records with missing values for a field, that is used for a specific test, are omitted from the test.
  • CRITERIA specifies that the significance level for computing credible intervals (CILEVEL) is set to the default value of 95.
  • INFERENCE specifies the distribution and variables for the analysis. The example uses a Poisson distribution, the prevexp variable, and both Characterize Posterior Distribution and Estimate Bayes Factor (BOTH) as the ANALYSIS method.
  • DATA specifies shape parameters and alternate hypothesis values for the estimation of Bayes factors. The example uses the prevexp variable.
  • PRIOR specifies the prior distribution. The example uses conjugate prior.