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, 20 Oct 2009 12:25:54 -0600
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Oct/20/t125606318050pcterg0zaxny3.htm/, Retrieved Thu, 02 May 2024 19:42:32 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=48955, Retrieved Thu, 02 May 2024 19:42:32 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDGP1W52
Estimated Impact147
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [mean vs median] [2009-10-20 18:25:54] [bd31152a03695b5eaed3983221abfe73] [Current]
Feedback Forum

Post a new message
Dataseries X:
102.5
77.7
82.8
77.3
103.1
99.7
99.5
107.2
96.7
97.1
105.2
151.2
102.7
75.4
87.2
83.7
105.8
111.5
99.7
111.2
101.5
110.9
116.3
164.9
118.1
83.7
84
107.2
113.7
120.7
111.2
112.4
112.5
130.4
130.7
174.3
132.2
91.8
104.2
104.8
131.4
141.2
132.7
135.7
136.9
151.2
144
201.5
149.6
108.7
122.8
126.7
139.9
162.5
142.7
151.6
148.1
159
157.8
226.7
153.7
122.3
117.6
166
154.5
183.9
164.4
173.3
160.2
166.4
170.3
238.4
166.8
122.5
141.8
140.5
173.8
188.8
168
187.4
177.7
183.8
196.1
264.6
193.7
141.3
170.1
163.7
190.1
230.7
195.9
210.3
204.7
210.3
221.2
288.2
203.2
162.4
149.2
195.3
213.7
227.9
212.1
226.8
212.6
220.9
228.1
311.6




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 3 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=48955&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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=48955&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=48955&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 time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk







Median versus Mean
mean151.298148148148
median146.05

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=48955&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
mean151.298148148148
median146.05



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