

Log transformation in command text 

Message/Author 


I am running a moderation of one observed continous variable Z on the path between latent variable X on latent variable Y. The continuous variable Z is a stated percentage of usage of self service technology (SST) rated from 0% to 100% of the time. Since this variable does not follow a normal distribution, I thought it would be best to do a log transformation (base10) of Z prior to running the interaction. This leads me to two questions: 1) Can I write the code for the transformation in the command syntax or do I have to do it in the raw data? If possible in the syntax, where would I find sample code? 2) Would the log transformation cause problems with the estimation? ie: give improper estimates. Thanks, 


You can use the DEFINE command to do the log transformation. The log transformation would not cause estimation problems. 

Back to top 

