NewNameStat
NewNameStat

Reputation: 2614

How to display sample size in PROC REG output in SAS?

My question is very simple, is there a way to display sample size in PROC REG output in SAS? I've been googling to no avail.

Upvotes: 0

Views: 331

Answers (2)

NewNameStat
NewNameStat

Reputation: 2614

This is what worked for me:

proc reg data=data;
model y=x;
ods select parameterestimates nobs; *can add whatever other tables you are interested in;
run;

Here is a list of tables for PROC REG: http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_reg_sect051.htm

Upvotes: 0

scott
scott

Reputation: 2275

ods output nobs=numobs;
      proc reg;
         model y=x;
         run;

Upvotes: 1

Related Questions