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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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