Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationSun, 04 Jan 2009 07:21:51 -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/2009/Jan/04/t1231078952vadbqhgkf6nyv4d.htm/, Retrieved Tue, 07 May 2024 10:35:19 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=36751, Retrieved Tue, 07 May 2024 10:35:19 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact192
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [2MAR03A_Robbe Ley...] [2009-01-04 14:21:51] [5cfda051308d8cc79b9da3748118f98f] [Current]
Feedback Forum

Post a new message
Dataseries X:
284,4
212,8
226,9
308,4
262
227,9
236,1
320,4
271,9
232,8
237
313,4
261,4
226,8
249,9
314,3
286,1
226,5
260,4
311,4
294,7
232,6
257,2
339,2
279,1
249,8
269,8
345,7
293,8
254,7
277,5
363,4
313,4
272,8
300,1
369,5
330,8
287,8
305,9
386,1
335,2
288
308,3
402,3
352,8
316,1
324,9
404,8
393
318,9
327
442,3
383,1
331,6
361,4
445,9
386,6
357,2
373,6
466,2
409,6
369,8
378,6
487
419,2
376,7
392,8
506,1
458,4
387,4
426,9
565
464,8
444,5
449,5
556,1
499,6
451,9
434,9
553,8
510
432,9
453,2
547,6
485,8
452,6
456,6
565,7
514,8
464,3
430,9
588,3
503,1
442,6
448
554,5
504,5
427,3
473,1
526,2
547,5
440,2
468,7
574,5
492,6
432,6
479,8
575,7
474,6
405,3
434,6
535,1
452,6
429,5
417,2
551,8
464
416,6
422,9
553,6
458,6
427,6
429,2
534,2
481,7
416
440,2
538,7
473,8
439,9
446,8
597,5
467,2
439,4
447,4
568,5
485,9
442,1
430,5
600
464,5
423,6
437
574
443
410
420
532
432
420
411
512
449
382




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=36751&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=36751&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36751&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
mean408.267532467532
median427.45

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36751&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
mean408.267532467532
median427.45



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