JanaJarecki / cognitiveutils

Utility functions for cognitive psychologists
MIT License
1 stars 0 forks source link

Sigma missing in Log likelihood #2

Open FlorianSeitz opened 4 years ago

FlorianSeitz commented 4 years ago

Within the Loglikelihood.R script, when responses are continuous and pdf is normal, the following code is run:

return(sum(dnorm(x = obs, mean = pred, sd = sigma, log = TRUE)))

However, when using GCM.R sigma is not specified (NULL) and an error appears.

FlorianSeitz commented 4 years ago

@JanaJarecki Change error message in log likelihood for sigma in dnorm