Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationFri, 09 Oct 2015 22:23:40 +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/09/t1444425861ra1up21zkz6nxw7.htm/, Retrieved Tue, 14 May 2024 15:07:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=282081, Retrieved Tue, 14 May 2024 15:07:57 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact88
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [] [2015-10-09 21:23:40] [3e69b53d94b342798d3f1a806941de01] [Current]
Feedback Forum

Post a new message
Dataseries X:
1844,33
1845,39
1861,84
1862,85
1869,46
1870,8
1870,8
1871,52
1875,52
1880,38
1885,05
1886,42
1886,42
1891,65
1903,11
1905,29
1904,26
1905,37
1905,37
1905,12
1908,62
1915,08
1916,36
1916,68
1916,24
1922,05
1922,63
1922,47
1920,64
1920,66
1920,66
1921,19
1921,44
1921,73
1921,81
1921,81
1921,81
1921,48
1917,07
1912,64
1901,15
1898,12
1900,02
1900,02
1900,82
1901,9
1902,19
1901,84
1903,73
1889,7
1891,27
1894,48
1894,27
1893,98
1893,98
1895,62
1901,72
1905,4
1898,14
1898,09
1855,87
1868,53
1865,71
1872,59
1875,95
1875,95
1875,95
1878,08
1878,26
1876,39
1876,77
1876,88




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Herman Ole Andreas Wold' @ wold.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 & 1 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=282081&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=282081&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=282081&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 time1 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Median versus Mean
mean1895.24152777778
median1899.08

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=282081&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
mean1895.24152777778
median1899.08



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')