BookmarkSubscribeRSS Feed
vandanaa09
Calcite | Level 5

hello everyone,

 

i am doing my study gravity model in trade- a panel data analysis. one of the independent variable is DYPijt which denotes the absolute difference between country i's  GDP per capita and country j‟s GDP per capita. the value of DYPijt in my study is negative. i am using log linear form how can i get the natural log of a negative value?

 

any help in this regard is really appreciable.

 

thanks

1 REPLY 1
Astounding
PROC Star

You would have to invent a new type of math.  Natural logs are positive only.

 

If ALL of the values are  negative, you should be able to compute an acceptable model driver.  Compute the log of the absolute value instead but be sure to adjust for that calculation in your final equation.

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

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