Error in optim(start, nllh, ..., method = method) : non-finite value supplied by optim

Viewed 10

I run my codding like this But the error come out
Ozone<-Z <br> Ozone <br> LonLatAlt<-data.matrix(OzoneLotLatAlt_NSG1) <br> LonLatAlt <br> form.loc <- loc ~ Long + Lat + Alt <br> form.scale <- scale ~ 1 <br> form.shape <- shape ~ 1 <br> dim(Ozone) <br> dim(LonLatAlt) <br> fit1 <- fitspatgev(Z,scale(LonLatAlt,scale = FALSE),form.loc,form.scale,form.shape);fit1 <br> TIC(fit1)

error

Error in optim(start, nllh, ..., method = method) :    non-finite value supplied by optim

how can i solve it?

thank you

0 Answers
Related