blandAltman | R Documentation |
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.
blandAltman(x, y, sid = NULL, type1 = 3, type2 = 5, conf.level = 0.95)
x |
( |
y |
( |
sid |
( |
type1 |
( |
type2 |
( |
conf.level |
( |
A object with BAsummary
class that contains the BlandAltman analysis.
data
a data frame contains the raw data from the input.
stat
a list contains the summary table (tab
) of Bland-Altman analysis,
vector (absolute_diff
) of absolute difference and vector (relative_diff
)
of relative difference.
h_difference()
to see the type details.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.