mean.freqtab {equate} | R Documentation |
This function returns the mean of a frequency table of class “freqtab
”
mean.freqtab(x, ...)
x |
two-column matrix of class freqtab , where column 1 specifies the score scale and column 2 the frequencies for each score point. If x is a bivariate frequency table, only the first variable will be considered
|
... |
further arguments passed to or from other methods |
Anthony Albano tony.d.albano@gmail.com
set.seed(2005) x <- round(rnorm(1000,100,10)) xscale <- 70:130 xtab <- freqtab(x,xscale) mean.freqtab(xtab); mean(x) yscale <- 0:36 vscale <- 0:12 ny <- freqtab(KBneat$y[,1],yscale,KBneat$y[,2],vscale) mean.freqtab(ny); mean(KBneat$y[,1])