Displaying 20 results from an estimated 1000 matches similar to: "Question spdep package - Moran's I"
2008 Apr 18
1
spdep question - Moran's I
Dear all,
I would like to calculate a Moran's I statistic using the moran function in the spdep package. The problem I'm having deals with how to create the listw object.
My data stems from the area of social network analysis. I have list of poeple and for each pair of them I have a measure of their relationship strength. So my dataset looks like: Jim; Bob; 0.5
This measure of
2007 Oct 26
1
Help needed on calculation of Moran's I
Hi,
I am trying to calculate Moran's I test for the residuals for a
regression equation, but I have trouble converting my coordinates into
nb format.
I have used the dnearneigh() funtion now with an arbitrarily high upper
distance to make it include all plots. However, when I do the
lm.morantest() I get a Moran's I value which is the same as the expected
value and a P-value of 1.
I
2010 Jun 21
0
how to find observed Moran's I value using moran.test(spdep)
Dear ,
This is Elaine.
I am computing moran's I using moran.test for
a generalized linear model (multiregression).
The following contents are the results, and I cannot find the observed
Moran's I mentioned as estimate in the manual.
Please kindly help indicate if there is observed Moran's I did not notice or
other method for calculation.
Thanks
Elaine
data: residuals(modg1)
2011 Apr 19
1
SPDEP Package, neighbours list for Moran's I on large grid dataset
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20110419/a3438017/attachment.pl>
2008 Mar 31
1
GeoDa spdep
My question is in regard to the spdep and GeoDa packages. Do you know how
to extract a neighborhood/adjacency matrix from R? I need a matrix that has
all the neighborhoods on the X and Y axis, and then a r=1 when the
neighborhoods touch, and a r=0 when neighborhoods don't touch. I
think the Moran's I functions use a matrix like this when they estimate
Moran's I. I can estimate
2007 Feb 06
2
How to do "moran's I test"?
I want to do "moran's I test" in R language. I try to use "gearymoran" in
Package "ade4","moran" in Package "spdep", and Moran.I in Package "ape". But
I do not know how to do it because data format is different.
My data:
x y dbh
111.03 10.7 7
118.11 0.28 1.2
165.36 0.36 8.4
2012 Dec 19
1
Using PCNM() in Vegan and calculating Moran's I
Hello-
I am using the vegan package PCMN() because I need to use option of row
weights (I am using CCA following the selection of the significant/positive
PCNM variables). In the library PCNM (PCNM function), the Moran's I is
calculated for you as part of the function. I see that I need to calculate
Moran's I separately in order to retain the eigenfunctions with positive
spatial
2005 Jan 30
1
New user...tips for spdep?
Hello List,
I'm a very new user to the R system. I'm only beginning to learn the
basics, but so far I've been able to do little more than try a few examples,
and of course begin reading the documentation.
My primary motivation for exploring R is the availability of tools like the
'spdep' package for calculating spatial statistics such as Geary's C and
Moran's
2003 Jun 06
2
Moran's index
Hi,
I am looking for some code for Moran's I. Has anyone previously done this?
I have been unable to find it in the search engines.
James
2005 Mar 29
0
Plot Moran's I
Hello all,
I'm a new user of R and I have used the spdep package to calculate Moran's I estimates. I used the dnearneigh() function and moran.test() function and obtained what I wanted, but now I want to plot my results with the p-values. I regrouped my results for the Moran's I like
>m=c(m1$e,m2$e...) #m1 contain the results of the moran.test for lag1
2003 Apr 14
1
How to do the significant test on Local Moran's I
Dear list:
I've tried professor Roger Bivand's spdep package
for a while, and found it is quite useful. However,
when considering the significance test of the local
moran's index under the assumption of both normality
and randomization, I just can't get a clue from the
package's calculating results. I also read professor
Luc Anselin's 1995 LISA paper (geographical
2006 Mar 14
1
help on moran's I index of point pattern, not areal pattern
hi,friends,
we all know that moran's I index and Geary'C index can be used to test
spatial autocorrelation in both the area data and point data, but i only can
find something on how to calculate on the data of area, and can't find the
methods to perform it on the point data, could anybody give me some
information, thanks in advance!
--
Kind Regards,
Zhi Jie,Zhang ,PHD
Department of
2009 Mar 16
2
FW: Select a random subset of rows out of matrix
Dear all,
I have a large dataset (N=100,000 with 89 variables per subject). This dataset is stored in a 100.000 x 89 matrix where each row describes one individual and each column one variable.
What is the easiest way of selecting a subset of let's say 1.000 individuals out of that whole matrix?
Thanks,
Michael
Michael Haenlein
Associate Professor of Marketing
ESCP-EAP European School of
2011 Mar 26
1
Effect size in multiple regression
Dear all,
is there a convenient way to determine the effect size for a regression
coefficient in a multiple regression model?
I have a model of the form lm(y ~ A*B*C*D) and would like to determine
Cohen's f2 (http://en.wikipedia.org/wiki/Effect_size) for each predictor
without having to do it manually.
Thanks,
Michael
Michael Haenlein
Associate Professor of Marketing
ESCP Europe
Paris,
2016 Apr 16
1
Social Network Simulation
Dear all,
I am trying to simulate a series of networks that have characteristics
similar to real life social networks. Specifically I am interested in
networks that have (a) a reasonable degree of clustering (as measured by
the transitivity function in igraph) and (b) a reasonable degree of degree
polarization (as measured by the average degree of the top 10% nodes with
highest degree divided by
2010 Apr 22
1
Convert character string to top levels + NAN
Dear all,
I have several character strings with a high number of different levels.
unique(x) gives me values in the range of 100-200.
This creates problems as I would like to use them as predictors in a coxph
model.
I therefore would like to convert each of these strings to a new string
(x_new).
x_new should be equal to x for the top n categories (i.e. the top n levels
with the highest
2011 Feb 22
1
System of related regression equations
Dear all,
I would like to estimate a system of regression equations of the following
form:
y1 = a1 + b1 x1 + b2x2 + e1
y2 = a2 + c1 y1 + c2 x2 + c3 x3 + e2
Specifically the dependent variable in Equation 1 appears as an independent
variable in Equation 2. Additionally some independent variables that appear
in Equation 1 are also included in Equation 2.
I assume that I cannot estimate these two
2011 May 27
1
Help to improve existing R-Code
Dear all,
I have written a relatively brief R-Code to run a series of simulations.
Currently the code runs for a very long time (up to several days, depending
on the conditions) and I expect this to be the case because it might not be
very efficiently written. I am, for example, relying on several for(...)
loops which could probably be done much faster using a different way of
programming.
I am
2013 Jan 22
2
Approximating discrete distribution by continuous distribution
Dear all,
I have a discrete distribution showing how age is distributed across a
population using a certain set of bands:
Age <- matrix(c(74045062, 71978405, 122718362, 40489415), ncol=1,
dimnames=list(c("<18", "18-34", "35-64", "65+"),c()))
Age_dist <- Age/sum(Age)
For example I know that 23.94% of all people are between 0-18 years, 23.28%