[Limdep Nlogit List] exporting result of a stochastic frontier RPM model to a csv file
Barry Quinn
b.quinn at qub.ac.uk
Wed Jul 14 01:43:56 EST 2010
Hi,
I am using the code below to try and export the results to a excel file.
open; export="C:\Documents and Settings\barry quinn\My Documents\My Dropbox\Panel credit unions\random parameter model\rpmresults.csv"$
FRONTIER; export;Lhs=yA;Rhs=xA;parameters;cost;eff=u$
FRONTIER;Lhs=yA
;Rhs=xA
;cost;RPM;Pds=_groupti;pts=50;Halton
;Rh2=OCCUP,ilcu,urban,lnta,t
;Fcn=one(n),y1_m(n),y2_m(n),y3_m(n),y4_m(n);eff=urp1$
close;export$
I repeatedly get the error message
Error 209: MINIMIZE; The IV estimator is only for nonlinear 2SLS
Just after where i have included the ;export command (the second command line)
Any ideas of how to fix this would be much appreciated
Thanks
Barry Quinn
Queens University Belfast
-----Original Message-----
From: limdep-bounces at limdep.itls.usyd.edu.au [mailto:limdep-bounces at limdep.itls.usyd.edu.au] On Behalf Of Barry Quinn
Sent: 12 July 2010 18:01
To: 'Limdep and Nlogit Mailing List'
Subject: [Limdep Nlogit List] Ordered probit model with selectivity-partial effects
Hi,
I am estimated the above model using the command below
Probit ;lhs=y;rhs=x;hold$
ordered ;lhs=techscor;rhs=lnta,occup,ilcu,urban;select$
I would like to calculate partial effects for this model (ideally APEs, but at the mean of the observations would be a start), and the standard command (;margin) doesn't produce an output.
I therefore would like to do this manually using matrix commands and have a few questions re how to proceed
I would like to calculate both the direct(from index probability function) and indirect(from selection equation)
-For direct effects of each outcome I should use only the subsample(ie y=1) that is used to estimate this model?
-For indirect effects I should use the full sample?
-If anyone had some code re the calculation of average partial effects for an ordered probability I would be most grateful and hopefully I could adapt it to the case of selectivity.
Many thanks
Barry
NB
I have tried and failed with
;full;margin$
;par;margin$
I also used the E31.2.6 example in the manual which uses simulated data and still no margial effects using ;margin$.
-----Original Message-----
From: limdep-bounces at limdep.itls.usyd.edu.au [mailto:limdep-bounces at limdep.itls.usyd.edu.au] On Behalf Of Liren Zhou
Sent: 12 July 2010 05:26
To: limdep at limdep.itls.usyd.edu.au
Subject: [Limdep Nlogit List] Parameter constrain
Hello,
I am trying to estimate a simple MNL model using following code. I need
to constrain coefficients for some variables. For example, set the
coefficient of travel time to 0.07. Can anybody tell me how it works?
Thanks a lot in advance!
Leren
NLOGIT; LHS = P_HBO, CASENUM, P_INDEX
; CHOICES = AM, MD, PM, NT
; MODEL: U(AM) =Time*Time_HBO/
U(MD) = MD_C + MD_SR3*MODE_SR3 + Time*TIME_HBO + MD_SIZE*HH_SIZE/
U(PM) = PM_C + PM_SR3*MODE_SR3 + Time*TIME_HBO + PM1_SIZE*HH_SIZE/
U(NT) = NT_C + NT_SR3*MODE_SR3 + Time*Time_HBO + NT_SIZE*HH_SIZE$
_______________________________________________
Limdep site list
Limdep at limdep.itls.usyd.edu.au
http://limdep.itls.usyd.edu.au
_______________________________________________
Limdep site list
Limdep at limdep.itls.usyd.edu.au
http://limdep.itls.usyd.edu.au
More information about the Limdep
mailing list