BookmarkSubscribeRSS Feed
Mike7
Calcite | Level 5

So the endogenous statement in proc qlim is to specify that dependent variable on the left hand side of the equation is endogenous;

proc qlim data = mydata itprint;
title "enrolled logit regression model results";
class race gender;
model curr_enrolled = age race gender;
endogenous curr_enrolled ~ discrete (distribution = logit);
output out =logit marginal proball;
run;

 

how else can we accomplish the same results?

 

 

1 REPLY 1
gunce_sas
SAS Employee

Hello,

 

The ENDOGENOUS statement in PROC QLIM is for specifying the type of dependent variables that appear on the left-hand side of the equation. In other words, endogenous variables listed after each ENDOGENOUS statement refer to the dependent variables that appear on the left-hand side of the equation. You can also use the options of the MODEL statement to achieve the same result. For example, in the SAS code you wrote, you may as well accomplish the same results by the commands below:

 

proc qlim data = mydata itprint;

title "enrolled logit regression model results";

class race gender;

model curr_enrolled = age race gender / discrete (distribution = logit);

output out =logit marginal proball;

run;

 

Note that if you have the endogeneity problem in your model, that is, if one or more of your regressors are correlated with your model errors, the ENDOGENOUS statement is not how you can take into account this problem in your estimations. In the case of endogeneity, you should estimate your model of interest (the structural equation) and the reduced form equation(s) simultaneously. Of course, to be able to do this, you need to find proper instruments to form your reduced form model(s). To see if you have endogeneity of not, you can use the ENDOTEST option of the MODEL statement. For more information please see the Endogeneity and Instrumental Variables subsection of the PROC QLIM documentation.

(http://go.documentation.sas.com/?docsetId=etsug&docsetVersion=14.2&docsetTarget=etsug_qlim_details24...)

 

Best regards,

Gunce

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1016 views
  • 0 likes
  • 2 in conversation