I have 3 questions regarding XTSUR
1:
When I input something like
XTSUR (y1 y2 y3 = x1 x2 i.year)
It says factor variable not allowed; Is there anything wrong I did? How to fix this?
2:
Why the number of groups is so few in XTSUR outcome table?
This is the analysis result I have:
One-way random effect estimation:
------------------------------------------------------------------------------
Number of Group variable: 15 Number of obs = 1590
Panel variable: gvkey Number of eqn = 3
Time variable : year Number of panels = 15
I have this unbalanced panel data, with have more than 100 firms across 18 years (2000-2017). The number of observations seems OK (1590); but the number of panels is only 15, which does not make sense to me. It should be at least 100 or something. Is there anything I did wrong?
Thank you
3. Is it possible to adjust for the clustered error or realize the similar purpose equals to using something like vce(cluster gvkey)?
Related Posts with How to use factor variable i.year in XTSUR command?
How can I convert other currencies that vary over time to USD in Stata?Hello, I have a dataset in which I have the amount issued by companies in different periods of time…
After multiple imputation, the failure event number has changed. How can I solve this problem?Hello stata users, I have a problem for multiple imputation... I was willing to impute BMI, Hemog…
Need help with xtmlogitHi everyone, I would like to ask if someone can help me please with the problem I got when I tried t…
Creating a prioritised ethnicity group variableHi all I have hospital admissions data, organised so each observation is an admission. There is a v…
Collapsing milliseconds data in secondsHi, i have a question in collapsing data. In the data sample below the header is the timestamp in mi…
Subscribe to:
Post Comments (Atom)
0 Response to How to use factor variable i.year in XTSUR command?
Post a Comment