Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationMon, 14 Oct 2013 06:23:45 -0400
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2013/Oct/14/t1381746463rhcbw4a6qhid6fj.htm/, Retrieved Sun, 28 Apr 2024 00:54:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=215480, Retrieved Sun, 28 Apr 2024 00:54:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact99
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Central Tendency] [] [2013-10-14 08:50:17] [256d78ccaa024c70359216b2e3721f69]
- RM D    [Mean versus Median] [] [2013-10-14 10:23:45] [edfef9daf94f6afee2f7e041aec7fc2a] [Current]
Feedback Forum

Post a new message
Dataseries X:
93.61
93.17
91.60
90.30
90.88
91.06
92.05
95.29
96.44
96.49
96.52
96.09
99.16
98.09
99.41
99.87
100.06
99.65
99.92
98.44
102.64
112.33
115.63
118.29
121.43
129.96
147.73
154.10
150.09
144.14
141.54
136.68
129.32
118.99
109.61
106.22
104.97
102.45
101.91
101.77
102.67
103.45
101.41
102.45
102.17
101.40
101.68
100.61
97.93
98.30
99.79
101.62
101.55
102.43
102.09
102.01
102.26
101.24
100.91
100.67
100.33
99.99
99.23
98.17
97.38
96.70
98.65
100.68
101.07
101.12
101.13
99.88
99.20
99.91
103.62
108.05
113.96
117.39
126.04
139.67
145.04
142.37
137.72
132.46




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

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







Median versus Mean
mean107.789285714286
median101.405

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=215480&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
mean107.789285714286
median101.405



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