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
xtsur with restrictionDear All, I use xtsur for unbalanced panel data. is there way to restrict the coefficients of two eq…
Retaining the entire ID if there are certain variables in the panel dataGood Morning world English is not my language so google help me. Please understand me. I have stat…
lag regression: Not sorted errorHi, I have tried to run lagged regressions but the error keeps coming up as not sorted. I have sorte…
Collapsing multiple variables using the count optionHi all, I have a dataset where every row represents a study. Each row contains a column describing …
Repeated time values within panel helpHi All, I am having some trouble with understanding the xtset command even after reading through so…
Subscribe to:
Post Comments (Atom)
0 Response to Probit lagged variables- panel data
Post a Comment