[Limdep Nlogit List] Bad Observations
Warwick Wainwright
Warwick.Wainwright at sruc.ac.uk
Fri Jan 8 20:18:31 AEDT 2016
Hi,
I am inserting the following coding and the error message “WARNING: Bad observations were found in the sample”.
The other message is “1 1 Missing value found for RPL=variable or MNP variance variable”
Do you have any ideas what this issue could be? Any help would be greatly appreciated.
IMPORT;FILE="C:\Users\Warwick\Desktop\F\Bovine.csv"$
Last observation read from data file was 1404
|-> CALC;Ran(12345)$
|-> NLOGIT
;lhs=choice
;choices=alt1,alt2,alt3
;rpl= size1, size2, AMED, Quant1, Quant2, Quant3,Benefit1, Benefit2, Benefit3,age2, age3,Edu1, Edu2, tin2, Q6K2, Q6K3, Q6K4
;fcn=bcl(n|#00100110000000000),bss(n|#00000000000000000),bsos(n|#00000000000001000),bcost(n|#11000101000000000)
;Halton
;pds=4
;pts=1000
;Model:
U(alt1)=bcl*cl+bss*ss+bsos*sos+bcost*cost/
U(alt2)=bcl*cl+bss*ss+bsos*sos+bcost*cost/
U(alt3)=sq+bcl*cl+bss*ss+bsos*sos+bcost*cost$
+------------------------------------------------------+
|WARNING: Bad observations were found in the sample. |
|Found 36 bad observations among 468 individuals. |
|You can use ;CheckData to get a list of these points. |
+------------------------------------------------------+
Normal exit: 5 iterations. Status=0, F= 379.0919
-----------------------------------------------------------------------------
Start values obtained using MNL model
Dependent variable Choice
Log likelihood function -379.09190
Estimation based on N = 432, K = 5
Inf.Cr.AIC = 768.2 AIC/N = 1.778
Model estimated: Jan 07, 2016, 17:57:43
R2=1-LogL/LogL* Log-L fncn R-sqrd R2Adj
Constants only -469.1181 .1919 .1757
Response data are given as ind. choices
Number of obs.= 468, skipped 36 obs
--------+--------------------------------------------------------------------
| Standard Prob. 95% Confidence
CHOICE| Coefficient Error z |z|>Z* Interval
--------+--------------------------------------------------------------------
BCL| -.10132*** .02801 -3.62 .0003 -.15622 -.04642
BSS| .02314 .08286 .28 .7801 -.13927 .18554
BSOS| -.36128*** .08261 -4.37 .0000 -.52319 -.19937
BCOST| .00301*** .00028 10.89 .0000 .00247 .00355
SQ| .42662* .25621 1.67 .0959 -.07554 .92879
--------+--------------------------------------------------------------------
Note: ***, **, * ==> Significance at 1%, 5%, 10% level.
-----------------------------------------------------------------------------
Error: 802: Iterations aborted by user request. Exit status=-1.
Function= .37909190194D+03, at entry, .37822084838D+03 at exit
Error: 1025: Failed to fit model. See earlier diagnostic.
|-> CALC;Ran(12345)$
|-> NLOGIT
;lhs=choice
;CheckData
;choices=alt1,alt2,alt3
;rpl= size1, size2, AMED, Quant1, Quant2, Quant3,Benefit1, Benefit2, Benefit3,age2, age3,Edu1, Edu2, tin2, Q6K2, Q6K3, Q6K4
;fcn=bcl(n|#00100110000000000),bss(n|#00000000000000000),bsos(n|#00000000000001000),bcost(n|#11000101000000000)
;Halton
;pds=4
;pts=1000
;Model:
U(alt1)=bcl*cl+bss*ss+bsos*sos+bcost*cost/
U(alt2)=bcl*cl+bss*ss+bsos*sos+bcost*cost/
U(alt3)=sq+bcl*cl+bss*ss+bsos*sos+bcost*cost$
+----------------------------------------------------------+
| Inspecting the data set before estimation. |
| These errors mark observations which will be skipped. |
| Row Individual = 1st row then group number of data block |
+----------------------------------------------------------+
1 1 Missing value found for RPL=variable or MNP variance variable
4 2 Missing value found for RPL=variable or MNP variance variable
7 3 Missing value found for RPL=variable or MNP variance variable
10 4 Missing value found for RPL=variable or MNP variance variable
13 5 Missing value found for RPL=variable or MNP variance variable
16 6 Missing value found for RPL=variable or MNP variance variable
19 7 Missing value found for RPL=variable or MNP variance variable
22 8 Missing value found for RPL=variable or MNP variance variable
73 25 Missing value found for RPL=variable or MNP variance variable
76 26 Missing value found for RPL=variable or MNP variance variable
79 27 Missing value found for RPL=variable or MNP variance variable
82 28 Missing value found for RPL=variable or MNP variance variable
241 81 Missing value found for RPL=variable or MNP variance variable
244 82 Missing value found for RPL=variable or MNP variance variable
247 83 Missing value found for RPL=variable or MNP variance variable
250 84 Missing value found for RPL=variable or MNP variance variable
325 109 Missing value found for RPL=variable or MNP variance variable
328 110 Missing value found for RPL=variable or MNP variance variable
331 111 Missing value found for RPL=variable or MNP variance variable
334 112 Missing value found for RPL=variable or MNP variance variable
373 125 Missing value found for RPL=variable or MNP variance variable
376 126 Missing value found for RPL=variable or MNP variance variable
379 127 Missing value found for RPL=variable or MNP variance variable
382 128 Missing value found for RPL=variable or MNP variance variable
397 133 Missing value found for RPL=variable or MNP variance variable
400 134 Missing value found for RPL=variable or MNP variance variable
403 135 Missing value found for RPL=variable or MNP variance variable
406 136 Missing value found for RPL=variable or MNP variance variable
829 277 Missing value found for RPL=variable or MNP variance variable
832 278 Missing value found for RPL=variable or MNP variance variable
835 279 Missing value found for RPL=variable or MNP variance variable
838 280 Missing value found for RPL=variable or MNP variance variable
1321 441 Missing value found for RPL=variable or MNP variance variable
1324 442 Missing value found for RPL=variable or MNP variance variable
1327 443 Missing value found for RPL=variable or MNP variance variable
1330 444 Missing value found for RPL=variable or MNP variance variable
Thanks,
Warwick
---------------------------------------------------
Warwick Wainwright | PhD Environmental Economics| Land Economy and Environment Group | SRUC | Kings Buildings | West Mains Road | Edinburgh EH9 3JG | United Kingdom | +44 07561311941
Please don't print this e-mail unless you really need to.
This e-mail message is confidential to the intended recipient at the email address to which it has been addressed. If the message has been received by you in error, it may not be disclosed to or used by anyone other than the intended addressee, nor may it be copied in any way. If it is not intended for you please inform us, immediately, then delete it from your system. If the content is not about the business of the organisation then the message is not from us nor is it sanctioned by us. Anything in this e-mail or its attachments which does not relate to SRUC's or SAC Commercial Limited's official business is neither given nor endorsed by SRUC or SAC Commercial Limited.
SRUC
A Charitable company limited by guarantee, Scottish Charity Number: SC003712.
Registered in Scotland, Company Number: SC103046 - Registered Office: Peter Wilson Building, King’s Buildings, West Mains Road, Edinburgh EH9 3JG
SAC Commercial Limited, an SRUC company
Registered in Scotland, Company Number: SC148684 - Registered Office: Peter Wilson Building, King’s Buildings, West Mains Road, Edinburgh EH9 3JG
More information about the Limdep
mailing list