Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIC wrong in weighted SEM/SDEM #19

Closed
rsbivand opened this issue May 24, 2021 · 1 comment
Closed

AIC wrong in weighted SEM/SDEM #19

rsbivand opened this issue May 24, 2021 · 1 comment

Comments

@rsbivand
Copy link
Member

rsbivand commented May 24, 2021

When observation weights are used the reported AIC is the standard AIC. When observation weights are used a dAIC measure might be more appropriate, see http://www.isr.umich.edu/src/smp/asda/J%20Surv%20Stat%20Methodol-2015-Lumley-jssam_smu021.pdf. Moved from r-spatial/spdep#13

@rsbivand
Copy link
Member Author

rsbivand commented May 20, 2023

Emails:
Sat, 14 Apr 2018
Tue, 10 Apr 2018

I have recently been introduced to the spdep package and I am highly
impressed with it! Thank you very much for the work that you and your
contributors have put into it.

I have a question. I noticed the function "errorsarLM" and "spautolm"
have options for observation weights but "sacsarlm" function does not. Is
there a reason why that function cannot handle observation weights. Is
there some work around that you are aware of for including observation
weights? Thank you for your time!

They were in spautolm() from the inception, and later added to errorsarlm()

  • which fits the SAR error model from spautolm() using a different
    implementation. The weights= argument was not added to lagsarlm(), nor
    sacsarlm(). I haven't seen a theoretical development that would show how to
    do this in terms of the variance-covariance matrix of the error. If you know
    of such a development, please let me know. We had thought that the INLA slm
    model might help, and it may indeed for the spatial lag model with weights
    (with a little brutality), but we need a good theoretical basis first. What
    is your use case?

16 Apr 2018

I agree. No causal relation. My analysis at this point is more descriptive
than counterfactual.

I'll check out SLX and SDEM.

I have not looked for theoretical developments yet. If I find something I'll
be sure to let you know. Thank you for your time

Thank you Roger. I am estimating the relationship between suicide rates
and policy variables at the county level. I would like to weigh by county
population.

So you are able to use those in the only models you should consider. County
suicide rates cannot influence each other causally simultaneously. Look too
at SLX and SDEM models, both take case weights. Did you find relevant
theoretical developments (in statistics or spatial econometrics) for spatial
lag case weights? Please consider using R-sig-geo - this is privatising my
replies to your questions.

24 Apr 2018

Thanks for getting back to me, happy that SDEM is helpful.

Thank you for the tip. The SDEM model is much more appropriate for my
specific analysis!

I noticed that when observation weights are used the reported AIC is the
standard AIC. When observation weights are used a dAIC measure might be
more appropriate,
http://www.isr.umich.edu/src/smp/asda/J%20Surv%20Stat%20Methodol-2015-Luml
ey-jssam_smu021.pdf.

This is a good point, I'll open an issue on the spdep github repo to remind
myself (or others) of the problem. Maybe in the near term I should block
reporting AIC for the weighted cases for SEM and SDEM in errorsarlm(), and
possibly spautolm() SEM too.

rsbivand added a commit that referenced this issue Jul 12, 2023
rsbivand added a commit that referenced this issue Jul 12, 2023
rsbivand added a commit that referenced this issue Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant