I have been using the proc freq command to create a two-way table of counts. I have two columns of variables, and want to make a matrix, such that the variables in Column A are grouped in rows, and the variables in Column B become columns. The names of the columns are the variables from Column B. How does one produce a SAS dataset like this, where the entries in the table are the counts of the Column A/Column B pairings?
SAS Two-way count table: How to produce?
1.2k Views Asked by Don Katz At
1
There are 1 best solutions below
Related Questions in COUNT
- Assigning count from enumerate
- PHP - Create unique id number for each item
- Impala Query: Combine multiple COUNT DISTINCT WHERE clauses
- MySQL Multiple Conditions on Group By / Having Clause
- Excel: Only count unique cells from Countif
- SQL Several Count
- sql select 5 higest values
- Count files in a directory while excluding others by directory and subdirectories using PHP
- What is wrong in java for loop
- Count multidimensional array
- Group by hour of day then Count # in each group
- Count Distinct Number of Email Addresses in the Results of a Query in MS Access
- Javascript constructor function to count the number of instances
- Select and create month row and count the data - MySQL
- Trying to use output of one function to influence the next function to count words in text file
Related Questions in SAS
- SAS ods html generates additional html code
- SAS- Defining Page Breaks inside Macro
- Creating an ID variable for duplicates in SAS
- Categorize one table based on contents of a column in another table
- Adding a single record in SAS?
- How to create SAS EG Flow programmatically?
- How to change the column headers of a sas dataset into an observation?
- Creating URL via JavaScript on image click
- How to Declare Global Array Variable in SAS?
- SAS proc sql - how to read in log of variable but retain the variable's label
- select maximum value of common column for multiple data set
- SAS Concatenate Multiple Variables to Create Data-Driven Macro Statements
- How do I stop SAS from adding an extra empty byte to every string variable when I use PROC EXPORT?
- SAS: Extract ID's separated by dashes from text string
- Conditionally skip transformations in SAS DIS
Related Questions in FREQUENCY
- Sorting entire csv by frequency of occurence in one column
- Working of rand() and mt_rand() functions in php
- Frequency Count in Haskell
- csv to frequency polygon using R or python
- How to Send Specific Frequency Through Audio Jack
- How to do insert method on Word Frequency counter using linked list
- Python: Most frequent character counter
- Low and High Pass Filters with Specific Cutoff
- How to get the low, middle and high frequency components of an image?
- Dynamic programming: how to design algorithm for when there are two factors to consider?
- Scala first program issue
- Apply a Frequency to an Element in an Array
- How can I select a frequency if the frequency range is given?
- Sum if frequency countif unique cells
- Counting majority vote in R
Related Questions in PROC
- SAS how to get random selection by group randomly split into multiple groups
- Having trouble calling a Proc within a Method within a Class
- Linux : /proc/<PID>/exe return path to executable '/bin/bash' for process located at '/home/<USER>/new/v'
- How to pass comma seperated values in IN where clause
- confused with swap,free and /proc/pid/smaps show different results
- Pass a dynamic array to iterate over proc sql
- Re-use a cursor instead re-open
- Lambda local variable default value fails to use the closured local variable
- SAS Proc IML Optimization
- SAS, PROC FORMAT change string to numeric
- SAS 9.3 Proc Rank Issues (Rank/Sort Road Block)
- Sum statement in PROC SQL on SAS
- Compilation error when compiling pro*C file with include files not recognizing, even after specifying the ProjectDir (Visual Studio 2012)
- Tcl pass args "as is" to proc
- Use Proc or Module
Related Questions in TWO-WAY
- Is it possible to synchronize two mscrollbar (two-way)?
- what is two way data binding in angular
- Component binding not working : Angularjs
- What's the correct way to use twoWay directive in vue2.0
- Android ListView how to scroll vertically and horizontally ?
- two-way bridge using twisted
- Two-way contingency table in R
- Creating a table with R
- Centralizing outgoing two-way SSL connections
- jQuery templates plugin: how to create two-way binding?
- Two Way Data-binding is not Updating for ComboBox & ToggleButton?
- ItemsControl with databound ItemsSource and two-way binding of elements (replacable items)
- SAS Two-way count table: How to produce?
- Two-way SSL clarification
- My Combobox Selected Value binding doesn't flow back in Two Way Data binding
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Don,
If I understand your question correctly then the example below might work. There will be an issue in that combinations of column_a and column_b that do not exist will show up as missing values, but you could redefine them to zero in a data set afterwards if that matters.