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