| blandAltman {mcradds} | R Documentation |
Calculate Statistics for Bland-Altman
Description
Calculate the Bland-Altman related statistics with specific difference type, such as difference, limited of agreement and confidence interval. And the outlier detecting function and graphic function will get the difference result from this.
Usage
blandAltman(x, y, sid = NULL, type1 = 3, type2 = 5, conf.level = 0.95)
Arguments
x |
( |
y |
( |
sid |
( |
type1 |
( |
type2 |
( |
conf.level |
( |
Value
A object with BAsummary class that contains the BlandAltman analysis.
-
dataa data frame contains the raw data from the input. -
stata list contains the summary table (tab) of Bland-Altman analysis, vector (absolute_diff) of absolute difference and vector (relative_diff) of relative difference.
See Also
h_difference() to see the type details.
Examples
data("platelet")
blandAltman(x = platelet$Comparative, y = platelet$Candidate)
# with sample id as input sid
blandAltman(x = platelet$Comparative, y = platelet$Candidate, sid = platelet$Sample)
# Specifiy the type for difference
blandAltman(x = platelet$Comparative, y = platelet$Candidate, type1 = 1, type2 = 4)