Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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".

Example:
opt=spdopt("res","ci","wx",1|2|3)
opt

Result:
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



Author: Z. Hlavka, 20040219 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006