Re: [R] calculate adjacent log odds for a table

2015-07-22 Thread Michael Friendly
On 7/21/2015 11:14 AM, Michael Friendly wrote: More generally, for an I x J x K table, where the last factor is the response, my desired result is a data frame of IJ(K-1) rows, with adjacent log odds in a 'logodds' column, and ideally, I'd like to have a general function to do this. Note that

[R] calculate adjacent log odds for a table

2015-07-21 Thread Michael Friendly
This is a question about array and data frame manipulation and calculation, in the context of models for log odds in contingency tables. I have a data frame representing a 3-way frequency table, of size 5 (litter) x 2 (treatment) x 3 (deaths). Freq is the frequency in each cell, and deaths is