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