Library: | gam |
See also: | gamfit gamout intest intestpl gintest gintestpl list append delete |
Quantlet: | gamopt | |
Description: | defines a list with optional parameters in gam quantlets. The list is either created or new options are appended to an existing list. Note that gamopt does accept any values for the parameters without validation. |
Usage: | opt = gamopt(s0,s1{,s2,s3{,...}}) | |
Input: | ||
s0,s2,s4,... | string, name of the component to add. Allowed are: "x" (the discrete predictor variables) "loc" (dummy for local const, linear or quadr. estim.) "tg" (grid) "h" (bandwidth for the directions of interest) "g" (bandwidth for the directions of no interest) "code" (model code), "kern" (kernel function), "wx" (weights), "off" (offset), "shf" (show iteration), "miter" (maximal number of iterations), "cnv" (convergence criterion), "fscor" (Fisher scoring), "pow" (power), "nopic" (no picture), "descript" (add descriptive statistics), "pl" (partially linear model), "name" (output name), "xvars" (discrete variable names), "tvars" (variable names), "yvars" (name of y-variable), "title" (output title), "bv" (covariance matrix for b). | |
s1,s3,s5,... | scalar, value of the corresponding component to add. or string, name of the list where the components should be added, just allowed when this parameter follows parameter "title" (see notes below). | |
Output: | ||
opt | list, resulting list of options. |
library("gam") opt=gamopt("cnv",0.001,"miter",20,"title","MyExample") opt
Contents of opt.cnv [1,] 0.001 Contents of opt.miter [1,] 20 Contents of opt.title [1,] "MyExample"