Library: | tware |
See also: | twpvalue twnormalize twclt twpearson tw1d twlinreg |
Quantlet: | 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) |
; 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)
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 |