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, 09 Aug 2016 16:47:04 +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/2016/Aug/09/t1470757796cj605eg9eok0ba4.htm/, Retrieved Sat, 18 May 2024 17:56:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=296146, Retrieved Sat, 18 May 2024 17:56:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [] [2016-08-09 15:47:04] [50e1ac7d003038f762f5217b1e15faa4] [Current]
Feedback Forum

Post a new message
Dataseries X:
14724.00
14404.00
14058.00
13427.00
19946.00
19631.00
14724.00
11462.00
11778.00
11778.00
12093.00
12760.00
13742.00
13427.00
11462.00
11778.00
20929.00
22893.00
17666.00
14724.00
15387.00
15707.00
17351.00
18964.00
19315.00
16022.00
16369.00
12093.00
24222.00
27800.00
19631.00
17004.00
18649.00
20613.00
23555.00
27164.00
27164.00
24853.00
23871.00
17982.00
27800.00
32391.00
28462.00
24222.00
24853.00
27164.00
30426.00
34355.00
31724.00
30111.00
30111.00
24853.00
32391.00
37297.00
33373.00
29129.00
30426.00
35653.00
37964.00
41222.00
38595.00
34355.00
33373.00
25520.00
30742.00
36315.00
30111.00
26502.00
30111.00
33689.00
35653.00
40906.00
38280.00
31724.00
32391.00
26186.00
31409.00
36000.00
30742.00
27164.00
30426.00
34355.00
33689.00
41542.00
40244.00
35017.00
35333.00
28462.00
32706.00
39262.00
34355.00
31409.00
36315.00
39262.00
36982.00
47431.00
44835.00
38946.00
37297.00
29764.00
34035.00
37964.00
33053.00
33053.00
38595.00
41542.00
39924.00
51355.00
48413.00
42871.00
40560.00
32391.00
35333.00
40560.00
36631.00
35653.00
40244.00
44168.00
39924.00
50057.00




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

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







Median versus Mean
mean29156.4583333333
median30584

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=296146&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
mean29156.4583333333
median30584



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