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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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