Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationTue, 19 Oct 2010 10:42:18 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Oct/19/t128748489164rud6v4pdsv1mg.htm/, Retrieved Mon, 29 Apr 2024 06:16:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=86176, Retrieved Mon, 29 Apr 2024 06:16:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDGP1W52
Estimated Impact87
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [Gemiddelde vs. Me...] [2010-10-19 10:42:18] [bf26e49ed6e1a435b77b49c7144b8136] [Current]
Feedback Forum

Post a new message
Dataseries X:
96,1
96,5
96,9
97,8
98,9
100,2
101,2
101
101,6
102,4
103,7
103,7
104,6
104,5
104,5
105,6
106,1
107,6
107,7
108,3
108,1
108,1
108
108,2
108,9
109,8
109,9
109,8
110,9
111,1
112,2
112,7
114,6
114,2
114,7
114,7
116
116,3
116,4
116,6
118,1
117,2
108,3
109,5
110,5
110,6
111,2
111,1
111
112,4
112,5
112,4
111,8
111,6
112,9
112,8
113,7
113,8
114
113,8
113,9
114,4
114,4
114,5
113,8
114,3
115
115,4
115,3
114,9
114,3
114,5
115,5
115,8
115,8
116
114,9
114,1
114,1
113,5
115
114,7
115,4
116,1
116,6
117,2
118,2
118
117,7
118,5
117,5
118
117,7
116,3
115
115,7
113,6
114,8
114,9
117,3
117,3
117,7
120
119,6
119,2
117,3
117,5
119
112,5
118,9
118,4
119,4
120,6
118,6
122
122,6
120,6
117,4
116,4
122,2
121
122,4
124,9
126,1
124,5
123,2
126,4
123,9
116
126,6
125,9
126,6
116,7
126,4
129
128,7
128,4
129,2
133,3
128,9
132,7
127,7
131,8
133,9




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=86176&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]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=86176&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=86176&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'RServer@AstonUniversity' @ vre.aston.ac.uk







Median versus Mean
mean115.092361111111
median114.95

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=86176&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
mean115.092361111111
median114.95



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