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-2024.png

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.

 

Register now!

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
  • 1281 views
  • 0 likes
  • 3 in conversation