Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationFri, 12 Mar 2010 12:12:31 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Mar/12/t1268421221fyzgkt9exctmg30.htm/, Retrieved Tue, 05 Jul 2022 12:09:55 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=74365, Retrieved Tue, 05 Jul 2022 12:09:55 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDGP1W52
Estimated Impact154
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [Opgave 5 oefening...] [2010-03-12 19:12:31] [d38ec69e6463020b6f9ce85941b20918] [Current]
Feedback Forum

Post a new message
Dataseries X:
562674
599000
668516
597798
579889
668233
499232
215187
555813
586935
546136
571111
634712
639283
712182
621557
621000
675989
501322
220286
560727
602530
626379
605508
646783
658442
712906
687714
723916
707183
629000
237530
613296
730444
734925
651812
676155
748183
810681
729363
701108
790079
594621
230716
617189
691389
701067
705777
747636
773392
813788
766713
728875
749197
680954
241424
680234
708326
694238
772071
795337
788421
889968
797393
751000
821255
691605
290655
727147
868355
812390
799556
843038
847000
941952
804309
840307
871528
656330
370508
742000
847152
731675
898527
778139
856075
938833
813023
783417
828110
657311
310032
780000
860000
780000
807993
895217
856075
893268
875000
835088
934595
832500
300000
791443
900000
781729
880000
875024
992968
976804
968697
871675
1006852
832037
345587
849528
913871
868746
993733




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

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

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







Median versus Mean
mean713749.2
median733300

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=74365&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
mean713749.2
median733300



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