Library: | finance |
See also: | spdest2 |
Quantlet: | spdopt | |
Description: | defines a list with optional parameters in spd functions. Note that spdopt does accept _any_ values for the parameters without checking validity. |
Usage: | opt = spdopt(s0{,s1{,s2{,...}}}) | |
Input: | ||
s0,s1,... | string, name or value of the component to add. Allowed are "ci" switch (confidence intervals), "res" switch (residual plot), "wx" numeric option (weights) should be followed by its value, i.e., (n x 1) vector of weights must come after "wx" option | |
Output: | ||
opt | list or string, resulting list of options or text "nooption". |
opt=spdopt("res","ci","wx",1|2|3) opt
switches on the options "res" and "ci" and sets the value of option "wx" Contents of opt.res [1,] 1 Contents of opt.ci [1,] 1 Contents of opt.wx [1,] 1 [2,] 2 [3,] 3