[R] when all I have is a contingency table....
Derek Ogle
DOgle at northland.edu
Thu Jul 8 00:02:23 CEST 2010
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-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 plot a histogram for this table for a sample of
> > size 60?
> >
> > Value Count
> > 1 10
> > 2 8
> > 3 12
> > 4 9
> > 5 14
> > 6 7
> >
> > Thanks,
> > A.Z.
More information about the R-help
mailing list