BookmarkSubscribeRSS Feed
sasphd
Lapis Lazuli | Level 10

I try  to test for the equality of standard deviation of variables A and B in proc model.

test std(A)=std(B);

but it does not work. I have this message.

ERROR: The function STD requires at least 2 arguments. There are too few arguments for the

       function STD.

if I test only the equality of parameters. I write

test a=b;

and it works.

1 REPLY 1
BruceBrad
Lapis Lazuli | Level 10

The test statement in proc model (as in other SAS procs) is for testing constraints on the parameters of the model - not for testing characteristics of the variables themselves. The most straightforward way to test for the equality of standard deviations would be with proc ttest.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 958 views
  • 0 likes
  • 2 in conversation