Re: nested logit #2

  • Permalink
  • submit to reddit
  • Email
  • Follow


Lee:I was writting for you.
Do you receb my comments? .
=20
I was sending one idea for you problem.
=20
I was working about that=2C and you said of residuals=2C I believe that is =
decision probability. I'm  thinking about that. How can  I graphic of decis=
ion probabillity?
=20
Thanks=2C
Sandra Vergara> Date: Thu=2C 23 Oct 2008 16:13:46 -0400> From: lpanas@brand=
eis.edu> To: sa_vergara@HOTMAIL.COM> CC: SAS-L@LISTSERV.UGA.EDU> Subject: R=
e: nested logit> > Sandra=2C Thanks for your response. I also get red inste=
ad of blue on the utility statement. I don't think that means anything. Som=
etimes that happens with new procedures. > > Lee> > ----- Original Message =
-----> From: "sandra vergara cardozo" <sa_vergara@HOTMAIL.COM>> To: SAS-L@L=
ISTSERV.UGA.EDU> Sent: Thursday=2C October 23=2C 2008 3:11:15 PM GMT -05:00=
 US/Canada Eastern> Subject: Re: nested logit> > Lee=2C When you running of=
 program MDC=2C of the words utility appear red? or blue? In my case=2C app=
ear red? It=B4s wrong? Thanks> Date: Mon=2C 20 Oct 2008 19:42:46 -0200> Fro=
m: scardozo@ESALQ.USP.BR> Subject: [Fwd: nested logit.]> To: SAS-L@LISTSERV=
..UGA.EDU> > Lee:> > You need writte:> First:> need writting of same name os=
 variables (5):> personid =3Dtacl1> decision =3Dtacl2> topmode=3Dtacl3> mid=
mode =3D tacl4> mode =3D tacl5> > What is the variable Choice? male depress=
ion> > > data newdata1(keep=3Dpid decision mode tacl)=3B> set owl1=3B> arra=
y tvec{5} tacl1 - tacl5=3B> retain pid 0=3B> pid + 1=3B> do i =3D 1 to 5=3B=
> mode =3D i=3B> tacl =3D tvec{i}=3B> decision =3D ( choice =3D i )=3B> out=
put=3B> end=3B> run=3B> > proc mdc data=3Dnewdata1=3B> model decision =3D t=
acl / type=3Dnlogit choice=3D(mode 1 2 3 4 5 )> id pid=3B> utility u(1=2C) =
=3D tacl=3B> nest level(1) =3D (1 2 @ 1=2C 3 4 @ 2=2C 5 @ 3)=2C> level(2) =
=3D (1 2 @ 1=2C 3 @ 2)=3B> output out=3D owl1GL p=3D pdec1GL=3B> run=3B> > =
> data saida1=3B merge owl1GL=3B> e =3D tacln - pdec1GL=3B> proc print data=
=3Dsaida1=3B> run=3B> > And you can export of residuals for excel.> > I hop=
e help you.> > Sandra> > --------------------------- Mensagem Original ----=
------------------------> Assunto: nested logit.> De: "Lee Panas" <lpanas@B=
RANDEIS.EDU>> Data: Seg=2C Outubro 20=2C 2008 14:41> Para: SAS-L@LISTSERV.U=
GA.EDU> -------------------------------------------------------------------=
-------> > Hi=2C I am trying to use PROC MDC for a nested logit. My study i=
nvolves a> group of people with bipolar disorder. I am trying to predict dr=
ug> prescribed based on patient characteristics (age=2C gender=2Cetc) and c=
linical> status (depression=2C mania=2C etc.). All independent variables ar=
e individual> specific.> > At the bottom level=2C there are 5 choices for d=
rugs: 1=2C 2=2C 3=2C 4=2C 5. The> drugs are nested as follows: At mid level=
=2C there are three drug types: A> (1=2C2)=2C B (3=2C4)=2C C (5). At the to=
p level=2C there are two classes: X (A=2CB)=2C> Y (C).> > Here is part of m=
y data set:> > personid decision topmode midmode mode male depression> 1 0 =
1 1 1 1 0> 1 1 1 1 2 1 0> 1 0 1 2 3 1 0> 1 0 1 2 4 1 0> 1 0 2 3 5 1 0> 2 1 =
1 1 1 0 1> 2 0 1 1 2 0 1> 2 0 1 2 3 0 1> 2 0 1 2 4 0 1> 2 0 2 3 5 0 1> > My=
 problem is that it seems as if each indep variable can only occur once at>=
 each level. If they appear more than once=2C then SAS gives a parameter> e=
