JanaJarecki / cognitivemodels

Cognitivemodels is an open-source R library to create, fit, test, and compare computational cognitive models based on machine-learning principles.
25 stars 4 forks source link

free parameter estimates appear at wrong place when printing out model summary #59

Open FlorianSeitz opened 4 years ago

FlorianSeitz commented 4 years ago

dt <- data.frame( x1 = c(100, -100), px = 1, x2 = 0, y1 = c(200, -200), py = c(.71, .64), y2 = 0, rp = 1) # Tversky & Kahneman, 1992, pp. 313 tk_par <- c(beta = 0.88, lambda = 2.25, gammap = 0.61, gamman = 0.69) M <- cpt(rp ~ x1 + px + x2 | y1 + py + y2, ref = 0, data = dt, fix = tk_par, choicerule = "softmax")

**alpha and tau are being fit print out:

M

alpha and tau appear, as the other parameters, in the constrained parameters; the free parameter estimates is an empty vector of length 0.**