Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationTue, 15 Jul 2014 11:32:27 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2014/Jul/15/t140542042383xa5jaoyn84k1x.htm/, Retrieved Wed, 15 May 2024 06:25:28 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=235321, Retrieved Wed, 15 May 2024 06:25:28 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsToon oeyen
Estimated Impact155
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [tijdreeks B stap 12] [2014-07-15 10:32:27] [529eccf7e66da1786c0a491e4074a2d7] [Current]
Feedback Forum

Post a new message
Dataseries X:
10700
12400
12000
12800
11800
11900
11900
12300
11700
11900
11900
14000
11300
12600
12600
12600
11300
12200
11800
12800
11400
11600
11700
14100
11000
12800
13300
12600
10700
12600
12700
14100
11600
11300
11600
13000
10800
13800
12600
12500
9900
11800
12400
15000
11500
11100
10800
12700
10500
14900
12800
12300
9600
11000
12700
15300
12900
11200
11000
13100
10200
15100
12600
11600
9700
10200
12100
15300
13500
10700
11400
12500
9300
15100
12300
11800
9600
9600
12400
16400
13500
11000
11200
12900
8900
15600
12500
11700
9000
8600
13100
16100
14400
11300
12200
14000
9300
14900
12500
11600
9100
8800
13000
15500
14600
11200
12700
14100




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

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







Median versus Mean
mean12180.5555555556
median12200

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=235321&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
mean12180.5555555556
median12200



Parameters (Session):
par1 = 0 ; par2 = no ; par3 = 512 ;
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')