Re: [R] when all I have is a contingency table....

2010-07-07 Thread Derek Ogle
A.Z., You could recreate the data (I assumed that the values are discrete integers and not a bin for a continuous variable) ... value <- 1:6 count <- c(10,8,12,9,14,7) d <- rep(value,count) table(d) ... and then do what you want with the data in the d vector ... summary(d) hist(d) > On 07-J

Re: [R] when all I have is a contingency table....

2010-07-07 Thread Joris Meys
See Teds answer for histogram (I'd go with barplot). For most statistical procedures there is a weighted version (e.g. weighted.mean() for the mean). Your counts are valid weights for most procedures. Cheers Joris On Wed, Jul 7, 2010 at 10:39 PM, Andrei Zorine wrote: > Hello, > I just need a hi

Re: [R] when all I have is a contingency table....

2010-07-07 Thread Ted Harding
On 07-Jul-10 20:39:32, Andrei Zorine wrote: > Hello, > I just need a hint here: > Suppose I have no raw data, but only a frequency table I have, and I > want to run basic statistical procedures with it, like histogram, > descriptive statistics, etc. How do I do this with R? > For example, how do I

[R] when all I have is a contingency table....

2010-07-07 Thread Andrei Zorine
Hello, I just need a hint here: Suppose I have no raw data, but only a frequency table I have, and I want to run basic statistical procedures with it, like histogram, descriptive statistics, etc. How do I do this with R? For example, how do I plot a histogram for this table for a sample of size 60?