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

I would be grateful if someone could point out the error made in trying to generate this graph.

ERRORBAR=BOTH CLM= & LEVEL CERROR=RED;

                         -

                         22

                         200

ERROR: The parameter value 1 is not within the required range of 50 and 100.

NOTE: The previous statement has been deleted

%LET SS=15;*SAMPLE SIZE;

%LET CE=1; * PLOT ONE STANDARD ERROR;

DATA _NULL_;                             

  C=&CE;                                 

  N=&SS;                                 

  LEVEL=100 * (1 - 2 * (1 - PROBT(C,N-1)));

  CALL SYMPUT('LEVEL', PUT(LEVEL,BEST12.));

RUN;      
                              

GOPTIONS RESET=ALL;

PATTERN1 VALUE=SOLID C=LIGHTBLUE;

TITLE "MEANS WITH ERROR BARS";

ODS HTML;

DATA ACHE;

INPUT BRAND  RELIEF;

CARDS;

1 24.5

1 23.5

1 26.4

1 27.1

1 29.9

2 28.4

2 34.2

2 29.5

2 32.2

2 30.1

3 26.1

3 28.3

3 24.3

3 26.2

3 27.8

;

ODS HTML;

RUN ;

GOPTIONS RESET=ALL;

PATTERN1 VALUE=SOLID C=LIGHTBLUE;

TITLE "MEANS WITH ERROR BARS";

PROC gchart DATA=ACHE;

VBAR relief/ WIDTH= 15

TYPE=MEAN

SUMVAR=brand

ERRORBAR=BOTH CLM= & LEVEL CERROR=RED;

RUN ;

ODS HTML CLOSE;

QUIT ;

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Remove the space between & and level word for CLM.

View solution in original post

1 REPLY 1
Reeza
Super User

Remove the space between & and level word for CLM.

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 Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 1341 views
  • 0 likes
  • 2 in conversation