Last chance! 50% off unlimited learning
Sale ends in
fitGammaIntercept(y,offset=0,maxit=1000)
y
. Can be a single value, or else a vector of the same length as y
.y
are assumed to follow a gamma distribution with common shape parameter and with expected values given by x+offset
.
The function implements a globally convergent Newton iteration to estimate x
.genas
.offset <- runif(10)
x <- 9
mu <- x+offset
y <- rgamma(10,shape=20,scale=mu/20)
fitGammaIntercept(y,offset=offset)
Run the code above in your browser using DataLab