MLE error in R: non-finite finite-difference value/ value in 'vmmin' is not finite
问题 I am working on a loss aversion model in R (beginner) and want to estimate some parameters, from a dataset with 3 columns (loss/gain values (both continous and a column with decisions coded as 0 or 1 (binary)) dropbox.com/s/fpw3obrqcx8ld1q/GrandAverage.RData?dl=0 The part of the code if have to use for this I am using is given below: set <- GrandAverage[, 5:7]; Beh.Parameters <- function (lambda, alpha, temp) { u = 0.5 * set$Gain^alpha + 0.5 * lambda * set$Loss^alpha GambleProbability <- 1 /