Find quick and accurate answers regarding usage, syntax, and common errors of CAS actions.
About this FAQ
Access the reference knowledge base for SAS Viya CAS actions. This technical FAQ covers syntax, parameters, and troubleshooting for common errors. Use the filters below to find code examples and optimized solutions for each specific action.
Filter by Action
2215
questions found
in the knowledge base
Page 43 / 45
It uses the `restore` parameter, which points to an in-memory table created from a binary large object (BLOB) that contains a previously fitted regression model....
You use the 'casOut' parameter to specify the settings for the output table, including its name and the caslib where it should be stored. For example: casOut={'name':'wide_table', 'caslib':'casuser'}....
You can use the 'sum', 'mean', 'max', 'min', 'range', or 'nMiss' parameters to specify the variables for which you want to compute these statistics. The results are added as new variables to the output table....
The 'groupBy' parameter specifies the variables to use for grouping results. Each unique combination of the groupBy variables will form a single row in the output wide-format table....
The 'prefix' parameter allows you to specify a prefix that will be applied to the names of the newly created reduced variables in the output table. The default prefix is 'rv'....
The maChart action produces uniformly weighted moving average charts. These charts are used to analyze the means of a process, where each point represents the average of the most recent 'n' subgroup means, with 'n' being the span of the moving average....
The process standard deviation is estimated using the method specified in the `sMethod` parameter. You can choose from three methods: 'RMSDF' (a weighted root mean square estimate), 'SMVLUE' (a minimum variance linear unbiased estimate based on subgroup standard deviations), or 'SNOWEIGHT' (an unwei...
The `span` parameter is a required integer that specifies the number of subgroups to use when calculating the moving average. Its value must be at least 1....
The `limitN` parameter specifies a nominal sample size for the control limits. If you provide a value for `limitN`, the control limits are calculated for that fixed sample size. Subgroups with sample sizes that do not match this nominal size may be excluded from the analysis, depending on other para...
By default, the maChart action requires subgroups to have a constant sample size. To include all subgroups in the analysis regardless of their sample size, you can set the `allN` parameter to TRUE. The control limits will then vary with the subgroup sample size....
The `limitsTable` is an input parameter that specifies a CAS table containing pre-calculated control limit parameters. This allows you to apply existing control limits to your data. Conversely, the `outLimitsTable` is an output parameter that creates a new CAS table to save the control limits calcul...
The required parameters are 'table' to specify the input data, 'channel' to define the channel variable, 'section' to identify the observation section, and 'time' to set the temporal order of observations....
The action can generate three main output tables: 'outcontribution' for contribution results, 'outremoval' for removal effect results, and 'outtpm' for the transition probability matrix....
The `algorithm` parameter specifies the algorithm to use for matching. The available options are 'AUTO', 'DISTRIBUTED', or 'SINGLE'. 'AUTO' is the default....
The matching criteria are defined using the `matchRules` parameter. It requires a list of rules, where each rule specifies the set of columns to be used for matching rows....
The `outTable` parameter specifies the output data table where the results, including the original columns and the new cluster IDs, are written. The `clusterId` parameter lets you name the column containing the cluster IDs, which defaults to 'cID'....
Yes, you can use the `doNotCluster` parameter. Specify the name of a column in the input table that contains a Boolean flag. If the value for a row is 'true' or '1', it will be placed in its own separate cluster....
By default, empty strings are treated as NULL values (`emptyStringIsNull` is TRUE). However, NULL values are not matched with each other (`nullValuesMatch` is FALSE). You can change these behaviors by setting these boolean parameters....
Yes, the `columns` parameter allows you to specify a list of column names from the input table to be passed through to the output table. If this parameter is not specified, all input columns will be included in the output....
The action supports two methods specified via the 'methodOptions' parameter: "DESCRIPTORMATCH" for matching using keypoint descriptors, and "TEMPLATEMATCH" for matching by template....
The 'descType' parameter is used only with the "DESCRIPTORMATCH" method. It specifies the type of descriptor to be computed on the keypoints, with options like "BRISK" or "ORB"....
The maxFlow action calculates the maximum flow of a graph. It is part of the Network Optimization action set, which provides tools for combinatorial and network flow optimization....
The maxFlow action uses two primary input tables: the 'links' table, which contains the graph link information, and the 'nodes' table, which contains the graph node information....
The 'direction' parameter specifies whether to treat the input graph as directed or undirected. If 'DIRECTED', flow is from a source (tail) node to a sink (head) node. If 'UNDIRECTED', flow can be in either direction along a link....
The maxFlow action returns several results, including: 'ProblemSummary' (a summary of the graph input), 'SolutionSummary' (a summary of the algorithm's solution), 'objective' (the total weight of the maximum network flow), and 'solutionStatus' (the solution status of the algorithm)....
The required parameters are 'idVariable', which specifies the variable used to group the target variable into baskets, 'table', which specifies the input data table, and 'tgtVariable', which specifies the target nominal variable for the analysis....
You can use the 'lift' parameter to specify the minimum lift value necessary to generate a rule. The value can range from 0 to 100, with a default of 1....
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.