BookmarkSubscribeRSS Feed
Liban
Calcite | Level 5

Hi all

I need some assistance on this metric. The metric contains CustID, # of flags for 2015Q1, 2014Q4 & 2014Q1. How can I show numerical trends current quarter to prior quarter  and current quarter to a year ago. My metric look like this


CustID2015Q1_flags2014Q4_flags2014Q1_flags
0120029222
0112595544
012444826277
012518922
01257821
0125792221
0120443454214
0125963472


Thanks in advance for your help.

5 REPLIES 5
M_Maldonado
Barite | Level 11

Hey Liban,

More info please. When you say you want to show the trend, do you mean you want to model the trend or explain the trend?

Or is this just a visualization exercise? what are you trying to do?

thanks,

Miguel

Liban
Calcite | Level 5

Thanks Miguel,

what i am trying to show base on the # of  flags for each client if the # of flags trending upward or downward without using visualization.I will welcome any suggestion on this.

Thanks,

Liban

gergely_batho
SAS Employee

Do you want to calculate the trend for each CustID?

Year_Trend = 2015Q1_flags - 2014Q1_flags

Qtr_Trend   = 2015Q1_flags - 2014Q4_flags

Or are you looking for a statistical test, that shows whether there is a trend? (Paired T-test)

Liban
Calcite | Level 5

Thanks Gergely,

I am looking for a statistical test and explain the trend?

Thanks,

Liban

gergely_batho
SAS Employee

Hi,

have a look at this PROC TTEST example:

SAS/STAT(R) 13.2 User's Guide

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!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1524 views
  • 0 likes
  • 3 in conversation