Last updated on 2024-06-14 05:58:53 CEST.
Package | ERROR | OK |
---|---|---|
BlandAltmanLeh | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 0.3.1
Check: package dependencies
Result: NOTE
Packages suggested but not available for checking: 'ggplot2', 'ggExtra'
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.3.1
Check: examples
Result: ERROR
Running examples in ‘BlandAltmanLeh-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: BlandAltmanLeh-package
> ### Title: (Slightly extended) Bland-Altman plots BlandAltmanLeh
> ### Aliases: BlandAltmanLeh-package BlandAltmanLeh
> ### Keywords: measurement precision, test-retest reliability
>
> ### ** Examples
>
> # simple basic Bland Altman plot
> a <- rnorm(40,30,10)
> b <- 1.01*a + rnorm(40)
> bland.altman.plot(a,b, xlab="mean", ylab="difference")
NULL
>
> # to get all the data for further analysis
> bland.altman.plot(a,b, xlab="mean", ylab="difference", silent=FALSE)
$means
[1] 23.771877 31.868935 22.100414 46.460904 33.117175 21.550545 35.230953
[8] 37.954430 35.880429 27.521401 45.542454 33.761911 24.077092 7.327585
[15] 42.172068 30.688617 29.803677 39.113487 38.688133 36.051181 40.586531
[22] 37.990850 31.244248 10.171017 36.007612 29.680302 27.681776 16.101716
[29] 25.421219 35.436619 44.042484 28.762010 34.351463 29.142211 15.683735
[36] 26.125028 25.965740 29.554453 41.242426 37.525156
$diffs
[1] -0.07283102 -0.06500265 -0.91340051 -1.01619128 0.35580492 0.48954200
[7] -0.71332487 -1.14236540 -0.24523192 -1.15056889 -0.84928400 0.27304207
[13] -0.57899563 1.05083308 -1.84551679 -2.27590654 0.06884050 0.64975101
[19] -0.95184175 -0.22433553 -2.79351550 -0.33897363 -0.99719586 -0.12906699
[25] 0.38129063 -0.48317943 1.52053818 -1.61847962 -0.40543833 -2.51440583
[31] -0.91137748 0.42022520 -0.94949351 0.63947814 1.09133936 -0.54994678
[37] 0.18272087 -0.29517401 -0.48434386 0.21320337
$groups
group1 group2
1 23.735462 23.808293
2 31.836433 31.901436
3 21.643714 22.557114
4 45.952808 46.968999
5 33.295078 32.939273
6 21.795316 21.305774
7 34.874291 35.587615
8 37.383247 38.525612
9 35.757814 36.003045
10 26.946116 28.096685
11 45.117812 45.967096
12 33.898432 33.625390
13 23.787594 24.366590
14 7.853001 6.802168
15 41.249309 43.094826
16 29.550664 31.826570
17 29.838097 29.769257
18 39.438362 38.788611
19 38.212212 39.164054
20 35.939013 36.163349
21 39.189774 41.983289
22 37.821363 38.160337
23 30.745650 31.742846
24 10.106483 10.235550
25 36.198257 35.816967
26 29.438713 29.921892
27 28.442045 26.921507
28 15.292476 16.910956
29 25.218499 25.623938
30 34.179416 36.693821
31 43.586796 44.498173
32 28.972123 28.551898
33 33.876716 34.826210
34 29.461950 28.822471
35 16.229404 15.138065
36 25.850054 26.400001
37 26.057100 25.874380
38 29.406866 29.702040
39 41.000254 41.484598
40 37.631757 37.418554
$based.on
[1] 40
$lower.limit
[1] -2.291677
$mean.diffs
[1] -0.4294695
$upper.limit
[1] 1.432738
$lines
lower.limit mean.diffs upper.limit
-2.2916770 -0.4294695 1.4327380
$CI.lines
lower.limit.ci.lower lower.limit.ci.upper mean.diff.ci.lower
-2.2916770 -2.2916770 -0.4294695
mean.diff.ci.upper upper.limit.ci.lower upper.limit.ci.upper
-0.4294695 1.4327380 1.4327380
$two
[1] 1.96
$critical.diff
[1] 1.862207
>
> # to include confidence intervals into the plot
> bland.altman.plot(a,b, xlab="mean", ylab="difference", conf.int=.95)
NULL
>
> # to plot in ggplot2
> bland.altman.plot(a,b, graph.sys="ggplot2")
Loading required namespace: ggplot2
Failed with error: ‘there is no package called ‘ggplot2’’
Error in bland.altman.ggplot2(group1, group2, two, mode, conf.int, silent, :
Could not load ggplot2. Sorry.
Calls: bland.altman.plot -> bland.altman.ggplot2
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc