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
How to extract element of a matrix and put it to new rows of this matrixDear Statalists, I am not very familiar with the matrix in Stata. I just have a simple question bel…
Display only unique/destinct combinations in looped test of two identical varlistsHello all, I am using stata 16.1 and am struggling with the following challenges: 1.) I want to com…
IVtobit aweight and clusteringDear friends, if I use tobit for dependent variable, Y, with lots of zero or negative values, can I …
Upgrading to Stata16 - Can I retrieve my username and password from my Stata15 app?Hello My company provided me the license for Stata16, however, I had been using it for Stata15 that…
Why do I get different results with mixed and meglm commands?Dear statalists members I have a dependent variable that is the logarithm of minutes of commuting ti…
Subscribe to:
Post Comments (Atom)
0 Response to Probit lagged variables- panel data
Post a Comment