Hi all,
I'm examining the effect of fire occurrence on visits to National Parks and Forests using a panel dataset. Since my Y variable is a count variable, I intend to do so using a negative binomial fixed effects model. However, my units of analysis are not iid; there is spatial correlation between. I created a spatial weighting matrix on ArcMap which has 3 columns: my unit ID, neighboring unit ID, and weight. However, I'm having a hard time doing anything with it on Stata. I have two questions:
1) When I do spmat import using "weights.dta", I keep getting errors that say "error in line 1 of file." I don't know why that's happening. Here's what's in line 1:
realpudfid nid weight
248 249 .2736487
2) All I'm trying to do is cluster standard errors properly. Is it even possible to do this with a negative binomial model? Could someone walk me through how?
Thank you so much!
Related Posts with Spatial autocorrelation with fixed effects negative binomial regression
Escape code tags?\ Code: \ …
error obtaining starting values; try fitting a marginal model in order to diagnose the problemHi Statalist First time poster, long time reader here. I have searched the list and online for answ…
Conditioning for values within a variable while using foreachHi everyone! I'm new to the forum, but here it goes. I have the following code, where I'm just tryin…
Line graph of the mean of all observationsHello all, I have data that have three variables: vehicle id, speed_kmh, and Time_of_Travel. I am …
Convergence not achieved with xtlogit, fe, but it does converge with xtlogit, reI am using xtlogit on the following data: input str2 st int date byte club float(combo l ca com) by…
Subscribe to:
Post Comments (Atom)
0 Response to Spatial autocorrelation with fixed effects negative binomial regression
Post a Comment