Skip to content

Commit 6e511dc

Browse files
committed
obs. infomat needs not have data arg
1 parent 8652e8a commit 6e511dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/univdist.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ gpd.score <- function(par, dat) {
169169
#' @keywords internal
170170
gpd.infomat <- function(par, dat, method = c("obs", "exp"), nobs = length(dat)) {
171171
method <- match.arg(method)
172-
dat <- as.vector(dat)
173172
sigma <- as.vector(par[1])
174173
xi <- as.vector(par[2])
175174
if (method == "obs") {
175+
dat <- as.vector(dat)
176176
if (any((1 + xi * dat/sigma) < 0)) {
177177
stop("Data outside of range specified by parameter, yielding a zero likelihood")
178178
}

0 commit comments

Comments
 (0)