BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi All

I am trying to plot a cusum, but for some reason instead of the data starting and ending at zero. It just starts off at zero but doesnt end no where near zero.

Can anyone help me rectify this?

Thanks 🙂
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Share what SAS code you have today that is not generating the expected output. Reply to your post and COPY/PASTE your SAS log with all code revealed.

Scott Barry
SBBWorks, Inc.
deleted_user
Not applicable
This is the code that i used:

proc sort data=nov; by meanarea; run;

proc cusum data=nov;
xchart fslope*meanarea = range/vaxis=axis1 haxis = axis2
vref=0
nolegend nomask npanelpos=9999
mu0 = &mean_area
sigma0 =&sd_area
h=1 delta=0.5
totpanels=1;

axis1 label=(a=90'Unrounded Slope');
axis2 label=('Mean Area');
title1 h=2.5 'RSCP Data_Cusum Chart';
title2 h=1.5 c=blue 'Slope/Area Ratio Vs Date (25NOV10 Onwards)';
run;
quit;

and the log for above code is as follows:


337 proc cusum data=nov;
338 xchart fslope*meanarea = range/vaxis=axis1 haxis = axis2
339 vref=0
340 nolegend nomask npanelpos=9999
341 mu0 = &mean_area
342 sigma0 =&sd_area
343 h=1 delta=0.5
344 totpanels=1;
345
346 axis1 label=(a=90'Unrounded Slope');
347 axis2 label=('Mean Area');
348 title1 h=2.5 'RSCP Data_Cusum Chart';
349 title2 h=1.5 c=blue 'Slope/Area Ratio Vs Date (25NOV10 Onwards)';
350 run;

NOTE: Processing beginning for XCHART statement number 1.
WARNING: The NPANELPOS= option is ignored when the TOTPANELS= option is also specified.
WARNING: The horizontal axis may not necessarily conform with the HAXIS= list since
TOTPANELS= has also been specified.
WARNING: ANGLE= and/or ROTATE= values specified for a vertical axis label cannot be applied.
NOTE: TYPE=STANDARD is assumed since MU0= and SIGMA0= were specified.
NOTE: K = abs(DELTA/2) is assumed.
NOTE: There were 349 observations read from the data set WORK.NOV.
NOTE: At least one W.D format was too small for the number to be printed. The decimal may be
shifted by the "BEST" format.
NOTE: PROCEDURE CUSUM used (Total process time):
real time 0.07 seconds
cpu time 0.04 seconds


351 quit;
deleted_user
Not applicable
Hi All

Please ignore the whole post. I just got the cusum working the way i wanted. But don't know how to delete the post

Thank you

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!

What is Bayesian Analysis?

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 886 views
  • 0 likes
  • 2 in conversation