Next: kmeans() Up: MacAnova Help File Previous: keyvalue()   Contents

keywords

Usage:
print(nsig:5,x), plot(Obs_No:x,Response:y), regress(Model, pvals:T),
  setoptions(format:"12.5g") are examples of keyword usage



Keywords: syntax
Many functions accept 'keyword phrases' such as 'xlab:"Weight"',
'down:T' or 'nsig:7' as optional arguments.

A keyword phrase has the form Name:Value, where Name is a name of no
more than 10 characters starting with a letter (a-z or A-Z).  Value is a
variable or constant.

When used as values of a keyword phrase, 'T' and 'F' can often be
interpreted as 'yes' and 'no' or 'allow' and 'suppress'.

Keywords often provide optional information, or specify variants of the
usual computation. For example, print(nsig:7,x,y,nsig:3,z) prints x and
y with 7 significant digits and z with 3, and screen(Model,mbest:6)
specifies that screen() should find the 6 best subsets of independent
variables.

Keyword phrases may also be used to name components when using
structure() and strconcat(), to label output on most output commands
(print, write, etc.), and to provide labeling information on plotting
commands such as plot() and chplot().  The only limitation is that any
keyword that is specially recognized by the command such as 'labels' or
'format' cannot be used as such a label.

Example:
  Cmd> boxplot(split(wts,race),vertical:T,\
         title:"Weights of Army recruits by race",ylab:"Pounds")

See also topics 'syntax', structure(), strconcat(), keyvalue()


Gary Oehlert 2003-01-15