Skip to content
Prev 257576 / 398502 Next

question regarding qmvnorm

On 21/04/11 09:59, li li wrote:
(1) In the first instance you should probably contact the maintainer of
the mvtnorm package:

     require(utils)
     maintainer("mvtnorm")

(2) The code you enclosed indicates that you don't understand anything
about functions.  You have m, rho, k, and alpha given as *arguments*
to your function, and yet you specify them explicitly within the body
of the function.  This makes no sense at all.

If you are going to do something it pays to *understand* what you are
doing rather than just slapping down some code at random and hoping
that it will work.

Delete the first four (non-blank!) lines of your code and then call

cc_f(10,0.1,2,0.5)

This does indeed throw an error --- from uniroot().  As I say, contact the
package maintainer.

     cheers,

         Rolf Turner