Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: multivariate normal regression with ml, linear form


From   "Carlo Fezzi" <[email protected]>
To   <[email protected]>
Subject   RE: st: multivariate normal regression with ml, linear form
Date   Wed, 18 Feb 2009 17:54:59 -0000

Thanks a lot Maarten,

Nice one!

Carlo

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maarten buis
Sent: 18 February 2009 13:33
To: stata list
Subject: RE: st: multivariate normal regression with ml, linear form

--- Carlo Fezzi wrote:
> I don’t know how to define the args. For example, if it is a bivariate
> equations it would be mu1 mu2 lnsigma1 lnsigma2 r12, but for a 4 or 5
> equations model it would have of course more arguments. I guess it could
> be a function of the global var neq, but I don’t know which is the
> correct way to specify the args.

In -dirifit- (downloadable from SSC) I stored the number of depedent
variables in a global $S_k and the file dirifit_lf.ado started with:

*! MLB 1.0.0 23 Mar 2006 
program dirifit_lf
        version 8.2

        local alpha_k "ln_alpha1"
        forvalues i = 2/$S_k {
                local alpha_k "`alpha_k' ln_alpha`i'"
        }

        args lnf `alpha_k'
 

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room N515

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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