BookmarkSubscribeRSS Feed
Luke01
Fluorite | Level 6

Hi community,

 

I'm struggling to find the best way to calculate the Reduced major axis regression between two variables.

 

Is there a proc command for this?

 

thanks in advance

5 REPLIES 5
Luke01
Fluorite | Level 6

im new to stats and SAS (student) so would you mind elaborating on what the values should be and what should remain unchanged in the formula?

 

eg is y for y axis variable? what needs to be subbed into b1 or abs (if anything)? etc

 

 

  proc nlp;
      min area;
      parms b1=1, b0=1;
      area=(y - (b0 + b1*x))**2 / abs(b1);
      run;

 

PaigeMiller
Diamond | Level 26

Y is the name of your response variable.

X is the name of your predictor variable.

 

If the SAS data set that contains your data has different variable names, then you substitute the actual variable names in place of X and Y.

--
Paige Miller
Luke01
Fluorite | Level 6

Hi Paige,

 

is there a way to do this university edition? I just found that this proc isnt available in this edition..

PaigeMiller
Diamond | Level 26

@Luke01 wrote:

 

is there a way to do this university edition?


Probably not.

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 5 replies
  • 2182 views
  • 0 likes
  • 2 in conversation