stan-dev / example-models

Example models for Stan
http://mc-stan.org/
772 stars 479 forks source link

Error unused argument newpid in 24.2_BehavioralLearningExperiment.R #133

Open sam0per opened 6 years ago

sam0per commented 6 years ago

Hi there,

I have found an error in line 55 of the script 24.2_BehavioralLearningExperiment.R

code

frame = data.frame(x1=0:(n.trials-1),y1=test(y.sim[,,],newpid=newpid))

error

Error in test(y.sim[, , ], newpid = newpid) : 
  unused argument (newpid = newpid)

I am not really sure what newpidis supposed to mean, can somebody help me to figure this out?

ps: I also found a typo in line 28 of the same script: n.schok.rep must be replaced with n.shock.rep

Samuel