Re: [R-sig-Geo] Help: impact measures in spatial panel durbin model

2016-04-20 Thread Youba Ndiaye
Thanks a lot. That's very helpful Best regards. Youba. Roger Bivand a écrit : > On Wed, 20 Apr 2016, Youba Ndiaye wrote: > >> Dear all, >> >> I'm a Ph.D student  and I'm working on spatial econometrics approach. >> >> I want to implement a static spatial durbin model  in

Re: [R-sig-Geo] how to calculate centroid (or centre of gravity) of a population (count data)

2016-04-20 Thread Diego Pavon
Thanks Marcelino, Rolf and Tiago for your quick responses. I think that the suggested method by Rolf and Tiago, which is also found in the link provided by Marcelino works fine with my data. Yes, Rolf, it was as simple as that :) So, I multiplied the X_i and Y_i coordinates of each of the 2000

Re: [R-sig-Geo] how to calculate centroid (or centre of gravity) of a population (count data)

2016-04-20 Thread Tiago Marques
Hi Diego, A perhaps dumb yet straightforward way of doing it is to replicate each point the number of times of its corresponding count, this will get you the right unbiased centroid, essentially a weighted average as Marcelino suggests, assuming that the weight you use is proportional to

Re: [R-sig-Geo] Help: impact measures in spatial panel durbin model

2016-04-20 Thread Roger Bivand
On Wed, 20 Apr 2016, Youba Ndiaye wrote: Dear all, I'm a Ph.D student  and I'm working on spatial econometrics approach. I want to implement a static spatial durbin model  in R  with "splm" function. But the particular case of my model is that my durbin model is partial such as:   y = rho.Wy

Re: [R-sig-Geo] [FORGED] how to calculate centroid (or centre of gravity) of a population (count data)

2016-04-20 Thread Rolf Turner
Maybe I'm being naive, or missing the point, or something. But I would presume that your data are something like: x_1, x_2, ..., x_n # x-coordinates of the locations --- say, stored as x y_1, y_2, ..., y_n # y-coordinates of the locations --- say, stored as y k_1, k_2, ..., k_n # counts at the

Re: [R-sig-Geo] how to calculate centroid (or centre of gravity) of a population (count data)

2016-04-20 Thread Marcelino de la Cruz
Hi Diego, it seems to me that what you want to compute are weighted centroids. Here some advice is given (it is for polygons but you can get the idea): https://stat.ethz.ch/pipermail/r-sig-geo/2016-February/024107.html Cheers, Marcelino El 20/04/2016 a las 8:45, Diego Pavon escribió:

[R-sig-Geo] Help: impact measures in spatial panel durbin model

2016-04-20 Thread Youba Ndiaye
Dear all, I'm a Ph.D student  and I'm working on spatial econometrics approach. I want to implement a static spatial durbin model  in R  with "splm" function. But the particular case of my model is that my durbin model is partial such as:   y = rho.Wy + X.beta + WZ.theta + epsilon    X and Z

[R-sig-Geo] how to calculate centroid (or centre of gravity) of a population (count data)

2016-04-20 Thread Diego Pavon
Dear all I am working with count data and I want to assess whether the centre of gravity of the population (centroid or mean latitude?) has change over time, indicating some redistribution or shift ongoing. To simplify, let's say that I have ca. 2000 sites censused in two consecutive years (same