# Simulated method comparison data
set.seed(42)
method_a <- rnorm(50, mean = 100, sd = 15)
method_b <- method_a + rnorm(50, mean = 2, sd = 5) # Method B has +2 bias
# Basic analysis
ba <- ba_analysis(method_a, method_b)
ba
# Using formula interface with data frame
df <- data.frame(reference = method_a, test = method_b)
ba <- ba_analysis(reference ~ test, data = df)
# Percentage differences
ba_pct <- ba_analysis(method_a, method_b, type = "percent")
Run the code above in your browser using DataLab