[R] glm cannot find valid starting values
Gabor Grothendieck
ggrothendieck at gmail.com
Sat Oct 14 16:15:02 CEST 2006
Try using OLS starting values:
glm(Y~X,family=gaussian(link=log), start = coef(lm(Y~X)))
On 10/14/06, Michael Dewey <info at aghmed.fsnet.co.uk> wrote:
> At 15:31 13/10/2006, Ronaldo ReisJunior wrote:
> >Hi,
> >
> >I have some similar problems. Some times ago this problem dont there existed.
> >
> >Look this simple example:
> >
> > > Y <- c(0,0,0,1,4,8,16)
> > > X <- c(1,2,3,4,5,6,7)
> >
> > > m <- glm(Y~X,family=gaussian(link=log))
> >Error in eval(expr, envir, enclos) : cannot find valid starting
> >values: please
> >specify some
>
> Have you tried specifying some starting values as it asks?
> Try start=c(-3,1) for instance
>
>
>
> Michael Dewey
> http://www.aghmed.fsnet.co.uk
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list