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?
Related Questions in COUNT
- Pivot table outcomes are not the same and I cannot understand why
- Unable to figure out SQL Query to question
- How to find the consecutive nulls (NaN) in the columns of pandas dataframe?
- Count the number of occurrences of each variant of an enum
- R function to sum/count consecutives values - Rainfall indices
- How to use count for multiple column counts in one run
- VBA how to determine the number of rows in a variable defined by a range stored in an array
- Dates in R: Counting Instances and Number of Days
- Pivot data to Multiple columns in MySQL
- Excel Counting unique values within specific time interval
- Count Distinct Staff Ref Nos of those who have 1 or 2 or 3 records
- Multiple counts in different colums
- Count num of occurences of every 26 characters for every word in numpy
- Using one "class" or one "id" for multiple counters in javascript?
- Word count after executing mysql query
Related Questions in SAS
- Creating a new flag based on multiple conditions on SAS
- How to sum elements of a specific row?
- why the perl regular expression is not identifying the value
- How does the REPEAT FUNCTION deal with the trailing blanks from the string?
- Stopping SAS adding = to the end of file paths
- How can I collapse repeated missing observations into a single nonmissing observation for the same ID in SAS?
- Issues with Date format in SAS
- SAS Macro Variables
- Unbalanced data in SAS Enterprise Miner
- Cut intervals to add specific dates
- Last.variable not returning expected results
- SQL Filter Rows for Duplicate ID Based on Condition Different Column
- Proc GLM takes forever to load then crashes sas studio
- Having trouble setting x-axis endpoints in proc univariate
- I cannot export parameter estimates for different groups using proc model in SAS
Related Questions in FREQUENCY
- Saving freq() object into data frame
- mapping arbitrary frequency to midi note using audiokit microtonality
- Finding the frequency of the order of four different tests in R
- Vary time between tasks according to wave function
- How to get closest value in array and interpolate real
- 4-FSK GnuRadio demodulation
- Computing periodogram in r for my time-series data
- Types of Clustering for signal analysis
- How do I calculate frequency and descriptive statistics using summarytools for all columns in dataframe when applying grouping and weights?
- Power BI DAX: Calculate mode based on conditio
- The columns containing relative abundance taxa does not sum to 1 in R but the same data does in excel
- FIltering out chaotic noise from breathing sensor signal
- R: relative frequency in a table
- AD988 waveform generate (RaspberryPi, Python)
- Making a geographic heatmap using ggmap in R for depicting frequency distribution
Related Questions in PROC
- I cannot export parameter estimates for different groups using proc model in SAS
- Testing WiFi Linux driver for certification using procfs question
- How can I get a list of processes running by a specific user?
- I'm trying to understand recursion in Tcl, but every time the recursion finishes it throws errors
- Discrepancy between values in htop and /proc/meminfo
- PROC SORT not sorting properly
- Calculated a pooled AUC, bootstrapped 95% CI and then thresholding the curve following MICE imputation
- SQLSTATE=42829 while compiling a pro*c code with DB2 database
- How to access a list, that is passed to a proc to be modified, outside of that proc in TCL?
- collect /proc/<pid> information of process during process crash in linux
- tcl how to redefine "set" command
- Using SAS with multiple rows per ID to retain all records of that ID if any of them contain State=MI
- Mean Median legend for a boxplot using PROC TEMPLATE in SAS
- Getting numbers of true positives, negatives, likelihood ratio from a pROC ROC curve
- what is the difference between 'comm' file and 'cmdline' file in a /proc/<pid> directory?
Related Questions in TWO-WAY
- "flutter_webview" library api .runJavaScript() not working in iOS
- One-way ANOVA RM; Error in `spread()`: ! Each row of output must be identified by a unique combination of keys. ℹ Keys are shared for 12 rows
- R: Two-Way Repeated-Meausre ANOVA with only a selection of conditions
- WRS2 package error in post hoc test "Error in smmcrit(df, ncol(con)) : C must be less than or equal to 28"
- R: Two-Way Repeated-Meausre ANOVA with counterbalanced data set from within-subject design
- Rstatix anova_test doesn't recognize "correction" argument
- Plot with multiple participants
- Effect size for two-way ordinal ANOVA with cumulative link model
- R pairwise.adonis2 for post hoc test of 2-way PERMANOVA
- Failure to send data from client to server in ESP-01 WiFi
- Is there a command for moving bars in a twoway bar plot from the back to the front?
- Two-way ANOVA test in R not using correct degrees of freedom and not displaying interaction values
- Consuming SOAP web service with Two-Way TLS in SOAP UI
- Blazor & Entity Framework Two-Way-Binding
- Two-Way lookup in Python
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?
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)
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.