I'm using GAM to model a potentially non-linear relationship between two variables (with some controls variables included) in mgcv. My main independent variable is a proportion (without 0's or 1's) that is highly skewed (see image 1 histogram).
- Is there justification/reasoning to make an IV normal in GAM?
- Should I transform this variable? I tried to sqrt(IV) (see image 2) and log10((IV)/(1-IV)) (see image 3). Functional form of results are different but not drastically depending on which (or none) transformation is used.
r code:
gam(DV ~ s(IV) + CV1 + CV2 +
s(CASEID, bs="re"), data = df, method = "REML")
Histograms of IV:
untransformed IV
sqrt(IV)
log10(IV)/(1-IV)