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
 Changing the value of many observationsHello
So, i'm working on a pretty big dataset for a Norwegian insurance company, and I wanted to ch… Changing the value of many observationsHello
So, i'm working on a pretty big dataset for a Norwegian insurance company, and I wanted to ch…
 Graph with Y axis as stringHi everyone,
I have data like below: 25 different methods that generate 25 different estiamtion on … Graph with Y axis as stringHi everyone,
I have data like below: 25 different methods that generate 25 different estiamtion on …
 svy:logit has more observations than simple logit commandI am working with survey data and use the svy command before running my logit regression as follows:… svy:logit has more observations than simple logit commandI am working with survey data and use the svy command before running my logit regression as follows:…
 addplot error after marginsplotI ran a model (dependent variable = gender) and 3 independent variables – year, position_department_… addplot error after marginsplotI ran a model (dependent variable = gender) and 3 independent variables – year, position_department_…
 svy: mean and sorting estimated meansGreetings, Statalisters.
I'm hoping this is something someone is willing and able to explain to me,… svy: mean and sorting estimated meansGreetings, Statalisters.
I'm hoping this is something someone is willing and able to explain to me,…
Subscribe to:
Post Comments (Atom)
0 Response to Spatial autocorrelation with fixed effects negative binomial regression
Post a Comment