Coder Social home page Coder Social logo

CHAPTER: Spatial Regression about book HOT 8 CLOSED

gdsbook avatar gdsbook commented on July 19, 2024
CHAPTER: Spatial Regression

from book.

Comments (8)

ljwolf avatar ljwolf commented on July 19, 2024 1

I've gotten feedback from @TaylorOshan that our SLX discussion is somewhat unclear. I'd like to revisit it soon before we sent it back to the publisher.

from book.

ljwolf avatar ljwolf commented on July 19, 2024 1

Great, I've done this now with #142

from book.

darribas avatar darribas commented on July 19, 2024

On that chapter I had on my list to rename "Spatial Feature Engineering" for "Spatial Heterogeneity" (that's really the correct term IMHO, and that way we don't confuse terminology with Ch.12. So if you can fix that one it'd be ace :-)

from book.

ljwolf avatar ljwolf commented on July 19, 2024

Arraiz et al (2010) (line 614 in the markdown) needs to be replaced with proper referencing.

from book.

darribas avatar darribas commented on July 19, 2024

Comments from @darribas final pass on this chapter:

  • I don't fully understand the second full paragraph in p.262, beginning with "Indee, this matters...". I think it needs to be reworded and I've tried my best but I'm not sure it's done well because I don't know exactly what it wants to say.
  • It'd be really nice if we could add equation numbers to refer to them in the text. For example, in the first line of p.265, it's unclear which one we're referring to.
  • We should rename Section 12.4.1 because, although it is called "Challenge Questions", there are no questions whatsoever. This is more of an advanced extension? This needs amendment. If we decide to keep it in the book, I think the code cells should be documented.
  • I don't know why but seaborn now uses a different background style. We should definitely amend this.

Things to ensure:

  • Library imports (first time inline, afterwards at the top of the chapter
  • No aliases on imports (import pandas)
  • Ensure no XXX for citations
  • Ensure matplotlib RC file is picked up and figures are standard
  • Remove %matplotlib inline
  • Graphics
    • No style
    • No title (unless multi-axis titles, but not suptitle)
    • No axes for maps (ax.set_axis_off())
  • Code comments are fine if needed
  • Hide/remove code cells that we want to hide (see docs here)
  • Typesetting check
  • General flow of the text
  • Ensure there is a "next step" section at the end of the chapter pointing to further references for the topic (re. #137)

The edits are over at #210.

IMPORTANT -- I don't think this had a first final pass by anyone, so I think this chapter should be reviewed at least once more by someone. Also, my edits are pretty significant at parts, so I'd be more comfortable if an additional pair of eyes was laid on it.

from book.

ljwolf avatar ljwolf commented on July 19, 2024

I don't fully understand the second full paragraph in p.262, beginning with "Indee, this matters...". I think it needs to be reworded and I've tried my best but I'm not sure it's done well because I don't know exactly what it wants to say.

I think I wrote that. I've gone back over it since writing it too, on suggestion from @TaylorOshan :/ maybe I'm misunderstanding something, so let me try to explain where I'm coming from.

The point there is to make sure people understand that \gamma is an indirect effect (x_i's effects on surroundings), not a direct effect (x_i's effect on y_i). This means we can think of two "ways" to explain what \gamma does:

First, we can think of \gamma focusing on outcomes at site i:

a unit change in the spatial lag at site i results in a \gamma change for site i.

This is straightforward, since it just talks about \gamma, and ignores the spatial structure in W. But, it's also confusing, since we don't generally think of a "unit change in the lag" as an independent thing: people generally find it more intuitive to think about changes to X itself.[1]

To resolve this, we can think of \gamma focusing on conditions at site i:

a unit change in X at site i 'spills over' onto its neighbors with strength wij\gamma

I think this is the clearer explanation, which shows that interventions at site i will affect its neighbors not \gamma, but wij\gamma. And, if you change X_i by one, then the corresponding change on y_i is zero for most weights matrices, because the self-weight is zero. Thus, you can see that the "direct" effect of X on y is \beta, and the "spillover" of X on y is \gamma on average, but for any specific site X_i, it'll be wij \gamma.

Maybe this is pointless detail, but I think it's pretty important, just like the indirect/direct effect argument for the spatial lag of Y model.

[1]: As a simplification, a unit change in the lag is equivalent to a unit change in X when W is fully connected and row-standardized, but it still feels weird to think about adjusting WX directly, since it's derived from X.

from book.

ljwolf avatar ljwolf commented on July 19, 2024

Instead of rewriting the expositions for the wx indirect/direct predictions, let’s just signpost that the exposition is going into the conceptual details of how the wx model thinks about marginal effects.

from book.

ljwolf avatar ljwolf commented on July 19, 2024

Modern spatial econometrics with Geoda
Mostly pointless spatial econometrics
Cressie and wikle
Dewi Owen’s progress article.

from book.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.