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
Forest plot to present interaction in a cross sectional studyHello, I am trying to use ipdover command and I followed the advices that I found in the website, b…
Panel data multiple observations per identifierHi Statalisters, I am working with panel data on board members of companies with DirectorID as an i…
observation numbers out of range (r198) when attempting to create a loopHello all, I have been using the following code in order to create a variable that gives the averag…
Generating variable based on each ID'sHey, I have the following dataset: ID OfferBy Amount offered (€) 1 Samsung 100 1 Apple 125 …
egen MY_VAR = mean(MY_VAR), by(group)Is there a nice way in Stata to develop a group mean of a variable and keep the original name? (The …
Subscribe to:
Post Comments (Atom)
0 Response to Spatial autocorrelation with fixed effects negative binomial regression
Post a Comment