0

我正在尝试为散点图中的每个组添加频率计数 (n=)。

proc sgplot data= FrequencyAdd(where=(count = 6 and person = "Jim"));   
    scatter x=adm_dt y=Brand/ group = Brand freq=Freq_Flag;
run;

频率标志始终等于 1 并跟踪个人。

有什么建议么?

4

1 回答 1

0

假设信息在您的数据集中,请在名为 FREQ 的变量中尝试使用 TEXT 语句。

text x=adm_dt y=brand text=Freq;

https://documentation.sas.com/?docsetId=grstatproc&docsetTarget=n0lprj1bdrlrkgn1vmqnd7r6fnry.htm&docsetVersion=9.4&locale=en

为此,您确实需要更高版本的 SAS,我相信 9.4 M1+。

于 2019-05-08T19:55:05.540 回答