|
data CLASS; data CLASS1; proc freq data=class;
|
|
Description: These SAS code snippets demonstrate how to perform frequency analysis on variables in a dataset named "class" using the proc freq procedure. The results of the frequency analysis are stored in separate output datasets named "counts01" and "counts02" for different table configurations. In the first code snippet: The proc freq procedure is used to compute frequencies of the variable "sex" in the "class" dataset. In the second code snippet: The proc freq procedure is used to compute frequencies of the combination of variables "sex" and "age" in a different dataset named "class1". |
|
class<-tribble( class1<-tribble(
|
|
Description: These R Tidyverse code snippets demonstrate how to perform frequency analysis on variables in a data frame named "class" using the count function from the dplyr package. The results of the frequency analysis are stored in separate data frames named "counts01" and "counts02" for different variable configurations. In the first code snippet: The count function is used to compute frequencies of the variable "Sex" in the "class" data frame. In the second code snippet: The count function is used to compute frequencies of the combination of variables "Sex" and "Age" in a different data frame named "class1". |