BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Azhar_ca
Calcite | Level 5

hello  Folks

 

 

             I have school assignment as stated below

Does Sales amount(numeric variable) differ among different Accountstatus(char variable), Goodcredit( numerical variable 0 or 1), and CustomerAge (numeric varibale) Segments.

 

whats the best syntax  i was thinkinf of proc univariate

 

your input will be appreciated.

thanks

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

We won't do your homework for you. Experiment, see what you get. If there is something you don't understand, come back to us.

PG

View solution in original post

7 REPLIES 7
PGStats
Opal | Level 21

We won't do your homework for you. Experiment, see what you get. If there is something you don't understand, come back to us.

PG
Reeza
Super User

It depends. Usually you should have an idea of what procs you need based on what you’ve covered.

 

You may need FREQ, ANOVA, REG, GLM, UNIVARIATE or TTEST

Azhar_ca
Calcite | Level 5

Hi

 

 i I tried EARLIER

 

proc univariate

id;

class; 

histogram;

var;

run;

 

 

was looking for any  more precise option available as a beginner.

thanks for your kind input and understand my concern (beginner).

 

Have a Wonderful Day .

 

 

Reeza
Super User

@Azhar_ca wrote:

 

 

 

was looking for any  more precise option available as a beginner.

thanks for your kind input and understand my concern (beginner).

 

 


 

This has nothing to do with being a beginner in SAS. It has to do with properly formulating a question and being clear about what you're looking for and what you have. And realizing that homework is your job, not ours. We will help,but you need to clearly articulate your question AND what you've attempted - and this is more important on homework questions. 

 

You can find video tutorials here:

http://video.sas.com/#category/videos/sas-analytics-u

 

and the SAS e-course on Statistics is free, see the elearning section. 

 

Good Luck.

Azhar_ca
Calcite | Level 5
thanks for the link i find those videos quite helpful in clearing Some of the concepts of STATS.
Rick_SAS
SAS Super FREQ

PROC UNIVARIATE tells you about the distribution of one variable, so it isn't appropriate for your question. 

Have you been studying linear regression? If so, see the documentation for PROC GLM.

Look at the documentation for the MODEL statement and ask yourself, "How can I model the response variable to account for those other categorical and continuous variables?"

Azhar_ca
Calcite | Level 5

Hi thanks rick

i uses the following

 

/* 7) Does Sales amount differ among different account status, GoodCredit, and

customer age segments? */

 

proc tabulate data=final;

class Account_Status GoodCredit age_segment;

var sales;

table account_status, sales*(n sum mean stddev skewness);

table goodcredit, sales*(n sum mean stddev skewness);

table age_segment, sales*(n sum mean stddev skewness);

run;

 

/* Non parametic */

 

PROC NPAR1WAY data=final wilcoxon; 

Class account_status; 

Var sales; 

Exact; *OPTIONAL;

Run;

PROC NPAR1WAY data=final wilcoxon; 

Class GoodCredit; 

Var sales; 

Exact; *OPTIONAL;

Run;

/* GoodCredit based */

 

 

proc ttest data=final alpha=0.05;

var sales;

class GoodCredit;     

run;

 

 

 

PROC NPAR1WAY data=final wilcoxon; 

Class age_segment; 

Var sales; 

Exact; *OPTIONAL;

Run;

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 7 replies
  • 1973 views
  • 0 likes
  • 4 in conversation