Skip to content

spgwr's gwr.whole.test's error on rw1090

7 messages · Danlin Yu, Hisaji ONO, Roger Bivand

#
Hello.

 I've tried to run example(gwr.whole.test).

 I've got following errors.

gwr.whole.test(col.gauss)
Loading required package: ctest
Test of GWR model called as:
gwr(formula = crime ~ income + housing, data = columbus, coords =
cbind(columbus$x,
    columbus$y), bandwidth = col.bw)

        Shapiro-Wilk normality test

data:  crime
W = 0.9722, p-value = 0.2956

Brunsdon, Fotheringham & Charlton (1999) ANOVA table
Error: 'print.coefmat' is defunct.
See ?Defunct.
In addition: Warning messages:
1: package 'mva' has been merged into 'stats'
2: NA/Inf replaced by maximum positive value
3: package 'ctest' has been merged into 'stats'

 Could you teach me how to resolve this?

 Regards.
#
Hi, Hisaji ONO:

    I think the error message actually just indicates that the function
print.coefmat() that has been called in the gwr.whole.test() is no longer
part of R (you can find this infomation by using ?Defunct in R).
    From the ?Defunct you can also find that the print.coefmat() function
is an older name for 'printCoefmat' with a different default for
'na.print'. I therefore replaced all the print.coefmat in the source code
of spgwr with printCoefmat, and the program gives the correct responses. 
    Wish this help.
On Wed, 19 May 2004, Hisaji ONO wrote:

            
Sincerely,
    Danlin Yu

----------------------------------
Ph.D. Candidate
Department of Geography
University of Wisconsin, Milwaukee
Tel: (414)229-5818
Fax: (414)229-3981
Email: danlinyu at uwm.edu
#
Hi, Hisaji ONO:
    Just an add-on. Since the warning message indicates that package 'mva'
and 'ctest' have been merged into 'stats', when you are altering the
source code, you can also replace all 'mva' and 'ctest' with 'stats'.
On Wed, 19 May 2004, Hisaji ONO wrote:

            
Sincerely,
    Danlin Yu

----------------------------------
Ph.D. Candidate
Department of Geography
University of Wisconsin, Milwaukee
Tel: (414)229-5818
Fax: (414)229-3981
Email: danlinyu at uwm.edu
#
Thank you very much, Mr. Yu.

 It works correctly.
1 day later
#
Hi.

 Currently, spdep is  unavailable in CRAN.

 When will this situation be resolved?

 Regards.
#
On Thu, 20 May 2004, Hisaji ONO wrote:

            
I am told that it will be resolved after useR! 2004 - the automatic 
generation of Windows binaries was defeated by the simultaneous updating 
of both maptools and spdep. I can try to put up interim versions on my own 
server from Vienna tomorrow, but I think Uwe Ligges, who does an excellent 
and difficult jib supporting us with W32 binaries, will fix this on Monday 
or latest Tuesday CET.

  
    
5 days later
#
On Thu, 20 May 2004, Hisaji ONO wrote:

            
I have been working with the Windows package build expert Uwe Ligges, and 
we hope things will now stabilise - a new source package for spdep 
(0.2-18) is now on CRAN, and we will see how tonight's automatic build for 
Windows goes. Note that older versions are preserved under the R release 
number directories, in a directory called "last", so that the Windows 
binary for 0.2-12 is at:

http://cran.r-project.org/bin/windows/contrib/1.8/last/spdep_0.2-12.zip

The check status of Windows binaries is tabulated on:

http://cran.r-project.org/bin/windows/contrib/checkSummaryWin.html

with links to information if there are problems. Uwe and I hope that this 
issue has been resolved, but it has been very difficult to find with 
certainty.