I did normality test in SAS program. the results showed that data are not normal. So, i have to transform my data with log10. in fact, i need this program (transform data with log10). Thank you for your answer
Thank you for the clarification. So you are asking how to transform one variable that currently has a non-normal distribution using a logarithmic transformation in the hopes that it will give an approximately normal distribution. The necessary SAS code is as follows:
DATA dataset2;
SET dataset1;
LOGVAR=log10(VAR);
RUN;
This would create a new variable LOGVAR that is the log10 transformation of the variable VAR.
Any logaritmic transformation produces the same efect on the normality of a variable. Because Log10(x)= logb (X) log10(b), where b is any logaritmic base, and log10(b) is a known constant.
Then in the program of Andrew, you may use the natural logaritmic or any other.
I do not make comment on how you could perform log10 transformation in SAS.
Only one minor comment: In case what you expect (log10 transformation) could not bring your data into normality, then you might need to think to other transformations as well (if it is meaningful to do so). That is when you might think to use Box-Cox transformation (I recommend you read section 4.8 (Transformation to near normality) in the Book "Applied Multivariate Statistical Analysis" by Johnson and Wichern).
I notice that in the example listed above, several values are negative. If you use it the logaritms good be invalid, and replaced by missing. If any value were 0 it would gave the same effect.
Then if the data above were the actual data, to normalice it ,requires to add a positive value greater than the smaller negative value. For example adding 25 to each value;
The proc glm and means should be applied to IC1 instead of IC.