8/24/2023 0 Comments Proc freq sasIf A has two levels (1 and 2), B has three levels (1,2, and 3), and no table cell count is zero or missing, then the output data set D includes six observations, one for each combination of A and B levels. The output data set D contains frequencies and percentages for the table of A by B, which is the last table request listed in the TABLES statement. The following PROC FREQ statements create an output data set of frequencies and percentages: The OUTCUM option has no effect for two-way or multiway tables. The additional variables are as follows:ĬUM_FREQ, which contains the cumulative frequencyĬUM_PCT, which contains the cumulative percentage If you specify the OUTCUM option in the TABLES statement for a one-way table, the output data set also includes cumulative frequencies and cumulative percentages. PCT_COL, which contains the percentage of column frequency PCT_ROW, which contains the percentage of row frequency PCT_TABL, which contains the percentage of two-way table frequency, for n-way tables where The additional variables are as follows:ĮXPECTED, which contains the expected frequency If you specify the OUTPCT option for a two-way or multiway table, the output data set also includes row, column, and table percentages. If you specify the OUTEXPECT option in the TABLES statement for a two-way or multiway table, the output data set also includes expected frequencies. PERCENT, which contains the table cell percentage Table request variables, such as A, B, C, and D in the table request A* B* C* DĬOUNT, which contains the table cell frequency The output data set includes the following variables: When the input data set contains missing values, the output data set also contains an observation with the frequency of missing values. By default, each observation contains the frequency and percentage for the table cell. The OUT= option in the TABLES statement creates an output data set that contains one observation for each combination of variable values (or table cell) in the last table request. Contents of the TABLES Statement Output Data Set
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |