Suppose "a" is a sequence of length n, and "b" is another sequence of
length m, where m<n. You would like to return a sequence of length n,
whose ith element (i=1,...,n) is the product over j=1,...,m of a function
like Phi(a_i + a_i*b_j). Here, Phi is the standard normal cdf ("pnorm"),
and i and j are being used to index the elements of "a" and "b",
respectively.
My question for more experienced Splus users is, is there an efficient way
to do this, somehow taking advantage of the default matrix arithmetic
rules (i.e., if possible without using a "for" loop, etc.)?
Thanks very much for considering this question.
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news