It seems like there is a bug which throws an error from the lms() function when the x variable name ends in a y (and the y variable does not begin with y).
As an example:
rm(list = ls())
library(gamlss)
data(abdom)
abdom$xy <- abdom$x
abdom$p <- abdom$y
m1 <- lms(p,xy, data=abdom, n.cyc=30)
This produces the error
Error in get(xvar, envir = as.environment(DaTa)) : object 'xp' not found
It seems like there is a bug which throws an error from the lms() function when the x variable name ends in a y (and the y variable does not begin with y).
As an example:
This produces the error