[R] glm cannot find valid starting values

Michael Dewey info at aghmed.fsnet.co.uk
Sat Oct 14 16:07:18 CEST 2006


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



More information about the R-help mailing list