BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Thalitacosta
Obsidian | Level 7

Como faço para ter a mesma tabela obtida pelo código abaixo em "resultados", exatamente o mesmo, mas nos "dados de saída"?

 

proc freq/base;
tabela dt*dt_end / out=matriz norow nocol nopercent;
executar;

1 ACCEPTED SOLUTION

Accepted Solutions
StatDave
SAS Super FREQ

The information from the TABLE statement is in the OUT= data set, but it is just arranged differently. If you want a data set that has the same basic arrangement as in the displayed output, you can create it using PROC TRANSPOSE. The following creates data set MATRIZ2 that is arranged like the displayed output.

proc transpose data=matriz out=matriz2 prefix=dt_end_; 
by dt; id dt_end; var count; 
run;

View solution in original post

1 REPLY 1
StatDave
SAS Super FREQ

The information from the TABLE statement is in the OUT= data set, but it is just arranged differently. If you want a data set that has the same basic arrangement as in the displayed output, you can create it using PROC TRANSPOSE. The following creates data set MATRIZ2 that is arranged like the displayed output.

proc transpose data=matriz out=matriz2 prefix=dt_end_; 
by dt; id dt_end; var count; 
run;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 232 views
  • 0 likes
  • 2 in conversation