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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

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
  • 665 views
  • 0 likes
  • 2 in conversation