Re: [R] glm cannot find valid starting values

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sat 14 Oct 2006 - 14:15:02 GMT

Try using OLS starting values:

glm(Y~X,family=gaussian(link=log), start = coef(lm(Y~X)))

On 10/14/06, Michael Dewey <info@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@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.
>



R-help@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. Received on Sun Oct 15 00:25:18 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 15 Oct 2006 - 15:30:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.