So, i have this formula here:
model <- gam(inb ~ s(x))
g.hat <- model$fitted
Where actually the inb is a two dimensional vector and
x <- rbinom(psa, n, progress)
Could someone help me to translate it mathematically so i can transform it to PHP then?
Thanks
I think it will become a lot of work to explain it mathematically. If you look up the functions by typing them in your R session and hitting return you will see what happens behind the screen. So just type in gam
for example and hit return. You will see the code which you can translate to php. That would be a lot easier than translating it to maths and then back to php.