[R] Iterative Proportional Fitting, use

2009-03-23 Thread Koen Hufkens
Hi list, I would like to normalize a matrix (two actually for comparison) using iterative proportional fitting. Using ipf() would be the easiest way to do this, however I can't get my head around the use of the function. More specifically, the margins settings... for a matrix: mat <- matrix(c(6

Re: [R] Iterative Proportional Fitting, use

2009-03-23 Thread Gerard M. Keogh
Keon, why not fit a loglinear independence model which as far as I know is the same. Gerard Here's an example from Agresti - Intro to Cat Data analysis Example: Alcohol, cigarette, marijuana use |--+--+| | Alcohol |

Re: [R] Iterative Proportional Fitting, use

2009-03-23 Thread Koen Hufkens
stion but I hope I can get around this without recoding the original data. Kind regards, Koen -Original Message- From: Gerard M. Keogh To: Koen Hufkens Cc: r-help , r-help-boun...@r-project.org Subject: Re: [R] Iterative Proportional Fitting, use Date: Mon, 23 Mar 2009 13:11:15 +

Re: [R] Iterative Proportional Fitting, use

2009-03-23 Thread Ravi Varadhan
aradhan.html -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Koen Hufkens Sent: Monday, March 23, 2009 9:33 AM To: Gerard M. Keogh Cc: r-help; r-help-boun...@r-project.org Subject: Re: [R] Iterative Proportional Fitting, use The dat