I am fairly new to R and I am trying to fit a curve using the nls function. I will first generate a curve y using the dgamma function, which I then want to fit using nls. He