[R] Moran's I- Ordinal Logistic Regression

From: Lisa Rees <lisa5152_at_hotmail.com>
Date: Sun, 13 Jul 2008 19:34:33 -0500

Hi,  

I am trying to do a Moran's I test on an ordinal logistic regression model. I have a simple spatial weights matrix listed below I would like to use.  

Y=

1
0
0
0
0
0
0
0
0

0
1
1
0
0
0
0
1
1

0
1
1
0
0
0
0
1
1

0
0
0
1
1
1
1
0
0

0
0
0
1
1
1
1
0
0

0
0
0
1
1
1
1
0
0

0
0
0
1
1
1
1
0
0

0
1
1
0
0
0
0
1
1

0
0
1
0
0
0
0
1
1
I try to run the test as follows-
moran.test(order$resid, Y). It then gives me an error- "Error in moran.test(resid(order), y) : y is not a listw object"  

Can I transform my matrix into a listw object or use some other test where I can use my simple matrix to perform the test? Also, is using $resid for the ordinal logistic regression the proper way to run the moran's I test?  

Thanks for any help you can provide me.  

Lisa



The iím Talkaton. Can 30-days of conversation change the world?

        [[alternative HTML version deleted]]



R-help_at_r-project.org 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 Mon 14 Jul 2008 - 00:39:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Jul 2008 - 01:31:28 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.

list of date sections of archive