Skip to content

Nan value #1

Description

@anomaly122

Hello I have a question.
when I use extremevalues package, it show me "NaN create" message.
How to solve this?

sample code
y <- rlnorm(100)
y <- c(0.1min(y),y,10max(y))
K <- getOutliers(y,method="I",distribution="lognormal")
L <- getOutliers(y,method="II",distribution="lognormal")
par(mfrow=c(1,2))
outlierPlot(y,K,mode="qq")
outlierPlot(y,L,mode="residual")

I reference above code and then use my data. (change y value to my data(numeric))
But it is not work properly.

error code sample >>> ex) outlierPlot(y,K,mode="qq")
Error in while (par$residuals[i - 1] > par$limit[2] & i > tail(iLambda, :
missing value where TRUE/FALSE needed
In addition: Warning message:
In qlnorm(p, par$mu, par$sigma) : NaN was created.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions