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, 23 Apr 2009 04:45:17 -0600
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Apr/23/t1240483694uhv6hsttc6gl7lg.htm/, Retrieved Mon, 13 May 2024 14:03:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=39331, Retrieved Mon, 13 May 2024 14:03:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact249
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [vergelijking cent...] [2009-04-23 10:45:17] [e49ca66754ae41ce7288e597b92c4c3a] [Current]
Feedback Forum

Post a new message
Dataseries X:
66
66,3
68,4
70,6
75
83,3
83,9
87
87,1
88,5
88,6
89,5
90
90,1
90,5
90,6
90,6
90,8
90,8
91
91,3
92,1
94,1
94,7
95
95,1
96,3
96,3
96,4
96,8
96,9
97,2
97,6
99,3
99,8
100,7
101,8
102,5
103,4
103,8
104,6
105,3
106,1
107,1
109,8
110,3
111,5
113,4
114,2
115,2
117,3
118,8
125,9
131,3
133,1
137,7
145,8
146,5
147
149,8
151,7
152,9
156,8
164,4
170,4
180
180,4
188
188,5
191,6
194
199,3
199,5
202,9
203,7
205
205,6
211,1
214
215,2
215,6
217,5
218,2
218,2
219,3
230
230,3
240,2
240,7
241
242,2
247,8
252
253
255,4
259,6
270,3
289,7
315
320,2
322,7
329,5
351,6
360,6
382,2
403
435,4
464
468,8




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=39331&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=39331&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=39331&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'Gwilym Jenkins' @ 72.249.127.135







Median versus Mean
mean168.343119266055
median133.1

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=39331&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
mean168.343119266055
median133.1



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