stimate but no standard error on the second occurrence. Is there any way> t=
o get SAS to print standard errors each time? Here is an example of my> SAS=
 code:> > proc mdc> model decision=3Dmale depression/type=3Dnlogit choice=
=3D(mode 1 2 3 4 5)=3B> id personid=3B> utility u(1=2C 1 2) =3D male depres=
sion> u(1=2C 3 4) =3D male depression> u(2=2C 1 2) =3D male depression> =3B=
> > nest level(1)=3D (1 2 @ 1=2C 3 4 @ 2=2C 5 @ 3)> level(2)=3D (1 2 @ 1=2C=
 3 @ 2)=3B> > Output:> > Parameter Estimate std err> > male_L1G1 -1.41 miss=
ing> depression_L1G1 2.61 3.89> male_L1G2 -1.31 1.56> depression_L1G2 2.48 =
missing> male_L2G1 2.02 5.94> depression_L2G1 -3.96 11.19> > Is there any w=
ay to get SAS to compute standard errors in the cases above> where it is mi=
ssing?> > Thanks=2C> > Lee> > > Sandra Vergara Cardozo> Doutoranda em Estat=
=EDstica> ESALQ/USP> Tel: (19)3429-4144> Ramal:233/235> > Express yourself =
instantly with MSN Messenger! MSN Messenger > _____________________________=
____________________________________> Express yourself instantly with MSN M=
essenger! Download today it's FREE!> http://messenger.msn.click-url.com/go/=
onm00200471ave/direct/01/



Express yourself instantly with MSN Messenger! MSN Messenger=20
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/=
0
Reply sa_vergara (5) 10/23/2008 11:45:08 PM

See related articles to this posting

comp.soft-sys.sas 131434 articles. 30 followers. Post

0 Replies
92 Views

Similar Articles

[PageSpeed] 27


Reply:

Similar Artilces:

Re: Using MDC (Logit or Nested logit) on varying choice sets #2
--- David L Cassell <davidlcassell@MSN.COM> wrote: > ug97044@YAHOO.COM wrote: > >I want to use MDC to estimate a logit model in which each decision > maker > >has a different choice set. That is, the first individual has three > >choices, the second individual has five choices and so on. I only > know the > >maximum and the minimum number of choices possible. Can anybody give > me > >some advise on how to do this? > > > >Regards > >Anand. > > I have to wonder about your data first. I would use PROC MDC for a > multino...

