Methods defined for objects returned from error-in-variables models (e.g., dem_reg, pb_reg).
# S3 method for simple_eiv
print(x, ...)# S3 method for simple_eiv
formula(x, ...)
# S3 method for simple_eiv
model.frame(formula, data = NULL, na.action = na.pass, ...)
# S3 method for simple_eiv
summary(object, ...)
# S3 method for simple_eiv
confint(object, parm, level = NULL, ...)
# S3 method for simple_eiv
plot(
x,
x_name = NULL,
y_name = NULL,
interval = c("none", "confidence"),
level = NULL,
n_points = 100,
data = NULL,
...
)
# S3 method for simple_eiv
check(x, data = NULL, ...)
plot_joint(x, ...)
# S3 method for simple_eiv
plot_joint(
x,
ideal_slope = 1,
ideal_intercept = 0,
show_intervals = TRUE,
n_points = 100,
...
)
# S3 method for simple_eiv
vcov(object, ...)
# S3 method for simple_eiv
coef(object, ...)
# S3 method for simple_eiv
fitted(object, type = c("y", "x", "both"), data = NULL, ...)
# S3 method for simple_eiv
residuals(object, type = c("optimized", "x", "y", "raw_y"), data = NULL, ...)
# S3 method for simple_eiv
predict(
object,
newdata = NULL,
interval = c("none", "confidence"),
level = NULL,
se.fit = FALSE,
data = NULL,
...
)
printPrints short summary of the EIV regression model.
summaryPrints detailed summary.
plotReturns a plot of the regression line and data.
checkReturns plots of residuals.
plot_jointReturns plot of joint confidence region (Deming only).
predictPredicts Y values for new X values.
fittedExtracts fitted values.
residualsExtracts residuals.
coefExtracts model coefficients.
vcovExtracts variance-covariance matrix.
further arguments passed through.
A simple_eiv object (for model.frame method)
Optional data frame. Required if model was fitted with model = FALSE
and newdata is NULL.
Function for handling NA values (default: na.pass)
object of class simple_eiv from dem_reg or pb_reg function.
A specification of which parameters are to be given confidence intervals, either a vector of numbers or a vector of names. If missing, all parameters are considered.
Confidence level for intervals (default uses the model's conf.level).
Name for x-axis label (optional).
Name for y-axis label (optional).
Type of interval calculation. Can be "none" (default), or "confidence"
Number of points to use for drawing the joint confidence region (default = 100).
The hypothesized slope value to test against (default = 1)
The hypothesized intercept value to test against (default = 0)
Logical. If TRUE, shows individual confidence intervals as well.
Type of residuals to return. Options are "optimized" (default), "x", "y", or "raw_y".
An optional data frame containing values of X at which to predict. If omitted, the fitted values are returned.
Logical. If TRUE, standard errors of predictions are returned. Note: For Passing-Bablok regression without bootstrap, standard errors are not available and this argument is ignored with a warning.