Skip to content
Prev 302904 / 398503 Next

sapply and matrix command

On Wed, Aug 8, 2012 at 10:37 AM, alijk1989 [via R]
<ml-node+s789695n4639622h98 at n4.nabble.com> wrote:
Hi Alijk,

The problem ultimately comes from the fact that equicorr() is not
nicely vectorized so you'll need to home-brew something to replace it,
but that's not hard. However, I don't think that pmnorm is vectorized
in the varcov argument: we can probably work out the double sapply()
loop if you can assume rho is constant, otherwise I think you're
stuck.

Michael