markdown SAS中的频率

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown SAS中的频率相关的知识,希望对你有一定的参考价值。

# Frequency in SAS

Used using the proc freq statement


## complete frequency table 

```sas
proc freq data=work.test;
run;
```

## Frequency of only one variable. This uses the **table**  keyword.

#### Table

```sas 
proc freq data=work.test;
table post;
run;
```

## Two table

```sas 
proc freq data=work.test;
table post project;
run;
```

## Two way tables

```sas
proc freq data=work.test;
table post*project;
run;
```

## Three way tables

```sas
proc freq data=work.test;
table post*project*salary;
run;
```


## List view 

```sas
proc freq data=work.test;
table post*rating/list;
run;
```

## Removing cummulative value

```sas 
proc freq data=work.test;
table post/nofreq;
run;
```

## Removing percentage

```sas 
proc freq data=work.test;
table post/nopercent;
run;
```

## Removing cummulative values from only one in the two tables

```sas
proc freq data=work.test;
table post;
table project/nocum;
run;
```

## Removing row in the two way tables

```sas
proc freq data=work.test;
table post*rating/norow;
run;
```

## Removing row and percentage in the two way tables

```sas
proc freq data=work.test;
table post*rating/norow nopercent;
run;
```

## Removing row, percentage and freq as well in the two way tables

```sas
proc freq data=work.test;
table post*rating/norow nopercent nofreq;
run;
```

以上是关于markdown SAS中的频率的主要内容,如果未能解决你的问题,请参考以下文章

SAS创建一个可变频率的频率

SAS:使用宏格式化多个proc频率

markdown SAS的全球声明

markdown 在SAS中计算平均值

markdown SAS规则

markdown 在SAS中创建/导入数据