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, 03 Mar 2016 16:46:10 +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/2016/Mar/03/t1457035193q6zp81piunj6xxh.htm/, Retrieved Sat, 18 May 2024 15:18:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=293311, Retrieved Sat, 18 May 2024 15:18:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact140
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [] [2016-03-03 16:46:10] [70e23d918d09c907c02097a361cd6415] [Current]
Feedback Forum

Post a new message
Dataseries X:


81.83
82.58
82.6
82.71
82.98
83.11
83.22
83.32
83.39
83.45
83.52
83.59
83.97
84.48
84.8
84.93
85.14
85.22
85.54
85.5
85.61
85.75
85.89
85.94
86.08
86.3
86.97
87.3
87.62
87.59
87.78
87.87
88.17
88.67
88.84
88.9
88.98
89.27
89.69
89.72
89.79
89.82
89.98
90.09
90.31
90.3
90.48
90.52
90.53
91.38
91.87
91.9
92.08
92.14
92.09
92.32
92.67
92.78
92.96
93.12
93.32
94.12
94.34
94.52
94.81
94.95
94.99
95.03
95.16
95.41
95.46
95.62
95.66
95.96
96.18
96.24
97.03
97.11
97.28
97.74
97.83
98.14
98.18
98.21
98.43
98.67
99.51
99.64
99.83
99.84
99.94
100.17
100.56
101.05
101.17
101.21
101.01
101.92
102.33
102.41
102.5
102.69
102.98
103.11
103.36
103.8
104.07
104.15
104.19
104.64
104.98
105.25
105.43
105.59
105.84
105.87
106
106.14
106.24
106.31




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' @ yule.wessa.net
R Framework error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.

\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' @ yule.wessa.net \tabularnewline
R Framework error message & 
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=293311&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' @ yule.wessa.net[/C][/ROW]
[ROW][C]R Framework error message[/C][C]
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=293311&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=293311&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' @ yule.wessa.net
R Framework error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.







Median versus Mean
mean93.8339166666667
median93.22

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=293311&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
mean93.8339166666667
median93.22



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