From | "Tonya Cropper" <[email protected]> |
To | "Statalist" <[email protected]> |
Subject | Re: st: Using mlogit estimates |
Date | Tue, 10 May 2005 14:23:25 -0400 |
Dear Tonya:
For this problem, I've used matrix commands to extract the particular coefficient from the matrix:
Here is an example in relation to the e(V) matrix, but its the same idea for the e(B) matrix. I recommend looking up the matrix commands to gain familiarity with how to "list" and look at the matrix and other things.
matrix varmatrix=e(V);
local alpharow=rownumb(varmatrix,"lnalpha:_cons"); /*I needed to "list" the matrix to figure out what the name of the row I was looking for was called*/
gen selnalpha=sqrt(varmatrix[`alpharow',`alpharow']) in `writeline';
Kevin.
X-Sieve: CMU Sieve 2.2
X-Authentication-Warning: hsphsun2.harvard.edu: majordom set sender to [email protected] using -f
From: "Tonya Cropper" <[email protected]>
To: "Statalist" <[email protected]>
Subject: st: Using mlogit estimates
Date: Tue, 10 May 2005 07:32:49 -0400
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MIMETrack: Itemize by SMTP Server on KSGLDAP/KSG(Release 6.5.2|June 01, 2004) at 05/10/2005
07:32:34 AM,
Serialize by Router on KSGMTA/KSG(Release 6.0.5|March 27, 2005) at 05/10/2005
07:32:39 AM,
Serialize complete at 05/10/2005 07:32:39 AM
Sender: [email protected]
Reply-To: [email protected]
X-Spam-Score: -4.9
X-Spam-Flag: NO
X-Scanned-By: MIMEDefang 2.42
Hello,
I am trying to use the estimates from a mlogit regression output to calculate the probabilities of three outcome using different data. When I type in "ereturn list" after the mlogit command is run, the matrix of the estimates referenced by e(b): 1x32 is listed. Is there anyway to reference the coefficients individually to perform a calculation such as this one:
Pr(y=2) = exp(XB2)/(1+exp(XB2)+exp(XB3))
where XB2 and XB3 are the set of estimates for each respected outcome times its respected value.
Thank you,
Tonya Cropper
PhD Candidate in Public Policy
Harvard University
617.493.9601
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |