Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: tware
See also: twpvalue twnormalize twclt twpearson tw1d twlinreg

Macro: twrandomsample
Description: teachware quantlet twrandomsample asks for a distribution of the numbers {1, 2, 3, 4} displays a bar chart of the entered values and calculates a test for H0: p{2,3} = 0.5, the hypothesis of uniform distribution.

Usage: twrandomsample({nin})
Input:
nin vector (4x1)

Example:
; load teachware library
library("tware")
; predefine some counts for the numbers 1,2,3,4
nin=2|10|5|3
; call random sample teachware example
twrandomsample(nin)
Result:
a graphic with bar chart representing the observed counts 
and a text window with p-values and test statistic for 
the hypothesis H0: p{2,3} = 0.5	

Library: tware
See also: twpvalue twnormalize twclt twpearson tw1d twlinreg

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: SK, WH, 981231
(C) MD*TECH Method and Data Technologies, 17.8.2000