Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationThu, 08 Oct 2015 16:29:56 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2015/Oct/08/t1444318223uvtznmpimfuuuza.htm/, Retrieved Wed, 15 May 2024 15:03:29 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=281499, Retrieved Wed, 15 May 2024 15:03:29 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact87
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Harrell-Davis Quantiles] [] [2015-10-08 15:05:24] [b1987693a2b63654c6d4ca246f63ea73]
- RM D  [Central Tendency] [] [2015-10-08 15:17:05] [b1987693a2b63654c6d4ca246f63ea73]
- RM D      [Mean versus Median] [] [2015-10-08 15:29:56] [07f175c9375843c217f66b4a3796ae0c] [Current]
Feedback Forum

Post a new message
Dataseries X:
85.95
86.41
86.42
86.81
86.71
86.7
87.07
86.96
87.04
87.5
88.32
88.56
88.92
89.56
90.21
90.42
91.23
91.73
92.21
91.65
91.8
91.63
91.09
90.89
90.98
91.29
90.77
90.96
90.89
90.72
90.66
90.94
90.7
90.74
90.98
91.13
91.54
91.93
92.27
92.59
92.96
92.95
92.99
93.05
93.34
93.47
93.59
93.96
94.49
95.04
95.52
95.75
96.07
96.37
96.48
96.4
96.66
96.81
97.19
97.23
97.94
98.52
98.73
98.8
98.77
98.54
98.72
99.15
99.32
99.5
99.39
99.4
99.37
99.69
99.83
99.79
99.94
100.11
100.21
100.15
100.21
100.13
100.2
100.36
100.5
100.66
100.72
100.41
100.3
100.38
100.55
100.17
100.09
100.22
100.09
99.98




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ jenkins.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=281499&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ jenkins.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=281499&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=281499&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net







Median versus Mean
mean94.64625
median94.225

\begin{tabular}{lllllllll}
\hline
Median versus Mean \tabularnewline
mean & 94.64625 \tabularnewline
median & 94.225 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=281499&T=1

[TABLE]
[ROW][C]Median versus Mean[/C][/ROW]
[ROW][C]mean[/C][C]94.64625[/C][/ROW]
[ROW][C]median[/C][C]94.225[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=281499&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=281499&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Median versus Mean
mean94.64625
median94.225



Parameters (Session):
Parameters (R input):
R code (references can be found in the software module):
library(Hmisc)
m <- mean(x)
e <- median(x)
bitmap(file='test1.png')
op <- par(mfrow=c(2,1))
mydensity1 <- density(x,kernel='gaussian',na.rm=TRUE)
plot(mydensity1,main='Density Plot - Gaussian Kernel',xlab='Median (0 -> full line) | Mean (0 -> dashed line)',ylab='density')
abline(v=e,lty=1)
abline(v=m,lty=5)
grid()
myseq <- seq(0.01, 0.99, 0.01)
hd <- hdquantile(x, probs = myseq, se = TRUE, na.rm = FALSE, names = TRUE, weights=FALSE)
plot(myseq,hd,col=2,main='Harrell-Davis Quantiles',xlab='quantiles',ylab='Median (0 -> full) | Mean (0 -> dashed)')
abline(h=m,lty=5)
abline(h=e,lty=1)
grid()
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Median versus Mean',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'mean',header=TRUE)
a<-table.element(a,mean(x))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'median',header=TRUE)
a<-table.element(a,median(x))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')