As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Main Page

From sasCommunity
Revision as of 16:28, 8 November 2011 by LainieH (Talk | contribs)

Jump to: navigation, search

Welcome to sasCommunity.org

A collaborative online community for SAS® users worldwide.

sasCommunity.org is an ongoing global community effort—created by SAS users for SAS users. This site is a place to find answers, share technical knowledge, collaborate on ideas and connect with others in the worldwide SAS Community. Get started now by creating a UserID.

Follow Us
For daily SAS Tips, Web updates & more.

sasCommunity Tip of the Day

data show;
    val = 55;
    b2 = log2(val);
    v2 = log(val) / log(2);
 
    put b2= ;
    put v2=;
run;

SAS supports only 3 bases for the log function, namely, {2, 10, exp(1)}, corresponding to functions log2(), log10(), and log(), respectively.

Sometimes, we need to calculate log value of any positive base number, just as in Excel or some other programming environment, we have function like log(Val, Base). It is not hard to do so by noting that we can calculate logarithms with other base values by dividing the result of the log() function with log(base), where log() is the natural logarithm function.

Therefore, log(Value, Base)=log(Value)/log(Base). This can be shown in this short DATA step to the right.


Submitted By Liang Xie



Feel free to comment on this tip.


Prior tip - Next tip -- Random Tip

Submit a Tip



Check out the Tip of the Day page for details about this effort.

What's New

SAS Global Forum 2012
SAS Global Forum 2012

Registration is now open!
Don't miss your opportunity to network with thousands of SAS professionals worldwide and attend hands-on workshops, demonstrations, and more than 300 paper presentations to enhance your SAS skills.

You still have time to submit your paper!
Presenting a paper provides recognition for your expertise and starts a dialogue with others who are interested in the same topic.


Blogs

Recent SAS user blog entries:
 

Content

Recent sasCommunity.org articles:
 

Tips

Recent Tips Submitted by Users:
 

Forums

SAS discussion forum threads:

RSS Feeds for Blogs, Content, Tips and Forums have been temporarily disabled. Please use links above to access information.


9,514 UserIds have been created on sasCommunity.org!
This number will decrease while userid cleanup is in process.
View the Web-site usage statistics and the definition of terms.


Join sasCommunity.org Get Involved Sasopedia Events User Groups