var icon = '<img src="/SCS/icons/sas9.jpg" width=15 height=17>';
var macmenu =
[
	[null, 'Graphical methods', null, null, null,
		[null, 'Univariate displays', null, null, null,
//			[icon, 'boxanno', '/SCS/sssg/boxanno.html', '_self', 'Annotate a scatter plot with univariate boxplots'],
			[icon, 'boxplot', '/SCS/sssg/boxplot.html', '_self', 'Box-and-whisker plots'],
			[icon, 'density', '/SCS/sssg/density.html', '_self', 'Nonparametric univariate density estimates'],
			[icon, 'dotplot', '/SCS/sssg/dotplot.html', '_self', 'Dotplots'],
			[icon, 'nqplot', '/SCS/sssg/nqplot.html', '_self', 'Normal QQ plot'],
			[icon, 'splot', '/SCS/sasmac/splot.html', '_self', 'Schematic boxplots (printer version)'],
			[icon, 'symbox', '/SCS/sasmac/symbox.html', '_self', 'Boxplots for transformations to symmetry'],
			[icon, 'symplot', '/SCS/sssg/symplot.html', '_self', 'Diagnostic plots for transformations to symmetry']
        ],
		[null, 'Bivariate displays', null, null, null,
			[icon, 'contour', '/SCS/sssg/contour.html', '_self', 'Plot data ellipses for X'],
			[icon, 'ellipses', '/SCS/sasmac/ellipses.html', '_self', 'Plot bivariate data ellipses'],
			[icon, 'lowess', '/SCS/sssg/lowess.html', '_self', 'Locally weighted scatterplot smoother'],
			[icon, 'miplot', '/SCS/sasmac/miplot.html', '_self', 'Plot X-Y data for missing data from PROC MI'],
			[icon, 'resline', '/SCS/sasmac/resline.html', '_self', 'Resistant line for bivariate data'],
			[icon, 'sparkline', '/SCS/sasmac/sparkline.html', null, 'Draw sparklines, with control of aspect ratio'],
			[icon, 'sunplot', '/SCS/sasmac/sunplot.html', '_self', 'Sunflower plot for X-Y data'],
			[icon, 'surface', '/SCS/sasmac/surface.html', null, 'Draw color 3D surface plot with contours in X-Y plane'],
        ],
		[null, 'Multivariate displays', null, null, null,
			[icon, 'biplot', '/SCS/vcd/biplot.html', '_self', 'Generalized biplot of observations and variables'],
			[icon, 'canplot', '/SCS/sasmac/canplot.html', '_self', 'Canonical discriminant structure plot'],
			[icon, 'coplot', '/SCS/sasmac/coplot.html', '_self', 'Construct a conditioning plot - plots of y * x | z'],
			[icon, 'corrgram', '/SCS/sasmac/corrgram.html', '_self', 'Draw a correlogram'],
			[icon, 'cqplot', '/SCS/sasmac/cqplot.html', '_self', 'Chi-square Q-Q plots'],
			[icon, 'faces', '/SCS/sasmac/faces.html', '_self', 'Faces display for multivariate data'],
			[icon, 'genscat', '/SCS/sasmac/genscat.html', null, 'Generalized scatterplot matrix'],
			[icon, 'hecan', '/SCS/sasmac/hecan.html', null, 'Canonical discriminant HE plots'],
			[icon, 'hemat', '/SCS/sasmac/hemat.html', '_self', 'HE plots for all pairs of response variables'],
			[icon, 'hemreg', '/SCS/sasmac/hemreg.html', '_self', 'Extract H and E matrices for multivariate regression'],
			[icon, 'heplot', '/SCS/sasmac/heplot.html', '_self', 'Plot Hypothesis and Error matrices for a bivariate MANOVA effect'],
			[icon, 'heplots', '/SCS/sasmac/heplots.html', null, 'Plot Hypothesis and Error matrices for a MLM'],
			[icon, 'mpower', '/SCS/sasmac/mpower.html', '_self', 'Retrospective power analysis for multivariate GLMs'],
			[icon, 'outlier', '/SCS/sssg/outlier.html', '_self', 'Robust multivariate outlier detection'],
			[icon, 'robcov', '/SCS/sasmac/robcov.html', '_self', 'Calculate robust covariance matrix via MCD or MVE'],
			[icon, 'scatmat', '/SCS/sssg/scatmat.html', '_self', 'Scatterplot matrix'],
			[icon, 'scatter', '/SCS/sasmac/scatter.html', '_self', 'Scatterplot matrix with SAS/INSIGHT'],
			[icon, 'stars', '/SCS/sssg/stars.html', '_self', 'Star plot for multivariate data']
        ],
		[null, 'Cluster analysis', null, null, null,
			[icon, 'gtree', '/SCS/sasmac/gtree.html', '_self', 'Draw a tree dendrogram from PROC CLUSTER/VARLCUS output']
        ],
		[null, 'Maps', null, null, null,
			[icon, 'ccmap', '/SCS/sasmac/ccmap.html', '_self', 'Conditioned choropleth maps'],
			[icon, 'map2gen', '/SCS/sasmac/map2gen.html', '_self', 'Convert a SAS/Graph map to ArcView Generate format'],
        ]
    ],
//	_cmSplit,

	[null, 'Linear models', null, null, null,
		[null, 'ANOVA', null, null, 'Analysis of Variance models',
			[icon, 'alleff', '/SCS/sasmac/alleff.html', null, 'All-effects plot for a factorial ANOVA design'],
			[icon, 'effplot', '/SCS/sasmac/effplot.html', null, 'Effect displays for linear models'],
        	[icon, 'hovplot', '/SCS/sasmac/hovplot.html', null, 'Boxplot display of homogeneity of variance tests'],
			[icon, 'meanplot', '/SCS/sasmac/meanplot.html', '_self', 'Plot means for factorial designs'],
			[icon, 'orpoly', '/SCS/sasmac/orpoly.html', '_self', 'Orthogonal polyomial contrasts (unequal spacing | N)'],
			[icon, 'poly', '/SCS/sasmac/poly.html', '_self', 'Generate polynomial contrasts (equal spacing'],
			[icon, 'twoway', '/SCS/sssg/twoway.html', '_self', 'Diagnostic plots for two-way tables'],
        ],
		[null, 'Regression', null, null, 'Regression models',
			[icon, 'cpplot', '/SCS/sasmac/cpplot.html', '_self', 'Plots of Mallows C(p) and related statistics for model selection'],
			[icon, 'effplot', '/SCS/sasmac/effplot.html', null, 'Effect displays for linear models'],
			[icon, 'partial', '/SCS/sssg/partial.html', '_self', 'Partial regression residual plots'],
			[icon, 'inflplot', '/SCS/sasmac/inflplot.html', '_self', 'Influence plot for regression models'],
			[icon, 'robust', '/SCS/vcd/robust.html', '_self', 'M-estimation for robust models fitting via IRLS'],
			[icon, 'rsqdelta', '/SCS/sasmac/rsqdelta.html', '_self', 'Compute R-square change and F-statistics in regression'],
        ],
		[null, 'Multivariate', null, null, 'Multivariate ANOVA and regression',
			[icon, 'hecan', '/SCS/sasmac/hecan.html', null, 'Canonical discriminant HE plots'],
			[icon, 'hemat', '/SCS/sasmac/hemat.html', '_self', 'HE plots for all pairs of response variables'],
			[icon, 'hemreg', '/SCS/sasmac/hemreg.html', '_self', 'Extract H and E matrices for multivariate regression'],
			[icon, 'heplot', '/SCS/sasmac/heplot.html', '_self', 'Plot Hypothesis and Error matrices for a bivariate MANOVA effect'],
			[icon, 'heplots', '/SCS/sasmac/heplots.html', null, 'Plot Hypothesis and Error matrices for a MLM'],
        ],
		[null, 'Transformations', null, null, 'Transformations',
			[icon, 'boxcox', '/SCS/sasmac/boxcox.html', '_self', 'Power transformations by Box-Cox method'],
			[icon, 'boxglm', '/SCS/sasmac/boxglm.html', '_self', 'Power transformations by Box-Cox method for GLM'],
			[icon, 'boxtid', '/SCS/sasmac/boxtid.html', '_self', 'Power transformations by Box-Tidwell method'],
			[icon, 'sprdplot', '/SCS/sasmac/sprdplot.html', '_self', 'Spread-Level plot to find transformation to equalize variances'],
        ],
		[null, 'Power', null, null, 'Power computations',
			[icon, 'fpower', '/SCS/sasmac/fpower.html', '_self', 'Power computations for ANOVA designs'],
			[icon, 'mpower', '/SCS/sasmac/mpower.html', '_self', 'Retrospective power analysis for multivariate GLMs'],
			[icon, 'power', '/SCS/sasmac/power.html', '_self', 'Power calculations for general linear models'],
			[icon, 'rpower', '/SCS/sasmac/rpower.html', '_self', 'Retrospective power analysis for univariate GLMs'],
        ],
	],
//	_cmSplit,

	[null, 'Categorical data', null, null, null,
		[null, 'Discrete distributions', null, null, 'Fitting and graphing discrete distributions',
			[icon, 'distplot', '/SCS/vcd/distplot.html', '_self', 'Plots for discrete distributions'],
			[icon, 'goodfit', '/SCS/vcd/goodfit.html', '_self', 'Goodness of fit tests for discrete distributions'],
			[icon, 'ordplot', '/SCS/vcd/ordplot.html', '_self', 'Diagnose form of discrete frequency distribution'],
			[icon, 'poisplot', '/SCS/vcd/poisplot.html', '_self', 'Poissonness plot for discrete distributions'],
			[icon, 'rootgram', '/SCS/vcd/rootgram.html', '_self', 'Hanging rootograms for discrete distributions']
		],
		[null, 'Two-way tables', null, null, 'Fitting and graphing discrete distributions',
			[icon, 'agree', '/SCS/vcd/agree.html', '_self', 'Agreement chart for n x n table'],
			[icon, 'agreeplot', '/SCS/sasmac/agreeplot.html', null, 'Macro program for agreement plots'],
			[icon, 'corresp', '/SCS/vcd/corresp.html', '_self', 'Correspondence analysis of contingency tables'],
			[icon, 'ffold', '/SCS/vcd/ffold.html', '_self', 'Fourfold display for 2 x 2 x k tables'],
			[icon, 'fourfold', '/SCS/vcd/fourfold.html', '_self', 'Fourfold display for 2 x 2 x k tables'],
			[icon, 'power2x2', '/SCS/vcd/power2x2.html', '_self', 'Power for 2 x 2 tables'],
			[icon, 'powerrxc', '/SCS/vcd/powerrxc.html', '_self', 'Power for ChiSquare test of independence'],
			[icon, 'sieve', '/SCS/vcd/sieve.html', '_self', 'Sieve diagrams for two-way tables'],
			[icon, 'sieveplot', '/SCS/vcd/sieveplot.html', '_self', 'Macro for sieve diagrams'],
			[icon, 'missrc', '/SCS/sasmac/missrc.html', '_self', 'MLEs for incomplete n-way contingency tables'],
		],
		[null, 'Mosaic displays', null, null, 'Programs and macros for mosaic plots',
			[icon, 'genscat', '/SCS/sasmac/genscat.html', null, 'Generalized scatterplot matrix'],
			[icon, 'mosaic', '/SCS/vcd/mosaic.html', '_self', 'Macro interface for mosaic displays'],
			[icon, 'mosaics', '/SCS/vcd/mosaics.html', '_self', 'SAS/IML programs for mosaic displays'],
			[icon, 'mosmat', '/SCS/vcd/mosmat.html', '_self', 'Macro interface for mosaic matrices']
        ],
		[null, 'Generalized linear models', null, null, 'Logistic regression and logit models',
			[icon, 'addvar', '/SCS/vcd/addvar.html', '_self', 'Added variable plots for logistic regression'],
			[icon, 'catplot', '/SCS/vcd/catplot.html', '_self', 'Plot observed and predicted logits for logit models'],
			[icon, 'effplot', '/SCS/sasmac/effplot.html', null, 'Effect displays for linear models'],
			[icon, 'halfnorm', '/SCS/vcd/halfnorm.html', '_self', 'Half normal plot for generalized linear models'],
			[icon, 'inflglim', '/SCS/vcd/inflglim.html', '_self', 'Influence plots for generalized linear models'],
			[icon, 'inflogis', '/SCS/vcd/inflogis.html', '_self', 'Influence plot for logistic regression models'],
			[icon, 'logodds', '/SCS/vcd/logodds.html', '_self', 'Plot empirical log-odds for logistic regression'],
			[icon, 'powerlog', '/SCS/vcd/powerlog.html', '_self', 'Power for logistic regression'],
			[icon, 'robust', '/SCS/vcd/robust.html', '_self', 'M-estimation for robust models fitting via IRLS']
        ],
//		[icon, 'corresp', '/SCS/sssg/corresp.html', '_self', 'Correspondence analysis [SSSG]'],
    ],
//	_cmSplit,

	[null, 'Structural equation models', null, null, null,
		[icon, 'caliscmp', '/SCS/sasmac/caliscmp.html', '_self', 'Compare model fits from PROC CALIS'],
		[icon, 'calisgfi', '/SCS/sasmac/calisgfi.html', null, 'Produce a readable display of CALIS GFI statistics'],
		[icon, 'csmpower', '/SCS/sasmac/csmpower.html', '_self', 'Power estimation for Covariance Structure Models'],
		[icon, 'eqs2ram', '/SCS/sasmac/eqs2ram.html', null, 'Parse LINEQS statements to form a RAM-list dataset'],
		[icon, 'ram2dot', '/SCS/sasmac/ram2dot.html', null, 'Draw a path diagram from CALIS RAM-list data set'],
		[icon, 'str2ram', '/SCS/sasmac/str2ram.html', null, 'Create a RAM-list data set from RAM text strings'],
    ],
//	_cmSplit,

	[null, 'Utility macros', null, null, null,
		[null, 'Data utility', null, null, null,
			[icon, 'combine', '/SCS/sasmac/combine.html', null, 'Combine the values of two or more variables'],
			[icon, 'combos', '/SCS/sasmac/combos.html', null, 'Create some/all combinations of N things, K at a time'],
//			[icon, 'dummy', '/SCS/sasmac/dummy.html', '_self', 'Construct dummy variables for regression models'],
			[icon, 'dummy', '/SCS/vcd/dummy.html', '_self', 'Macro to create dummy variables'],
			[icon, 'expgrid', '/SCS/sasmac/expgrid.html',  '_self','Create a data set from all combinations of factors'],
			[icon, 'interact', '/SCS/vcd/interact.html', '_self', 'Create interaction variables'],
			[icon, 'jitter', '/SCS/sasmac/jitter.html', '_self', 'Add noise to numeric variables to prevent overplotting'],
			[icon, 'lags', '/SCS/vcd/lags.html', '_self', 'Macro for lag sequential analysis'],
			[icon, 'map2gen', '/SCS/sasmac/map2gen.html', '_self', 'Convert a SAS/Graph map to ArcView Generate format'],
			[icon, 'multisummary', '/SCS/sasmac/multisummary.html', '_self', 'Calculate summary statistics for multiple variables'],
			[icon, 'mvnormal', '/SCS/sasmac/mvnormal.html', null, 'Generate multivariate normal samples'],
			[icon, 'sas2vsta', '/SCS/sasmac/sas2vsta.html', '_self', 'Generate a ViSta input file from a SAS dataset'],
			[icon, 'scale', '/SCS/sasmac/scale.html', '_self', 'Rescale variables to a given range'],
			[icon, 'slice', '/SCS/sasmac/slice.html', '_self', 'Divide a variable into slices'],
			[icon, 'sort', '/SCS/vcd/sort.html', '_self', 'Generalized dataset sorting by format or statistic'],
			[icon, 'stat2dat', '/SCS/sasmac/stat2dat.html', '_self', 'Convert summary dataset to raw data equivalent'],
			[icon, 'table', '/SCS/vcd/table.html', '_self', 'Construct a grouped frequency table']
        ],
		[null, 'Graphics utility', null, null, 'Graphical annotations and device control',
			[icon, 'axis', '/SCS/sasmac/axis.html', null, 'Create Annotate data set to draw an X or Y axis'],
			[icon, 'bars', '/SCS/vcd/bars.html', '_self', 'Create an annotate data set to draw error bars'],
			[icon, 'boxanno', '/SCS/sssg/boxanno.html', '_self', 'Annotate a scatter plot with univariate boxplots'],
			[icon, 'boxaxis', '/SCS/sssg/boxanno.html', '_self', 'Annotate an axis with a univariate boxplot'],
			[icon, 'equate', '/SCS/vcd/equate.html', '_self', 'Creates AXIS statements for a GPLOT with equated axes'],
			[icon, 'gask', '/SCS/sasmac/gask.html', '_self', 'Retrieve graphics options to global macro variables'],
			[icon, 'gbank', '/SCS/sasmac/gbank.html', null, 'Calculate width or height to bank a plot to 45 deg'],
			[icon, 'gdispla', '/SCS/vcd/gdispla.html', '_self', 'Device-independent DISPLAY/NODISPLAY control'],
			[icon, 'genpat', '/SCS/sasmac/genpat.html', '_self', 'Generate PATTERN statements'],
			[icon, 'gensym', '/SCS/vcd/gensym.html', '_self', 'Generate SYMBOL statements'],
			[icon, 'gkill', '/SCS/sasmac/gkill.html', null, 'Delete entries in a graphics catalog'],
			[icon, 'gskip', '/SCS/vcd/gskip.html', '_self', 'Device-independent macro for multiple plots'],
			[icon, 'inset', '/SCS/sasmac/inset.html', null, 'Replay one graph inside another'],
			[icon, 'label', '/SCS/vcd/label.html', '_self', 'Create an Annotate dataset to label observations'],
			[icon, 'labels', '/SCS/sasmac/labels.html', null, 'Create an Annotate dataset to label observations'],
			[icon, 'lines', '/SCS/sasmac/lines.html', null, 'Create an Annotate dataset to draw lines in a plot'],
			[icon, 'panels', '/SCS/vcd/panels.html', '_self', 'Display a set of plots in rectangular panels'],
			[icon, 'points', '/SCS/vcd/points.html', '_self', 'Create an Annotate dataset to draw points in a plot'],
			[icon, 'polygons', '/SCS/sasmac/polygons.html', null, 'Create Annotate dataset to draw a polygon(s)'],
			[icon, 'pscale', '/SCS/vcd/pscale.html', '_self', 'Construct annotations for a probability scale'],
			[icon, 'regline', '/SCS/sasmac/regline.html', null, 'Create annotate data set to draw a regression line'],
			[icon, 'rug', '/SCS/sasmac/rug.html', null, 'Create annotations for a rug plot along an axis']
        ],
		[null, 'Macro utility', null, null, 'Used in writing general macros',
			[icon, 'expglm', '/SCS/sasmac/expglm.html', null, 'Expand a GLM model specification from bar notation'],
			[icon, 'defined', '/SCS/sasmac/defined.html', null, 'Determine if a macro variable is defined'],
			[icon, 'lastword', '/SCS/sasmac/lastword.html', null, 'Return the last word from a delimited list of words'],
			[icon, 'vexpand', '/SCS/sasmac/vexpand.html', null, 'Expand abbreviated variable lists'],
  			[icon, 'words', 'http://euclid.psych.yorku.ca/ftp/sas/macros/util/words.sas', '_self', 'Return number of words in string'],
        ],
		[null, 'Color', null, null, 'Working with color palettes',
  			[icon, 'bpycolors', '/SCS/sasmac/bpycolors.html', '_self', 'Create n colors from Blue - Pink - Yellow palette'],
  			[icon, 'brewerpal', '/SCS/sasmac/brewerpal.html', '_self', 'Generate Brewer color palette(s)'],
			[icon, 'colochrt', '/SCS/sasmac/colorchrt.html', '_self', 'Produce color chart from a data set of color values'],
			[icon, 'colorramp', '/SCS/sasmac/colorramp.html', '_self', 'Construct a sequential or diverging color set']
        ]
    ],
//	_cmSplit,

	[null, 'My Books', null, null, null,
		[null, 'SAS System for Statistical Graphics', '/SCS/sssg/', null, null],
		[null, 'Visualizing Categorical Data', '/SCS/vcd/', null, null],
		[null, 'Visual Statistics', 'http://www.uv.es/visualstats/Book/', null, null]
    ]

];
