Skip to content
Prev 303949 / 398513 Next

Entering a table

On Aug 21, 2012, at 5:48 AM, Thomas wrote:

            
You needed a two _column_ matrix with the frequencies in the _first_  
column, rather than a two-row matrix with frequencies in the second row:

 > vcd::goodfit( t(vex)[ , 2:1])  # transpose to column oriented and  
swap columns

Observed and fitted values for poisson distribution
with parameters estimated by `ML'

  count observed      fitted
      0      109 108.6701738
      1       65  66.2888060
      2       22  20.2180858
      3        3   4.1110108
      4        1   0.6269291