cannot use the esnormal function in VaRES package

R programming language resources Forums Statistical analyses cannot use the esnormal function in VaRES package

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1065
    erickwy
    Member

    I have difficulty in using the esnormal function which gives me the folowing errors:

    Error in integrate(f, lower = 0, upper = p[i], stop.on.error = FALSE) :
    non-finite function value
    In addition: Warning message:
    In qnorm(p, mean = mu, sd = sigma, log.p = log.p, lower.tail = lower.tail) :
    NaNs produced

    THe code that I am using is the following:

    library(VaRES)
    esnormal(data, mu=0, sigma=1)

    where this “data” is the following:

    [,1] [,2] [,3] [,4]
    [1,] 619765 58771 10926 1670
    [2,] 640970 59996 10548 1675
    [3,] 644569 59058 11613 1670
    [4,] 664022 52263 10761 1663
    [5,] 634780 56753 10002 1690
    [6,] 662695 57328 9166 1643
    [7,] 642689 70784 13030 2135
    [8,] 642950 62541 11951 1765
    [9,] 625496 8600 12747 1712
    [10,] 648375 797303 11672 1873
    [11,] 625091 79293 12210 1862
    [12,] 603438 95769 12187 1829
    [13,] 688238 99285 12083 1801

    Is there a way to solve this problem?

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Scroll to top
Privacy Policy