powered by
Computes residuals as the difference between observed and predicted values.
# S3 method for gmjmcmc residuals(object, y, x, ...)
Vector of residuals.
Object of class "gmjmcmc".
Respnse.
Covariates.
Additional arguments (ignored).
data(exoplanet) model <- fbms(semimajoraxis ~ ., data = exoplanet, method = "gmjmcmc", transforms = c("sigmoid")) hist(residuals(model, exoplanet[,1], exoplanet[,-1]))
Run the code above in your browser using DataLab