[R] question about surf.gls(spatial package) with NA/NaN/infvalues
Roger Bivand
Roger.Bivand at nhh.no
Wed Dec 15 15:43:17 CET 2004
On Wed, 15 Dec 2004, BUHARD O wrote:
> Hi all,
>
> I need to fit a trend surface to a 3D-dataset with the surf.gls()
> function but my data contain missing values. There is just 2 NA in a
> total of 360 data points but I can't suppresse the variable associated
> with these NA values to the analysis. The problem is surf.gls can't
> manage with Na/NaN/inf values, so I wanted to know if a similar function
> in R can do it. I precise that there's no replicate in the (preliminary
> test) data so I can't estimate these values them easily.
>
Either the z values are missing, and you can use the fit on the 358 points
to predict them, or one or other of the point coordinates are missing, so
you don't know where the affected z values were observed. You can fit once
you omit just those incomplete observations, I think.
> Thanks a lot for help
>
> Regards
>
> BUHARD Olivier
>
> ______________________________________________
> 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
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no
More information about the R-help
mailing list