gof | R Documentation |
logLik(m)
computes the log likelihood of a cm object, SSE(m)
computes the sum of squared errors, MSE(m)
computes the mean squared error.
## S3 method for class 'cm' logLik(object, newdata = NULL, ...) MSE(x) RMSE.cm(x) SSE(x, ...) SSE(x)
... |
other arguments (ignored) |
x |
a cm object |
If a model predicts several values the error measures use the first column of predictions to compute the errors. For example, if the predictions are pr(x) and pr(z), the sum of squared errors is based on the data - pr(x).
A number measuring the goodness of fit between predictions and observed data.
Other fit measures for cognitive models:
AICc.cm()
,
MSE.cm()
Other fit measures for cognitive models:
AICc.cm()
,
MSE.cm()
Other fit measures for cognitive models:
AICc.cm()
,
MSE.cm()
Other fit measures for cognitive models:
AICc.cm()
,
MSE.cm()
MSE(M) # 0.1805 D <- data.frame(x = 1, y = 1:1, z = 0:1) M <- bayes_beta(y ~ x + z, D, fix = "start") # If you want, look at the predictions # predict(M) SSE(M) # 0.361
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.