BookmarkSubscribeRSS Feed
Tim_sas_
Obsidian | Level 7

Hello,

 

I want to use the Proc Model statement to perform a regression of variable xy on a constant to determine the significance of the average coefficient. My problem is that the name of the dependent variable (xy) is not included in the output (please see figure below). When I used the Proc Reg statement the name of the dependent variable was always included in the Output (using ODS Output parameterestimates), but I do not know how I can include the name using Proc Model.

 

I would be very grateful for any help.

 

Many thanks,

 

Tim

 

Proc Model.JPG

Proc Model Data=Input;
parms b0;
Instruments / Intonly;
xy = b0;
Fit xy;
ODS Output parameterestimates = Out;
Run; Quit;
1 REPLY 1
Rick_SAS
SAS Super FREQ

Well, that's a bummer. I suppose you will have to use ODS OUTPUT to save another table that includes the name of the response variable. You can then merge the two data sets.

 

This might get you started:

proc model ...;
...
   ODS Output parameterestimates = Out1 ResidSummary=RS;
QUIT;

data Out;
merge Out1 RS(keep=Equation) ;
by Parameter notsorted;
run;

proc print data=Out;run;

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 416 views
  • 2 likes
  • 2 in conversation