I'm trying to do a power analysis, but even when I copy and paste SAS's online example, I get the following error message:
2 proc power;
3 custom
------
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
4 dist = chisquare
5 primnc = 0.23
6 testdf = 1
7 ntotal = 30
8 power = .;
9 run;
NOTE: The SAS System stopped processing this step because of errors.
Am I missing a part of my system that allows me to use the custom statement? I am using SAS for Windows 9.4.
What version of SAS/STAT do you have? It appears in at least 14.2+, not sure about prior versions
You can check with the following:
proc product_status;run;
Custom is not an option in Proc Power for SAS/Stat 14.1 or earlier.
Are you on a different platform? I believe the latest for SAS for Windows is 9.4. Is custom not provided in Windows?
Different modules have different version numbers. When you run the code I posted:
proc product_status;run;
It will post the version of SAS/STAT in your log. What version did it say was included?
Different items can be shipped as a customer may want to upgrade different portions for various reasons so 9.4 doesn't map to a specific version of SAS/STAT. You need to tell us what SAS/STAT version you have from running the code above and finding the value in the log besides SAS/STAT.
I have version 13.1. How would I go about upgrading that portion of my system?
With an up-to-date license your SAS admin should be able to request SAS updates.
There may however be some system limitations as there is a chance that your 13.1 is on a 32bit computer and the latest versions of SAS are for 64bit operating systems.
Any way, check with your SAS admin about updates.
SAS changed how they reference the module versions vs SAS releases a while back. SAS/9.4.4 has SAS/Stat 14.2.
The Proc Product_status indicates the versions of modules installed. For instance part of the result for my install:
For SAS/STAT ... Custom version information: 14.2 For SAS/GRAPH ... Custom version information: 9.4_M4 For High Performance Suite ... Custom version information: 2.2_M5
Different modules have different release sequences.
Thanks ballardw and reeza!
Assuming non commercial usage, SAS UE or SAS Academics on Demand will have the latest version of SAS/STAT.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.