I am using enterprise guide 9.3. I have a dataset that has mutiple rows for a customer. I want to look at how many contacts a customer has a well as payments over the course of a month.
I am using a proc means to summarize the data.
proc means data = gregory n;
class primekey agency employeecode;
var count;
where blank is eq to "contacts";
output out = contacts n;
RUN;
proc means data = gregory n;
class primekey agency employeecode;
var count;
where blank is eq to "promise";
output out = promises n;
RUN;
What I want to do is merge the two output datasets by primekey to have a result:
primekey # contacts #promises agency employeecode etc.
abc 10 3
The problem I am having is that I get _type_ and _freq_ variables, which I can drop using (drop= _type_ _freq_),
however I get summaries for multiple _types_. I only want to keep the one where all the variables are listed out.
Add this option to the PROC MEANS statement: NWAY
Add this option to the PROC MEANS statement: NWAY
Thanks for the assistance!
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.