Displaying 20 results from an estimated 400 matches similar to: "Fwd: Summary vs fivenum results for Q3"
2007 Oct 09
3
Summary vs fivenum results for Q3
I've just started using R and am still a neophyte, but I found the following curious result. I'm using the current version of R (2.5.1 (2007-06-27) ).
Why are the results for the third quartile different in the output from the summary and fivenum commands? For the following data set
457 514 530 530 538 560 687 745 745 778 786 790 792
2003 Oct 15
1
fivenum (PR#4586)
Full_Name: Richard Huggins
Version: 1.7.1
OS: windows 2000
Submission from: (NULL) (131.172.4.44)
> x<-rnorm(100,2,1)
> mean(x)
[1] 1.73299
> summary(fivenum(x))
Min. 1st Qu. Median Mean 3rd Qu. Max.
-0.3655 1.1070 1.7430 1.7320 2.3840 3.7910
> summary(x)
Min. 1st Qu. Median Mean 3rd Qu. Max.
-0.3655 1.1070 1.7430 1.7330 2.3830 3.7910
>
2008 Oct 14
1
fivenum accuracy (PR#13164)
Full_Name: David Leong
Version: 2.7.2
OS: Windows XP
Submission from: (NULL) (12.187.86.2)
It appears for the fivenum function, there is a strait average between two
ranked samples. This should be a linear interpolation between ranks.
For the following data set
#data
2006 Apr 15
2
manual construction of box&whisker plot
Dear useRs,
how can I construct a box&whisker plot based on the vector "fivenum"?
The challenge I face is as follow: I have a table such as
x | fivenum
---------------
... | (.....)
... | (.....)
and so forth....
For each observation x I have generated a vector containing the fivenum
estimates.
The first challenge is to group my fivenum vectors into groups based on
a
2003 May 30
0
R summary (and quantiles)
When all else fails, read the help page...
?fivenum says to look at ?boxplot.stats, and the "Details" section of
?boxplot.stats has, well, details. Tukey had reasons to call those hinges
rather than quartiles.
Andy
> -----Original Message-----
> From: Knut M. Wittkowski [mailto:kmw at rockefeller.edu]
> Sent: Thursday, May 29, 2003 5:58 PM
> To: Matthias Kirschner
>
2003 May 29
2
R summary
Dear all
i use R only a few days and don't understand the difference between
fivenum(x) und summary(x).
> x
[1] 20.77 22.56 22.71 22.99 26.39 27.08 27.32 27.33 27.57 27.81 28.69 29.36
[13] 30.25 31.89 32.88 33.23 33.28 33.40 33.52 33.83 33.95 34.82
> fivenum(x)
[1] 20.770 27.080 29.025 33.280 34.820
> summary(x)
Min. 1st Qu. Median Mean 3rd Qu. Max.
20.77 27.14
2001 Dec 28
1
Simple:: usage of stem() and hist()?
I must apologize in advance for asking a simple question. I am sure that a clue will be sufficient to get this show on the road. I am trying to graph tide prediction data in various ways. I haven't been able to answer this question after pouring over TFM.
I read the datafile
theight <- read.table("tides",header=TRUE)
I do get a summary() or fivenum()
2008 Mar 07
0
How to do a time-stratified case-crossover analysis for air pollution data?
Dear Experts,
I am trying to do a time-stratified case-crossover analysis on air
pollution data and number of myocardial infarctions. In order to avoid
model selection bias, I started with a simple simulation.
I'm still not sure if my simulation is right. But the results I get from
the "ts-case-crossover" are much more variable than those from a glm.
Is this:
a. Due to
2012 Oct 22
0
Lattice to ggplot2: Reference graphics across facets
Hi,
I'm playing with moving some of my lattice graphics into ggplot2, and I'd
like to ask how to achieve a couple of things, both of which are fully
illustrated in self-contained code (and mostly minimal, although that left
quite a bit) following this written description.
1. I quite often like to use a 'ghosted' reference across facets - for
example, in my example program below,
2008 Mar 07
0
How to do a time-stratified case-crossover analysis for air pollution data? Unformatted text-version, with an additional note
Dear Experts,
I am trying to do a time-stratified case-crossover analysis on air pollution data and number of myocardial infarctions. In order to avoid model selection bias, I started with a simple simulation.
I'm still not sure if my simulation is right. But the results I get from the "ts-case-crossover" are much more variable than those from a glm.
Is this:
a. Due to the simple
2012 Feb 04
2
How to Compare the median to the mean?
Okay, so I have a homework projecr for R, and we had to input the following
link as some sort of data:
nb10 <- read.table("http://www.adjoint-functors.net/su/web/314/R/NB10").
Afterwards, we have to use
fivenum(nb10) to find max, min, quantiles, and sd, but I'm okay with this.
The next question is where I'm stuck. The question is as follows;
Compare the median (use the
2007 Dec 30
1
Histogram with different colors for different portions
Dear Rusers,
I would like to color different sections of a histogram different colors.
I have an example that was done by "brute force" given below. Has anyone
implemented something like this in general? If not, any suggestions/pointers
on how to write a general function to do so would be most appreciated.
Alan-
2005 Nov 22
3
make check fails for R 2.3.0 (PR#8343)
Full_Name: Arne Henningsen
Version: 2.3.0, 2005-11-21, i686-pc-linux-gnu
OS: SuSE Linux 9.0, Kernel 2.4.21
Submission from: (NULL) (134.245.140.242)
I did not find any problems in "./configure" and "make", but "make check"
fails:
make[4]: Entering directory `/home/suapm095/Download/R-devel/tests/Examples'
collecting examples for package 'base' ...
2012 May 16
3
Wrong Q3 + Mean.
Hi.
> a
[1] 13 13 14 14 15 15 16 20 21 26
> summary(a)
Min. 1st Qu. Median Mean 3rd Qu. Max.
13.0 14.0 15.0 16.7 19.0 26.0
> mean(a)
[1] 16.7
> quantile(a)
0% 25% 50% 75% 100%
13 14 15 19 26
Clearly, this is not right. My Instructor and I have no idea why the program
does that. I removed the program from the computer , installed it
2010 Sep 06
5
boxplot knowing Q1, Q3, median, upper and lower whisker value
Dear list,
I am using a external program that outputs Q1, Q3, median, upper and lower whisker values for various datasets simultaneously in a tab delimited format. After importing this text file into R, I would like to plot a boxplot using these given values and not the original series of data points, i.e. not using something like boxplot(mydata).
Is there an easy way for doing this? If I am not
2009 Sep 03
1
Output from as.windrose() in oce package baffles me
I'm having trouble understanding the output from as.windrose(). For one
thing, data on a boundary between sectors seem to be left out of the
counts. I assume that explains the missing point in the output below
(angle 45). Shouldn't one side of each sector interval be open, to
include values such as my 45 in the example? Also, why does the angle
180 in my input apparently not result in
2004 Jul 20
0
Suggestion for quantile.default()
I'm not sure who is responsible for quantile(), but I assume they read
this list. Ivan Frohne and I have produced a revision of the
quantile.default() function which enables the computation of alternative
sample quantile definitions. The code and .Rd file are attached.
This enables the user to produce quantiles that are equivalent to those
in various statistics package. There is a type
2008 Aug 12
1
tilde on a spanish keyboard?
I was trying to help someone who used a spanish keyboard on a PC
running Windows. he discovered that he had no tilde key. Does anyone
know of any simple work-arounds?
Thanks,
Hank
Dr. Hank Stevens, Associate Professor
338 Pearson Hall
Botany Department
Miami University
Oxford, OH 45056
Office: (513) 529-4206
Lab: (513) 529-4262
FAX: (513) 529-4243
http://www.cas.muohio.edu/~stevenmh/
2003 Dec 02
2
contributed packages not found
Windows 2000, R 1.6.1
When I try use the menu to download and install new packages, the
result looks like this:
{a <- CRAN.packages()
+ install.packages(select.list(a[,1],,TRUE), .libPaths()[1],
available=a)}
trying URL `[1]http://cran.r-project.org/bin/windows/contrib/PACKAGES'
Error in download.file(url = paste(contriburl, "PACKAGES", sep = "/"),
2011 Jul 10
3
change legend character size in image.plot
I'm using the image.plot() function (fields package), but I want to enlarge
the characters of the legend (as they are too small to be read in a combined
figure), but there is no way I can find a command to do this. I can enlarge
the legend bar (with legend.witdh), axis character size (cex.axis) or the
total legend size (legend.shrink), but not the character size of the legend
characters