Hi,
	Sorry, but I only have limited access to machines at the
moment, so cannot check this out in detail myself.  Could someone
please have a look at this?  I have no idea whether the problem is
with R or the lme library. The example is straight from help(gls) from
the lme library.





R : Copyright 1999, The R Development Core Team
Version 0.65.1 Release (October 07, 1999)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type    "?license" or "?licence" for distribution details.

R is a collaborative project with many contributors.
Type    "?contributors" for a list.

Type    "demo()" for some demos, "help()" for on-line help, or
        "help.start()" for a HTML browser interface to help.
Type    "q()" to quit R.

> version
         _         
platform Windows   
arch     x86       
os       Win32     
system   x86, Win32
status   Release   
major    0         
minor    65.1      
year     1999      
month    October   
day      07        
language R         
> library(lme)
Loading required package: nls 

Attaching Package "package:nls":


        The following object(s) are masked from package:lme :

         NLSstAsymptotic NLSstAsymptotic.sortedXyData NLSstClosestX NLSstClosestX.sortedXyData NLSstLfAsymptote NLSstLfAsymptote.sortedXyData NLSstRtAsymptote NLSstRtAsymptote.sortedXyData asOneSidedFormula fitted.nls formula.nls getInitial getInitial.default getInitial.formula getInitial.selfStart logLik logLik.nls residuals.nls selfStart selfStart.default selfStart.formula sortedXyData sortedXyData.default xyplot 


Attaching Package "package:lme":


        The following object(s) are masked from package:lme :

         NLSstAsymptotic NLSstAsymptotic.sortedXyData NLSstClosestX NLSstClosestX.sortedXyData NLSstLfAsymptote NLSstLfAsymptote.sortedXyData NLSstRtAsymptote NLSstRtAsymptote.sortedXyData SSasymp SSasympOff SSasympOrig SSbiexp SSfol SSfpl SSlogis SSmicmen asOneSidedFormula fitted.nls formula.nls getInitial getInitial.default getInitial.formula getInitial.selfStart logLik logLik.nls phenoModel quinModel residuals.nls selfStart selfStart.default selfStart.formula sortedXyData sortedXyData.default xyplot 

> help(gls)
> data(Ovary)
> fm1 <- gls(follicles ~ sin(2*pi*Time) + cos(2*pi*Time), Ovary,
+                    correlation = corAR1(form = ~ 1 | Mare))
iteration = 0
Step:
[1] 0
Parameter:
[1] 0
Function Value
[1] 1338.005
Gradient:
[1] -108.1414

Error: NA/NaN/Inf in foreign function call (arg 1)
> 



Ta 
Simon.



-- 
*****************************************************************
*  Simon Wotherspoon                               _--_|\       *
*  Maths Dept, University of Tasmania             /  Aus \      *
*  Tasmania, Australia                            \_.--._/      *
*  spoon@hilbert.maths.utas.edu.au                      v       *
*****************************************************************


--KAA24513.941413539/hilbert.maths.utas.edu.au--



-- 
*****************************************************************
*  Simon Wotherspoon                               _--_|\       *
*  Maths Dept, University of Tasmania             /  Aus \      *
*  Tasmania, Australia                            \_.--._/      *
*  spoon@hilbert.maths.utas.edu.au                      v       *
*****************************************************************

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

