I\'ve tried nlmer() function but it couldn\'t converge for some reason. Now i\'m trying to use nlme() function in nlme package my function is below
NLSite <