BookmarkSubscribeRSS Feed
Thalitacosta
Obsidian | Level 7

Bom dia!

A partir do código:

 

proc freq data=base;

by mês;

tables tipo_cliente*folha / out=data1;

run;

 

Criei a tabela a seguir, mas preciso que ela fique com as seguintes variáveis, respectivamente: mes, folha, count_tipo_cliente (se for 0), count_tipo_cliente (se for 1).

 

Ou seja, preciso separar a variável "tipo_cliente" em duas colunas, caso seja 0 e caso seja 1.

 

OUTDATA criada:

mestipo_clientefolhacountpercent
1032118819.59
1052520823.31
10775666.99
1135290.49
11510660.98
1175220.48
2032325316.94
2053968328.91
207123549.00
2136320.46
21520441.49
2178710.63

 

 

 

 

 

 
 

 

1 REPLY 1
jimbarbour
Meteorite | Level 14

Bom dia.  ?Como vais voce?

 

I think this is the same question as was posted elsewhere.  I believe @ballardw already answered it, yes?  or is there another question here?  (I don't speak Portuguese except for a few words)

 

Jim

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for 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
  • 781 views
  • 0 likes
  • 2 in conversation