[R] an unknown error message when using gamm function

Simon Wood s.wood at bath.ac.uk
Wed May 21 09:55:02 CEST 2008


What version of mgcv are you using, please?

On Wednesday 21 May 2008 06:16, Lung-Chang Chien wrote:
> Dear everyone,
>
> I'm encountering an unknown error message when using gamm function:
> >         fitoutput <-
>
> gamm(cvd~as.factor(dow)+pm10+s(time,bs="cr",k=15,fx=TRUE)+s(tmean,bs="cr",k
>=7,fx=TRUE) +
> ,correlation=corAR1(form=~1|city),family=poisson,random=list(city=~pm10),da
>ta=mimp)
>
>
>  Maximum number of PQL iterations:  20
> iteration 1
> iteration 2
> iteration 3
> iteration 4
> iteration 5
> iteration 6
> Error in `*tmp*`[[k]] : attempt to select less than one element
>
> I never saw this error message before, and there is also no related
> information about this error from the Internet. Hope some people who once
> encountered this problem can tell me what's wrong.
>
> Many thanks,
>
> LC

-- 
> Simon Wood, Mathematical Sciences, University of Bath, Bath, BA2 7AY UK
> +44 1225 386603  www.maths.bath.ac.uk/~sw283



More information about the R-help mailing list