Dear BUGS-list
I would like to calculate for example a grand mean or a sum on a
non-rectangular array.
To be a little more specific, I have subjects (i), duration of
exposure for each subject (duration[i] along years) and a measure of
something (X[i,1:duration[i]]). How can I can retrieve the mean of X
across subjects and measures? I try, without success, different
things: sum(X[,]), calculate a sumulative index of duration and
rewrite X in a vector Y, ...
Any idea would be very welcome. Cheers, Erik.
--
Erik A Sauleau MD, PhD
Department of Biostatistics
Faculty of Medicine
University of Strasbourg
-------------------------------------------------------------------
This list is for discussion of modelling issues and the BUGS software.
For help with crashes and error messages, first mail [log in to unmask]
To mail the BUGS list, mail to [log in to unmask]
Before mailing, please check the archive at www.jiscmail.ac.uk/lists/bugs.html
Please do not mail attachments to the list.
To leave the BUGS list, send LEAVE BUGS to [log in to unmask]
If this fails, mail [log in to unmask], NOT the whole list
|