Help using Base SAS procedures

get RMSE using linear fit (slope=1 / intercept=0)

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 13
Accepted Solution

get RMSE using linear fit (slope=1 / intercept=0)

I want to get RMSE of a correlation plot vs. a linear fit  with slope=1 / intercept=0.

JMP can do it, but its hard if I'm using lots of by groups.

Below is the example using JMP

Fit Y by X.jpg

Thanks!


Accepted Solutions
Solution
‎05-15-2015 08:54 AM
SAS Employee
Posts: 340

Re: get RMSE using linear fit (slope=1 / intercept=0)

proc sort data=sashelp.class out=class;by sex;run;

proc reg data=class;

  by sex;

  model weight=height / noint;

  restrict height=1;

run;

quit;

View solution in original post


All Replies
Solution
‎05-15-2015 08:54 AM
SAS Employee
Posts: 340

Re: get RMSE using linear fit (slope=1 / intercept=0)

proc sort data=sashelp.class out=class;by sex;run;

proc reg data=class;

  by sex;

  model weight=height / noint;

  restrict height=1;

run;

quit;

Occasional Contributor
Posts: 13

Re: get RMSE using linear fit (slope=1 / intercept=0)

Posted in reply to gergely_batho

thanks!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 227 views
  • 0 likes
  • 2 in conversation