View source: R/methods.simple_eiv.R
| joint_test | R Documentation |
Tests whether the estimated intercept and slope jointly fall within a confidence region around specified ideal values (typically intercept=0 and slope=1 for method comparison studies).
joint_test(object, ...)
## S3 method for class 'simple_eiv'
joint_test(
object,
ideal_intercept = 0,
ideal_slope = 1,
conf.level = 0.95,
...
)
object |
A |
... |
Additional arguments (currently unused). |
ideal_intercept |
The hypothesized intercept value (default: 0). |
ideal_slope |
The hypothesized slope value (default: 1). |
conf.level |
Confidence level for the test (default: 0.95). |
The test computes the Mahalanobis distance between the estimated coefficients and the hypothesized values using the variance-covariance matrix of the estimates. Under the null hypothesis, this distance follows a chi-squared distribution with 2 degrees of freedom.
For Deming regression, the variance-covariance matrix is computed via
jackknife. For Passing-Bablok regression, bootstrap resampling must have
been performed (i.e., boot_ci = TRUE in the original call).
An object of class htest containing:
The Mahalanobis distance (chi-squared distributed with df=2).
Degrees of freedom (always 2).
The p-value for the test.
The confidence level used.
Named vector of estimated intercept and slope.
Named vector of hypothesized intercept and slope.
Description of the alternative hypothesis.
Description of the test.
Name of the input object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.