Description Usage Arguments Value Author(s) References See Also Examples
If a method comparison model is defined as y_{mi} = α_m + β_m μ_i, m=1,2 y_mi = alpha_m + beta_m*mu_i, m=1,2 the coefficients of the linear conversion from method 1 to 2 are computed as: α_{2|1} = -α_2-α_1β_2/β_1 alpha_(2|1) = -alpha_2-alpha_1*beta_2/beta_1 beta_(2|1) = beta_2/beta_1 Morover the the point where the linear conversion function intersects the identity line is computed too.. The function is designed to work on numerical vectors of posterior samples from BUGS output.
1 2 3 4 5 6 7 |
a1 |
Numerical vector of intercepts for first method. Alternatively a dataframe where the vectors are selected from. |
b1 |
Numerical vector of slopes for first method. If |
a2 |
Numerical vector of intercepts for second method. |
b2 |
Numerical vector of slopes for second method. |
col.names |
Names for the resulting three vectors. |
A dataframe with three columns: intercept and slope for the conversion from method 1 to method 2, and the value where the conversion is the identity.
Bendix Carstensen, Steno Diabetes Center, http://BendixCarstensen.com
B Carstensen: Comparing and predicting between several methods of measurement, Biostatistics, 5, pp 399-413, 2004
1 | abconv( 0.3, 0.9, 0.8, 0.8 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.