Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with Mata function lnnormalden() with missing values : returning -1.#INF

    Hello
    I am using the function lnnormalden() in a Mata program. When I feed the function with a missing value for the mean and a non-missing value for the standard deviation, I get a "-1.#INF" as a result and not missing (see code below). Any idea why I get this result? How can I manipulate the "-1.#INF"? I couldn't find anything about this in the manual.

    Code:
    . mata: a = lnnormalden(.,3)
    . mata: a
    -1.#INF
    I am using Stata 13.1 on Windows 2008 server.
    Thanks for your help
    Christophe

  • #2
    This is a bug. mata: lnnormalden(.,3) should give the missing value. This will be fixed in a future update. There will be an update this week, but this fix will not be in it. It should make it in the following update though.

    -- Kreshna

    Comment


    • #3
      Thanks for your reply. In the mean time I have written my own lnnormalden(). It is pleasing sometimes to discover a bug ;-), as it does not happen so often.

      Comment

      Working...
      X