[R] ipf function in R

From: Chandra Shah <Chandra.Shah_at_Education.monash.edu.au>
Date: Wed, 05 Mar 2008 18:14:28 +1100


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.
Can somebody please advice me how to input this data and invoke ipf in R to obtain an updated contingency table?
Thanks.
By the way I am quite new to R.

-- 
 

Dr Chandra Shah
Senior Research Fellow
Monash University-ACER Centre for the Economics of Education and Training
Faculty of Education, Building 6,
Monash University
Victoria
Australia 3800
Tel. +61 3 9905 2787
Fax +61 3 9905 9184

www.education.monash.edu.au/centres/ceet

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 05 Mar 2008 - 09:32:58 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Mar 2008 - 17:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive