Learn R Programming

FBMS (version 1.3)

residuals.gmjmcmc_merged: Residuals for GMJMCMC Merged Model

Description

Computes residuals as the difference between observed and predicted values.

Usage

# S3 method for gmjmcmc_merged
residuals(object, y, x, ...)

Value

Vector of residuals.

Arguments

object

Object of class "gmjmcmc_merged".

y

Respnse.

x

Covariates.

...

Additional arguments (ignored).

Examples

Run this code
data(exoplanet)
model <- fbms(semimajoraxis ~ ., data = exoplanet, 
method = "gmjmcmc.parallel", transforms = c("sigmoid"), 
runs = 2, cores = 1)
hist(residuals(model, exoplanet[,1], exoplanet[,-1]))

Run the code above in your browser using DataLab