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 Jan 2011 15:01:25 +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/2011/Jan/16/t1295189970ihhrbtx2cx2dv34.htm/, Retrieved Thu, 31 Oct 2024 23:28:29 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=117422, Retrieved Thu, 31 Oct 2024 23:28:29 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDGP1W52
Estimated Impact159
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Mean versus Median] [Opgave iko 5.2] [2010-10-20 15:14:06] [04d4ebd708b081bb203cd3af96bd9a4a]
-    D    [Mean versus Median] [Verbetering opgav...] [2011-01-16 15:01:25] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
101.02
101.15
101.51
101.75
101.8
101.8
101.8
101.82
101.99
102.25
102.34
102.35
102.35
102.39
102.49
102.67
102.68
102.7
102.71
102.72
102.83
102.92
103.04
103.08
103.09
103.11
103.18
103.18
103.22
103.25
103.25
103.25
103.47
103.57
103.66
103.7
103.7
103.75
103.85
104.02
104.13
104.17
104.18
104.2
104.5
104.78
104.88
104.89
104.9
104.95
105.24
105.35
105.44
105.46
105.47
105.48
105.75
106.1
106.19
106.23
106.24
106.25
106.35
106.48
106.52
106.55
106.55
106.56
106.89
107.09
107.24
107.28
107.3
107.31
107.47
107.35
107.31
107.32
107.32
107.34
107.53
107.72
107.75
107.79
107.81
107.9
107.8
107.86
107.8
107.74
107.75
107.83
107.8
107.81
107.86
107.83




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ www.yougetit.org

\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 & 'Herman Ole Andreas Wold' @ www.yougetit.org \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=117422&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]'Herman Ole Andreas Wold' @ www.yougetit.org[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=117422&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=117422&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'Herman Ole Andreas Wold' @ www.yougetit.org







Median versus Mean
mean104.947916666667
median104.895

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=117422&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
mean104.947916666667
median104.895



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