RE: Re[3]: wxGTK 2.4.2 / GTK+ 2.6.2 Drag and Drop locks up #2
Kevin - I'd love to do just that (I've already built 2.5.3 and am perusing the CVS logs for deltas as I compose this), but my boss(es) are big on only deploying 3rd-party libraries which have been blessed as "stable" to our customers (yes, I'm on a commercial endeavor), and it's hard for me to blame them from a risk standpoint. I look forward to 2.6 (or whatever is to be the next stable release). To that point - can someone point me to the policies/criteria/processes/thresholds/heuristics for deeming a particular release as a "snapshot" or "st...

RE: [ace-bugs] Re: ACE_LACKS_CLEARERR for Tornado 2.2.x and g++ #2 #2
Hi, Thanks for the info. I will have a look in detail tomorrow. I would propose to use ACE_VXWORKS as the define to check on the right version. 0x540 is then Tornado 2.0 with gcc 2.7.2, 0x542 is Tornado 2.1 (or whatever windriver called it) but is has gcc 2.9.6 and 0x550 is VxWorks 5.5, I only don't know what VxWorks AE is then? Johnny > -----Original Message----- > From: Thomas Lockhart [mailto:Thomas.Lockhart@jpl.nasa.gov] > Sent: Thursday, December 04, 2003 7:44 PM > To: Johnny Willemsen > Cc: andzik@rtlogic.com; ace-bugs@cs.wustl.edu > Subject: Re: [ace-bugs] Re: ...

Re: NDSolve[] with nested If[] and Piecewise[] usage: #2 #2
Hello Mathematica friends, Sometime back I posted this question on the usage of nested If[] and Piecewise[] inside NDSolve[]. I followed Oliver's reply and was able to solve that particular case. I also could solve another problem which is similar to the posted problem. But when I tried the same (like enclosing the expressions with Evaluate[]) on another notebook which has similar usage of nested If[], it did not work. I have included the code here, you can also notice that Piecewise[] also did not work here. Please give me your suggestions to solve this problem. Thank you. ...

Re: Nested macro string with nested quotes #2
Paul, You must hide the single quote marks with a quoting function in order to get what is inside resolved. Usually the quoted material is automatically unquoted when passed to the compiler. However, quote marks are an exception, they must be explicitly unquoted in pairs. Use %unquote(%str(%')[ACTIVATE("Kids&FY1..xls")]%str(%')) IanWhitlock@westat.com -----Original Message----- From: Paul Choate [mailto:pchoate@DDS.CA.GOV] Sent: Monday, July 28, 2003 12:36 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Nested macro string with nested quotes Hi all, I am trying to crea...

RE: RE: RE: [9fans] boot error walking #2 #2
> The wiki is always out of date. As far as I can tell > it is a 'fire and forget' document. Read it with a grain > of salt. i updated the 'Configuring a standalone CPU server' page to be somewhat closer to reality. ...

Re: Manually nested Tables faster than builtin nesting? #2
Bill Rowe wrote: > On 10/27/10 at 5:13 AM, sschmitt@physi.uni-heidelberg.de (Sebastian > Schmitt) wrote: > >> I find that manually nested Tables are faster (factor 2 in my >> example) compared to the builtin nesting. I probably do a stupid >> thinko. Could you please have a look? > >> In[52]:= imax = jmax = 5000; > >> In[53]:= (tabletable = Table[Table[i*j, {i, imax}], {j, jmax}];) // >> Timing // First > >> Out[53]= 1.84 > >> In[54]:= (table = Table[i*j, {i, imax}, {j, jmax}];) // Timing // >> Firs...

RE: Re[3]: wxGTK 2.4.2 / GTK+ 2.6.2 Drag and Drop locks up
Robert, I will when I get a chance; I'm focussed on fixing in 2.4.2 since that's what's "stable." See my related message re: gdk_pointer_ungrab for my current workaround. Thanks for your interest, Chris -----Original Message----- From: Robert Roebling [mailto:robert@roebling.de]=20 Sent: Friday, February 25, 2005 11:29 AM To: wx-users@lists.wxwidgets.org Subject: Re[3]: wxGTK 2.4.2 / GTK+ 2.6.2 Drag and Drop locks up Smouse, Chris: > Okay, everyone - I have written a minimal (~150 lines) test using=20 > wxGrid and DnD, and am able to r...

RE: Re[2]: [Mac, 2.8.2]
I agree that this is a good idea. I don't think we would need mac specific code, as I think the interface and implementation can be done on the generic interface of the wx controls. For the time being, all I was thinking of doing is a simple "if" where needed in the wxTextValidator to know whether it's dealing with a combo-box or text edit control (pretty much like the generic validator does). It seems to me very simple to do so, and that is definitely something I can do. As for creating a wxTextEntryIFace, I'm not 100% sure I understand your design concept. ...

Re: Using MDC (Logit or Nested logit) on varying choice sets
ug97044@YAHOO.COM wrote: >I want to use MDC to estimate a logit model in which each decision maker >has a different choice set. That is, the first individual has three >choices, the second individual has five choices and so on. I only know the >maximum and the minimum number of choices possible. Can anybody give me >some advise on how to do this? > >Regards >Anand. I have to wonder about your data first. I would use PROC MDC for a multinomial discrete choice model. But I would NOT feel comfortable taking data where Person #1 has choices 1,2,3 and Person #2 has choice...

Re: Nested if-then-do #2
Dave: When I copied the raw data to SAS Editor, the raw data looks fine. Ignore some request about input in the last email but still let me know your desired result. J S Huang 1-515-557-3987 fax 1-515-557-2422 >>> dave crimkey <d_crimkey@YAHOO.COM> 2/4/2006 10:46:08 AM >>> I'm trying to run through a dataset and count cases where the "types" are the same. I have four types that I'm looking through and when any one of the types is the same as any of the other types its counted as two counts (two types are the same). If three types are the same it...

Re: Using MDC (Logit or Nested logit) on varying choice sets #3
I was a bit too quick with my previous response. To fit a multinomial discrete choice model with NLMIXED where each selection has its own set of covariates, the data must be structured in wide form with all brand-specific information in a single record. Thus, for the yogurt data where there are up to four brands and each brand has its own price and feature values, we would require a data set with brand selected (whether Yoplait, Dannon, Weight Watchers, or local brand), price for each brand, feature status for each brand, and a choice set variable. As before, let BRAND take on the value 1 f...

RE: [ace-bugs] Re: ACE_LACKS_CLEARERR for Tornado 2.2.x and g++ #2
Hi, When I remember correctly there has been a 0x542 release for some platforms that shipped with gcc-2.96. Only 0x540 is VxWorks 5.4 and is shipped with 2.7.x which we don't support anymore. Johnny -----Original Message----- From: Thomas Lockhart [mailto:Thomas.Lockhart@jpl.nasa.gov] Sent: donderdag 4 december 2003 18:38 To: Johnny Willemsen Cc: andzik@rtlogic.com; ace-bugs@cs.wustl.edu Subject: Re: [ace-bugs] Re: ACE_LACKS_CLEARERR for Tornado 2.2.x and g++ > > >Then I will change it to == 0x542. That way it works with Tornado 2.2 >and with older versions. 0x540 is not...

Re: nested logit
Lee=2C When you running of program MDC=2C of the words utility appear red? = or blue? In my case=2C appear red? It=B4s wrong? Thanks> Date: Mon=2C 20 Oc= t 2008 19:42:46 -0200> From: scardozo@ESALQ.USP.BR> Subject: [Fwd: nested l= ogit.]> To: SAS-L@LISTSERV.UGA.EDU> > Lee:> > You need writte:> First:> nee= d writting of same name os variables (5):> personid =3Dtacl1> decision =3Dt= acl2> topmode=3Dtacl3> midmode =3D tacl4> mode =3D tacl5> > What is the var= iable Choice? male depression> > > data newdata1(keep=3Dpid decision mode t= a...

Re: Re[2]: (wx-users) Re: problems with wxMSW 2.8.0
VZ wrote on 25-JAN-2007 12:42:40.23 >JJ> In the application the bitmap (and also lines, text etc..) are generated by a >JJ> a procedure that is called from another language than c++ (i.e. C or F90) > > Why should it matter? > >JJ> By doing so the EVT_PAINT is not activated and the class of "canvas" is not >JJ> known. > > I don't understand this, sorry. The problem is that some c++ objects are not properly defined. One would like to call routines bbbb::ccccc. But that is not always allowed. >>JJ> So you need at least ...

RE: Re[2]: [Mac, 2.8.2] Handling menu open event
Yes, but the code that wants to hook to the menu, doesn't have direct access to the frame. So the question is this: Should I change my code so I have access to the frame, or can I just access one of the menus in the menubar and get the frame from it? > -----Original Message----- > From: Vadim Zeitlin [mailto:vadim@wxwidgets.org] > Sent: Tuesday, July 17, 2007 2:47 PM > To: wx-users@lists.wxwidgets.org > Subject: Re[2]: [Mac, 2.8.2] Handling menu open event >=20 > On Tue, 17 Jul 2007 15:04:21 +0200 Yaron Tadmor <YaronT@HumanEyes.com> > wrote: &...

RE: [ace-bugs] Re: ACE_LACKS_CLEARERR for Tornado 2.2.x and g++ #2 #5
Hi Tom, With DWARF exception handling, there is absolutely no cycle overhead until you actually throw, and the DWARF interpreter needed is only around 5 K bytes long. The memory overhead includes static "region tables" stored in a special ELF section of each object file. The table's size varies with the architecture and EABI. More registers, larger tables. The Diab compiler already implements a sort of DWARF exception handling. This makes a real argument in favor of the Diab compiler for C++ applications that use exception handling heavily. We are looking into using the new...

Re: [ace-bugs] Re: ACE_LACKS_CLEARERR for Tornado 2.2.x and g++ #2 #4
Hi Rob, It would be great to get the VxWorks build back on the scoreboard before the ACE+TAO x.4 release at the end of this month! Thanks, doug ...

RE: Re[2]: [Mac, 2.8.2] possible bug in drag hilight code
Will do. > -----Original Message----- > From: Vadim Zeitlin [mailto:vadim@wxwidgets.org] > Sent: Thursday, July 19, 2007 3:11 PM > To: wx-users@lists.wxwidgets.org > Subject: Re[2]: [Mac, 2.8.2] possible bug in drag hilight code >=20 > On Thu, 19 Jul 2007 14:07:58 +0200 Yaron Tadmor <YaronT@HumanEyes.com> > wrote: >=20 > YT> Hello? Anyone has any ideas, or should I just go on and fix it. >=20 > I don't have any ideas and I believe that Stefan has some troubles with > reading/posting to the list (maybe you could try writing to...

RE: [ace-bugs] Re: ACE_LACKS_CLEARERR for Tornado 2.2.x and g++ #2 #3
Sorry for not jumping in this sooner. I have been trusting some email filters that apparently were not working like I thought. Anyway, my understanding is that WindRiver released an interim version of Tornado (Tornado 2.1) with the GNU 2.96 compiler and some other fixes. The 2.1 version only supported a handful of platforms (some Motorola CPUs were supported while Intel CPUs were excluded). This was the version of VxWorks that I was using when I made the previously mentioned ACE_LACKS_CLEARERR change. As far as I can tell there is very little difference between the compiler versions shipp...

Re: [9fans] Re: acme mail #2 #2
it wouldn't be the raw file if it quoted the from line. i've been thinking that an intermediate file may need to exist. one with all the character set translations done and the transfer encodings removed. moving to a mail directory format (any one with 1 email per file) may also be a good idea. - erik On Mon Feb 20 11:21:48 CST 2006, rsc@swtch.com wrote: > > with lines starting with From. I keep intending to do > > something about it and post a patch, but my supply of > > round tuits keep getting allocated to other things. If > > anyone else is messing wi...

Re: [9fans] Re: new release? #2 #2
http://www.cs.bell-labs.com/9grid/ ----- Original Message ----- From: David Tolpin <dvd@davidashen.net> Date: Wednesday, February 25, 2004 4:13 pm Subject: Re: [9fans] Re: new release? > > personally, i like the simplicity and elegance of > > plan9, so i use it and develop for it when i have time. > > > > OK, are there development efforts of general interest closely > related to plan9? Is there a list anywhere? Many, if not most, > projects mentioned on Wiki I sleeping. > > David > OK, somebody else mentioned 9grid. I ought to mention that...

Re: [9fans] Re: advantages of limbo #2 #2
> In fact, no-one uses Plan 9, right? Surely, none uses Plan 9 a lot. -- >> In fact, no-one uses Plan 9, right? > > Surely, none uses Plan 9 a lot. or just hoping to steal some ideas. ☺ Kenji ...

RE: Re[2]: Wx285 GTK2 Slow? #2
I'll look into switching off double buffering for the other windows but at least for the plotting window I did try and it just made it worse. The drawing functions are quite simple. Mostly consists of DrawLine for wxMemoryDc and wxClientDc. As for wxDataViewCtrl I think it has what I want already. I need just a list with one column a checkbox and strings in the others. The wxDataViewCtrl sample shows such a dialog. On windows with wx285 it looks good but on unix again with GTK1 the checkbox is not so elegant... That's with wx285 so perhaps it has already been addressed in la...