cant seem to get this to work .. tried a few different ways and get get different errors .
452 proc tabulate data=q2;
453 class country;
454 var parcid payment costprice;
455
456 table country all,
457 parcid*n
458 payment*sum
459 costprice*sum
460 payment-costprice*sum;
-
22
---------
202
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, ;, (, *, ',',
/, <, =, [, {.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
461
Hi,
Is this helpful?
proc tabulate data=sashelp.class;
class sex;
var height weight age;
table (sex all)*(height weight age)*(sum n);
run;
Linlin
no, i need to subtract: payment-costprice
I don't think you can do that in proc tabulate, ie create a new variable, you'll need either proc report or a datastep.
I typically prefer a datastep but it's up to you.
i also dont think you can . but my prof. taught us today that you can, but his example does not work ....
Then ask your prof to clarify or call Tech Support, they'll know the answer immediately.
FYI- you were correct !
shame that when i said it in class he did not listen to me . have a good day and thanks ! CL
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.
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.