impact-initiatives-geospatial / GeoMSNA2022

0 stars 3 forks source link

logistic regression viz request #7

Open zackarno opened 2 years ago

zackarno commented 2 years ago

@mhkhan27 - interesting finding - can we visualize with logistic regression?

https://github.com/impact-initiatives-geospatial/GeoMSNA2022/blob/edc0481a6d64423cbcfb5f618d264398fef9b158/vignettes/ac-irq_preliminary_test_report.Rmd#L266-L269

mhkhan27 commented 1 year ago

Hey Zack, I tried to visualize the logistic regression plot quickly but was not successful as the plot is not giving me a sigmoid curve. I think I am missing something. Additionally, the odd ratio shows 1, which I am still unclear about. Perhaps you can check the code?

zackarno commented 1 year ago

I need to read up a bit on this, but i think the plots are basically correct just indicating that there is little discriminatory power in the Distance variable (see SO post).

zackarno commented 1 year ago

@mhkhan27

pulled out some of your logistic regression work and put it in here: ae-irq_logistic.Rmd

In general, I think it would be beneficial to transform the processes from scripts/irq_globals.R into descriptive functions that could be called in notebooks/scripts/etc. This would make most analyses/notebooks easier to follow