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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 923 views
  • 0 likes
  • 2 in conversation