Programming the statistical procedures from SAS

If Statement Regression

Reply
Occasional Learner
Posts: 1

If Statement Regression

We are trying to run a regression with only certain points of our data and this is the code we are trying to use. It is not working and we can't find information about this anywhere. Please help.

 

proc if (incm < 24000 and zsmhc < 5000) then;
REG;
MODEL BURDEN = VARS;

RUN;

Respected Advisor
Posts: 3,061

Re: If Statement Regression

Posted in reply to JoeSchmo517
proc reg data=mydataset(where=(incm<24000 and zsmhc<5000));
--
Paige Miller
Esteemed Advisor
Posts: 5,540

Re: If Statement Regression

Posted in reply to JoeSchmo517

@JoeSchmo517 wrote:

We are trying to run a regression with only certain points of our data and this is the code we are trying to use. It is not working and we can't find information about this anywhere. Please help.

 

proc if (incm < 24000 and zsmhc < 5000) then;
REG;
MODEL BURDEN = VARS;

RUN;


Come on!

 

http://documentation.sas.com/?docsetId=statug&docsetVersion=14.3&docsetTarget=statug_reg_syntax.htm&...

 

http://documentation.sas.com/?docsetId=lrcon&docsetTarget=p0yz276wqqdq95n0zwq5lgnfylxb.htm&docsetVer...

PG
Ask a Question
Discussion stats
  • 2 replies
  • 103 views
  • 0 likes
  • 3 in conversation