BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Golf
Pyrite | Level 9

Hello,

   I have a single equation, where lwage is the dependent variable,  there are 15 independent variables and one of them (educ) is an endogenous varaibles.   A exogenous variable, nearc4, is used as the instrumental variable.   I use the following procedure in SAS and get the error message.

 

Capture.PNG

Here is the results.

Capture2.PNG

Can you help me out from the problem?   I apply the same data set to STATA, and I can get the result without problems.

Thank You.

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

What is NEARC4? Where would SAS find it?

 

Is it a variable in your input data set, or something computed? Obviously, it is neither, and so SAS doesn't know how to use NEARC4.

--
Paige Miller

View solution in original post

4 REPLIES 4
PaigeMiller
Diamond | Level 26

The WARNING message seems clear to me.

 

WARNING: The variable nearc4 is not defined in the program
--
Paige Miller
Golf
Pyrite | Level 9
Dear Miller,
How to make nearc4 defined in the program. (I understanded that nearc4 was already defined in the INSTRUMENT statement)
Thank You,
PaigeMiller
Diamond | Level 26

What is NEARC4? Where would SAS find it?

 

Is it a variable in your input data set, or something computed? Obviously, it is neither, and so SAS doesn't know how to use NEARC4.

--
Paige Miller
Golf
Pyrite | Level 9
Dear Miller,
You are right. nearc4 is in another data file. I used the wrong data set.
Thank You for your time.
Bests,

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1289 views
  • 0 likes
  • 2 in conversation