Re: [R] ipf function in R

2008-03-06 Thread GREGOR Brian J
Chandra, While I can't advise on how to use the ipf function in the cat package, I can offer the following function that we use here to balance rebalance arrays with new marginal totals. #ipf.R #Function to iteratively proportionally fit a multidimensional array #IPF also known as Fratar method,

Re: [R] ipf function in R

2008-03-05 Thread Charles C. Berry
On Wed, 5 Mar 2008, Chandra Shah wrote: > Hi > I have a 3 x 2 contingency table: > 10 20 > 30 40 > 50 60 > I want to update the frequencies to new marginal totals: > 100 130 > 40 80 110 > I want to use the ipf (iterative proportional fitting) function which > is apparently in the cat package. > C

Re: [R] ipf function in R

2008-03-05 Thread Ted Harding
On 05-Mar-08 07:14:28, Chandra Shah wrote: > Hi > I have a 3 x 2 contingency table: > 10 20 > 30 40 > 50 60 > I want to update the frequencies to new marginal totals: > 100 130 > 40 80 110 > I want to use the ipf (iterative proportional fitting) function > which is apparently in the cat package. >