Usage
leiv(formula, data, subset, prior = NULL,
n = NULL, cor = NULL, sdRatio = NULL, xMean = 0, yMean = 0,
probIntCalc = FALSE, level = 0.95, subdivisions = 100,
rel.tol = .Machine$double.eps^0.25, abs.tol = 0.1*rel.tol, ...)## S3 method for class 'leiv':
print(x, digits = max(3, getOption("digits") - 3), ...)
## S3 method for class 'leiv,missing':
plot(x, plotType = "density", xlim = NULL, ylim = NULL,
xlab = NULL, ylab = NULL, col = NULL, lwd = NULL, \dots)
Arguments
formula
an optional object of class "formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted. The details of model specification are given in the Details data
an optional data frame (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment( subset
an optional vector specifying a subset of observations to be used in the fitting process.
prior
an optional object of class leiv to use as the prior density of the scale invariant slope; otherwise the rotationally invariant Cauchy density is used.
n
an optional sample size (if formula is missing).
cor, sdRatio
optional sample correlation cor(x,y) and ratio sd(y)/sd(x) (if formula is missing).
xMean, yMean
optional sample means mean(x) and mean(y) (if formula is missing).
probIntCalc
logical; if TRUE returns the shortest (100*level)% probability intervals; if FALSE (the default) no probability intervals are returned.
level
the probability level requested (if probIntCalc = TRUE).
subdivisions
the maximum number of subintervals (see integrate). rel.tol
the relative accuracy requested (see integrate). abs.tol
the absolute accuracy requested (see integrate). digits
controls formating of numeric objects. plotType
specifies the type of plot; if plotType = "density" (the default) then the posterior density of the slope is plotted; if plotType = "scatter" then a scatter plot with the fitted line.
xlim, ylim
x limits c(x1,x2) and y limits c(y1,y2) of the plot.
xlab, ylab
labels for the x and y axes of the plot.
col, lwd
color and width of plotted lines.
...
additional argument(s) for generic methods.