Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationSun, 16 Aug 2009 08:02:58 -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/Aug/16/t1250431418mlwp0iibfk58iht.htm/, Retrieved Sun, 05 May 2024 14:44:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=42639, Retrieved Sun, 05 May 2024 14:44:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact174
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Central Tendency] [Maarten Verhaegen...] [2008-08-17 13:34:14] [b57209f6d0b19d479b8c06a8ae81c48a]
- RMPD    [Mean versus Median] [] [2009-08-16 14:02:58] [e921d89db97faa9283224ee60d8fb091] [Current]
Feedback Forum

Post a new message
Dataseries X:
72,84
73,96
73,26
73,86
73,04
212,8
157,92
111,55
99,01
89,5
100,95
116,06
131,5
137,43
138,53
137,26
136,81
182,98
149,45
109,34
93,37
84,09
83,83
82,94
82,88
81,41
79,87
79,66
76,07
182,69
165,78
142,5
120,6
105,73
98,72
98,41
96,08
97,3
97,5
97,02
98,75
232,81
240,83
193,4
148,28
138,34
135,34
134,02
133,86
131,67
132,43
130,21
129,98
206,16
195,17
159,16
136,33
125,18
121,21
119,38
119,26
119,75
118,78
116,97
121,69
223,51
228,58
205,22
189,4
180,14
177,59
176,39
171,16
173,11
171,74
175,97
179,64
254,62
240,5
212,01
176,36
153,24
146,69
141,52
142,6
143,19
142,32
142,03
144,92
177,31
194,4
189,19
180,44
175,84
178,54
176,55




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=42639&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'George Udny Yule' @ 72.249.76.132







Median versus Mean
mean141.960208333333
median137.345

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=42639&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
mean141.960208333333
median137.345



Parameters (Session):
par2 = grey ; par3 = FALSE ; par4 = Unknown ;
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')