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, 06 Apr 2011 12:51:05 +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/Apr/06/t1302094078lfp9hgnupzxc2up.htm/, Retrieved Thu, 09 May 2024 14:18:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=120356, Retrieved Thu, 09 May 2024 14:18:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords KDGP1W52
Estimated Impact180
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [IKO opgave 5 opdr...] [2011-04-06 12:51:05] [93d78dde8d64c5a73537ad1fcc88d508] [Current]
Feedback Forum

Post a new message
Dataseries X:
5939520.00
89948768.00
80953652.00
85942882.00
8944937.00
82975432.00
24940816.00
21973899.00
37950221.00
45949881.00
85950373.00
48960313.00
81954506.00
24960419.00
65973338.00
22950513.00
54963528.00
90995659.00
91967517.00
28999053.00
96990529.00
38979852.00
81496957.00
74982424.00
70976192.00
90990000.00
12998850.00
92986156.00
67994976.00
91022206.00
87992489.00
421022698.00
11018942.00
79100042.00
65996442.00
51000620.00
12996871.00
44994249.00
99996135.00
91977037.00
63974211.00
15998036.00
65974265.00
33984410.00
45939098.00
67935827.00
66921032.00
89911836.00
71890975.00
72880342.00
28871286.00
41844334.00
82847667.00
24871401.00
3867451.00
99896846.00
41890361.00
45884264.00
69884586.00
95896400.00
39904491.00
81900399.00
27909863.00
88900470.00
89917101.00
2945005.00
4934411.00
61957264.00
31946515.00
3938309.00
52933321.00
21947613.00




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

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







Median versus Mean
mean61236226.1666667
median64973774.5

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=120356&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
mean61236226.1666667
median64973774.5



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