Apologies if this question seems to be a repetition of a previous question. I had made some errors in the title, hence posting the corrected question again.
I am getting (error1400): combinations results in numeric overflow; computations cannot proceed, while performing xtlogit, fe in stata with 5738 observations (about 1900 individuals X 3 rounds).
Please consider the following sample data set for this purpose
Code:
input str3 ID byte str1 round byte str1 hi byte str1 acc byte str1 inf byte str1 shock
ID round hi acc inf shock
1. IN1 1 1 0 1 1
2. IN1 2 1 1 1 1
3. IN1 3 0 0 1 1
4. IN2 1 1 1 0 1
5. IN2 2 0 0 1 0
6. IN2 3 1 0 0 0
7. end
. list
+--------------------------------------+
| ID round hi acc inf shock |
|--------------------------------------|
1. | IN1 1 1 0 1 1 |
2. | IN1 2 1 1 1 1 |
3. | IN1 3 0 0 1 1 |
4. | IN2 1 1 1 0 1 |
5. | IN2 2 0 0 1 0 |
|--------------------------------------|
6. | IN2 3 1 0 0 0 |
+--------------------------------------+Code:
encode ID, gen(ID1) drop ID rename ID1 ID xtset round ID
Code:
xtlogit hi inf shock, fe
Code:
1,913 (group size) take 1,640 (# positives) combinations results in numeric overflow; computations cannot proceed r(1400)
The same regression with
Code:
xtlogit acc inf shock, fe
I am confused as to why with only 5738 observations I'm getting numeric overflow. Also, please suggest a way to resolve this problem.
Thanks and Regards
0 Response to How to resolve numeric overflow while performing xtlogit,fe in stata?
Post a Comment