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

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

From   Maarten buis <>
To   stata list <>
Subject   RE: st: multivariate normal regression with ml, linear form
Date   Wed, 18 Feb 2009 13:33:03 +0000 (GMT)

--- 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 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


*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index