| Library: | tware |
| See also: | twrandomsample twclt twnormalize twpearson twlinreg tw1d |
| Quantlet: | twpvalue | |
| Description: | teachware quantlet twpvalue computes the p-value of a B(n, p) distribution |
| Usage: | twpvalue({nin}) | |
| Input: | ||
| nin | vector (3 x 1) with n, p and observed counts | |
; load teachware library
library("tware")
; predefine counts for n, p and observed counts
n=6|0.5|5
; call p value teachware quantlet
twpvalue(n)
a graphical display with the barchart in the upper port and text in the lower port.
| Library: | tware |
| See also: | twrandomsample twclt twnormalize twpearson twlinreg tw1d |