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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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