Dear Statalist members,
I'm trying to write my dissertation and need your help -I am new to Stata.
I need to run a Probit regression on dependent variable Y (1 ; 0) using independent variable X (also 1;0). X needs to be year T-1.
I used Xtset command and set the panel and time variables (year).
The data includes different companies (identified by companyID) having each multiple years worth of data.
The way I tried to run the code was:
by CompanyID: probit Y l1.X, however I'm getting an error message that data is not sorted. I tried to sort the relevant variables without success.
Am I on the right tracks?
Thank you
Related Posts with Probit lagged variables- panel data
Bootstrap and Fisher's exact testHi everyone, I am kind of new to the forum. I have a question relates to resampling and Fisher's exa…
Prediction for discrete-time frailty models with normal heterogeneity (xtcloglog)Dear Statalist. I have estimated a discrete-time hazard model with a normal unobserved heterogeneit…
Threshold regression model for cross-sectional dataHello everyone! I am planning to run a threshold regression model for a cross-sectional data. Howeve…
mofd and twoway connected graph issueHello, I use Stata 14.2. I am working on a cross-sectional dataset. I have used the command mofd to…
matching the x/y coordinates of flats/houses to a environmental noise mapMy aim is to match the x/y coordinates of flats to a environmental noise map. The latter is segmente…
Subscribe to:
Post Comments (Atom)
0 Response to Probit lagged variables- panel data
Post a Comment