07.05.2015 Views

Download the documentation - True BASIC

Download the documentation - True BASIC

Download the documentation - True BASIC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

46 Statistics Graphics Toolkit<br />

SetHistoColor (col$)<br />

Set <strong>the</strong> color used for subsequent histogram bars. This color can be a <strong>True</strong> <strong>BASIC</strong> color<br />

name, such as “red” or a number such as “1”.<br />

AskHistoColor (col$)<br />

The opposite of SetHistoColor. Return <strong>the</strong> current histogram bar color.<br />

SetNormal (f)<br />

Call SetNormal(1) to add a normal curve automatically to every subsequent histogram<br />

and frequency polygon. The normal curve will be automatically scaled to fit <strong>the</strong> data’s<br />

area, mean and variance, and will be shown as a cumulative normal curve for cumulative<br />

plots. Use 0 to turn off automatic normal curves.<br />

AskNormal (f)<br />

The opposite of SetNormal. Returns 1 if subsequent histograms and frequency polygons<br />

will have normal curves added automatically. O<strong>the</strong>rwise returns 0.<br />

T-tests and Confidence Intervals<br />

This section describes T-tests and <strong>the</strong> confidence interval calculations that rely on<br />

<strong>the</strong>m. See <strong>the</strong> “Nonparametric Tests” section for ways of estimating point locations<br />

and confidence intervals without using T-tests.<br />

Ttest (data(), null, alt, t, p, mean, se, df)<br />

One sample T-test. You must supply <strong>the</strong> dataset in data() and <strong>the</strong> null and alternate<br />

tests in null and alt. The null hypo<strong>the</strong>sis is that <strong>the</strong> mean value of <strong>the</strong> population<br />

equals whatever you passed in null.<br />

The alt parameter lets you construct one- or two-sided tests: a negative number means<br />

<strong>the</strong> alternative is that <strong>the</strong> true mean is less than null; 0 means that it’s not equal; and<br />

positive means that it’s greater. Thus <strong>the</strong> test is two-sided if alt = 0; o<strong>the</strong>rwise it’s onesided.<br />

Example: Ttest with null = 3 and alt = 0 gives a two-sided T-test. The null hypo<strong>the</strong>sis<br />

is that <strong>the</strong> true mean is 3. The alternative is that <strong>the</strong> mean is not 3.<br />

01/01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!