Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationWed, 07 Mar 2012 16:44:04 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Mar/07/t13311567972wpkn1ntjqygk5a.htm/, Retrieved Mon, 29 Apr 2024 04:27:29 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=163721, Retrieved Mon, 29 Apr 2024 04:27:29 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDG2011W52a
Estimated Impact153
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [Aantal vergunning...] [2012-03-07 21:44:04] [df2e1cb801e9c7e9e5c4a0dfd693d83a] [Current]
Feedback Forum

Post a new message
Dataseries X:
1.974
2.037
2.259
2.550
2.549
2.738
2.228
2.533
2.475
2.260
2.158
2.253
2.670
2.449
2.620
2.205
2.589
2.706
2.352
2.478
2.316
2.295
2.110
1.944
2.202
2.036
2.434
2.297
2.354
2.650
2.555
2.477
2.268
2.510
2.015
1.994
2.271
2.289
2.333
2.795
2.332
2.799
2.294
2.415
2.473
2.236
1.970
2.318
2.108
2.064
2.519
2.298
2.187
2.746
2.364
2.512
2.224
2.209
2.186
2.303
2.381
2.432
2.913
2.392
2.532
2.709
2.387
2.609
2.399
2.184
1.839
2.056
2.151
2.155
2.463
2.155
2.679
2.367
2.052
2.547
2.466




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=163721&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 time11 seconds
R Server'AstonUniversity' @ aston.wessa.net







Median versus Mean
mean2.35374074074074
median2.333

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=163721&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
mean2.35374074074074
median2.333



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