* SELECT AND RUNNING COMMAND LINES. *Note that you should only select lines with command text on it (not the headings or any lines begining with " * "). *So, to run a command, simply edit the figures in brackets according to the problem you are trying to solve and select the line using the mouse (or "Shift+arrow keys"), *and then click the arrow on the toolbar (or press "Ctrl+R"). *If you want to run several commands in one go, remove all headings first or any lines begining with " * ". For example, the following set of commands lists all the examples included in this . *document. If you select them all as one block and then run, they should all run:. pz_lt_zi (-2.897) . pz_gt_zi (-2.897) . pz_lg_zi zil=(-2) ziu=(2). pz_gl_zi zil=(-2) ziu=(2). zi_lt_zp p=(0.005). zi_gt_zp p=(0.005). zi_gl_zp p=(0.95) . CI_L1M n=(45) x_bar=(22.2) s=(7) c=(0.95). CI_S1M n=(15) x_bar=(22.2) s=(7) c=(0.95). CI_S2Mp n1=(10) n2=(12) x_bar1=(100) x_bar2=(94) s1=(30) s2=(31) c=(.95). CI_S2Md n1=(10) n2=(12) x_bar1=(100) x_bar2=(94) s1=(30) s2=(31) c=(.95). CI_L1P n=(4040) x=(2048) c=(.99). N_L1M e=(2) c=(.95) s=(37). H_L1M n=(107) x_bar=(10.92) m=(11) s=(0.28). H_S1M n=(107) x_bar=(10.92) m=(11) s=(0.28). H_S2Mp n1=(22) n2=(27) x_bar1=(33.4) x_bar2=(40.1) s1=(22.4) s2=(22). H_S2Md n1=(22) n2=(27) x_bar1=(33.4) x_bar2=(40.1) s1=(22.4) s2=(42). H_L1P n=(102) x=(70) pi=(0.78). H_L2P n1=(22) n2=(19) x1=(7) x2=(9) . H_S2VF n1=(39) n2=(42) s1=(40198) s2=(46125). *==============================================================================================. *==============================================================================================. * CALCULATING Z SCORES. *==============================================================================================. *==============================================================================================. *pz_lt_zi Calculates the probability that z is less than zi. *eg. pz_lt_zi (-1.897) . *pz_gt_zi Calculates the probability that z is greater than zi. *eg. pz_gt_zi (1.3897) . *pz_lg_zi Calculates the probability that z is less than ziL or greater than ziU. *eg. pz_lg_zi zil=(-2) ziu=(2). *pz_gl_zi Calculates the probability that z is greater than ziL AND less than ziU. *eg. pz_gl_zi zil=(-2) ziu=(2). *==============================================================================================. *zi_lt_zp Calculates the value of zi such that Prob(z < zi) = PROB for a given PROB. *eg. zi_lt_zp p = (0.005). *zi_gt_zp Calculates the value of zi such that Prob(z > zi) = PROB for a given PROB. *e.g. zi_gt_zp p = (0.005). *zi_gl_zp Calculates the value of zi such that Prob(-zi < z < zi) = PROB, when PROB is given . *e.g. zi_gl_zp p=(0.95) . *==============================================================================================. *==============================================================================================. * CONFIDENCE INTERVALS. *==============================================================================================. *==============================================================================================. *CI_L1M Large sample CI for one mean (M&M pp.417-424) . *eg. CI_L1M n=(45) x_bar=(22.2) s=(7) c=(0.95). *CI_S1M Small sample CI for one mean (M&M p.494) . *eg. CI_S1M n=(15) x_bar=(22.2) s=(7) c=(0.95). *CI_S2Mp Small Independent Samples CI for differences between 2 means (pooled variance M&M p.538) . * (NB see the H8_S2VF command below to test whether the variances are the same or different). *e.g. CI_S2Mp n1=(10) n2=(12) x_bar1=(100) x_bar2=(94) s1=(30) s2=(31) c=(.95). *CI_S2Md Small Independent Samples CI for differences between 2 means (different variances M&M p.532) . * (NB see the H8_S2VF command below to test whether the variances are the same or different). *e.g. CI_S2Md n1=(10) n2=(12) x_bar1=(100) x_bar2=(94) s1=(30) s2=(31) c=(.95). *CI_SMP Traditional & Wilson Large-Sample CI for a Single Proportion (M&M p. 572ff) . *e.g. CI_L1P n=(4040) x=(2048) c=(.99). *==============================================================================================. *N_L1M Sample size for desired margin or error of size, e, for the mean for a given confidence interval, c, and standard deviation, s (M&M p.425). *eg. N_L1M e=(2) c=(.95) s=(37). *==============================================================================================. *==============================================================================================. *==============================================================================================. * HYPOTHESIS TESTS. *==============================================================================================. *==============================================================================================. *==============================================================================================. *H_L1M Large sample significance test on one mean (M&M pp. 444-447) *eg. H_L1M n=(107) x_bar=(10.92) m=(11) s=(0.28). *H_S1M Small sample significance test on one mean (M&M pp. 496-501) *eg. H_S1M n=(107) x_bar=(10.92) m=(11) s=(0.28). *H_S2Mp Small Independent Samples significance test for equality of 2 means (pooled variance M&M pp.537-542) * (NB see the H8_S2VF command below to test whether the variances are the same or different). *eg. H_S2Mp n1=(22) n2=(27) x_bar1=(33.4) x_bar2=(40.1) s1=(22.4) s2=(22). *H_S2Md Small Independent Samples significance test for equality of 2 means (different variances M&M pp.529-532) * (NB see the H8_S2VF command below to test whether the variances are the same or different). *eg. H_S2Md n1=(22) n2=(27) x_bar1=(33.4) x_bar2=(40.1) s1=(22.4) s2=(42). *H_L1P Large Sample significance test on one proportion (M&M pp. 575-577) *eg. H_L1P n=(102) x=(70) pi=(0.78). *H_L1P Large Sample significance test on one proportion (M&M pp. 575-577) *eg. H_L1P n=(22) x=(7) pi=(0.4). *H_L2P Large Samples significance test on two proportions (M&M pp. 591-592) *eg. H_L2P n1=(22) n2=(19) x1=(7) x2=(9) . *H_S2VF Simple Small sample F-test on equality of two variances (M&M p.554; see Levene's test in SPSS for more sophisticated test of homogenous variances). *eg. H_S2VF n1=(39) n2=(42) s1=(40198) s2=(46125).