[ADMB Users] About ADMB code.-

Freddy López freddy.vate01 at gmail.com
Sat Mar 23 17:32:14 PDT 2013


Dear all,

I'm writing you because I'm studying based on document admbre-10.0-rev1.pdf.

In section 4.1 there is a minimum example of a one-way variance component (
https://admb-project.googlecode.com/files/admb-10.0-rev1.pdf).

The shown part of the ADMB code is the following:

PARAMETER_SECTION

random_effects_vector u(1,q)

PROCEDURE_SECTION

for(i=1;i<=q;i++)
    {
        g -= -0.5*square(u(i));
        for(j=1;j<=n(i);j++)
            g -= -log(sigma) - 0.5*square((y(i,j)-mu-sigma_u*u(i))/sigma);
    }

My only question is: how must to be defined the matrix "y" to consider
correctly the different size of n for each i?  Can you send me this code
completed code?

I have no found some group or forum where direct my question.

Please apologize my question.

-- 
«But Gwindor answered: 'The doom lies in yourself, not in your name.'»

JRR Tolkien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20130323/0dce7625/attachment.html>


More information about the Users mailing list