Example (BAYES ONESAMPLE: Normal command)

BAYES ONESAMPLE
     /MISSING SCOPE = ANALYSIS
     /CRITERIA CILEVEL = 95
     /INFERENCE DISTRIBUTION = NORMAL VARIABLES = logSalary logSalbegin ANALYSIS = POSTERIOR
     /PRIOR VARDIST = INVCHISQ(2 1) MEANDIST = NORMAL(10) KAPPA = 2 .
  • 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 normal distribution, the logSalary and logSalbegin variables, and Characterize Posterior Distribution (POSTERIOR) as the ANALYSIS method.
  • PRIOR specifies the prior distribution. The example uses the INVCHISQ prior for the variance parameter (VARDIST), the NORMAL prior for the mean parameter (MEANDIST), and a KAPPA value of 2.