Skip to content

Nan value #1

@anomaly122

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.

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