Convert data by LN or not?

#1
Hello dear statistic community members!
I was about to run a single-species single-season occupancy model on habitat variables for my tropical mammal data in R. One of my statistic mentors told me I might need to convert my data on distance to road and distance to rivers by using LN or Log10. It seems that he also was not too sure, as he mentioned that the need to convert data depends on my research question and stayed rather vague on his opinion about my data set. I do not really understand how the type of research question affects whether I can feed my normal data or converted data into the model so I was hoping for the community here to offer advice. If it helps: distances range between 0-1.94 km.

Edit: In general, is there a rule of thumb when to convert data using log?

I thank everyone who takes their time to help me answering my question!

Sincerely,
Maiwald
 
#2
The most common reason to convert data is that the residuals in the model are not linear or there is heterogeneity. So fields, like economics are more likely to transform to get estimates on the percent change scale.

Your description of the model is not familiar to me. What package would you use in R to do this?
 
#3
Hello hlsmith and thanks for the reply. The package I am using is called 'wiqid'. It contains functions for both maximum likelihood and Bayesian estimations, if that helps in any way.
I am sorry ,as that I am not very well versed in statistics, but how can I find out about the residuals in my model? And what is meant by heterogeneity in this context (I always think of heterogeneity in a biological context) ?
 
#4
Do you know what type of model you are using (linear regression, logistic regression, etc.)? How are your variables formatted, categorical, continuous, integers, etc.,
 
#5
Sorry for the late reply, was a bit busy, and thank you for your continuous interest in helping me. So the model should be a logistic regression model since my response variable is binary in nature (detection/non-detection of species) and I am analyzing for occupancy which is the probability of site X /Y/Z/...being occupied by certain species. My variables are continuous data, I believe (Elevation and distances).