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

Quantlet: twrandomsample
Description: the 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 4 x 1 vector of user-defined frequencies for the numbers 1,2,3,4

Example:
; loads teachware library
library("tware")
; predefines some counts for the numbers 1,2,3,4
nin=2|10|5|3
; calls random sample teachware example
twrandomsample(nin)

Result:
A graphic with bar charts representing the observed counts
and a text window with p-values and test statistic for
the hypothesis H0: p{2,3} = 0.5 is displayed



Author: S. Klinke, W. Haerdle, 20010912 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006