Library: | glm |
See also: | glmfit doglm |
Quantlet: | select0item | |
Description: | select0item is an item selector for glm. It allows exactly at most one item to be selected. |
Usage: | no=select0item(stitle,sitems,atitle) | |
Input: | ||
stitle | menu title. | |
sitems | menu items. | |
atitle | optional, an alternative menu title if an error (more than 1 selection) occurred. | |
Output: | ||
no | number of selected item. 0 for no selection. |
library("glm") stitle="make your choice or press OK" sitems="1"|"2"|"3" atitle="make ONE choice" no=select0item(stitle,sitems,atitle) no
Your chosen number or 0 if you just pressed OK.