<>
Just make 'em numeric:
*************
clear*
input gender:mylabel party:mylabel2 wgt , auto
male democrat 55
male repub 65
female democrat 50
female repub 30
end
ipf [fweight = wgt],/*
*/ fit(gender + party)
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Andrew Criswell
Gesendet: Freitag, 15. Mai 2009 16:46
An: [email protected]
Betreff: st: IPF troubles
Hello All,
This seems like a straight forward example. But I don't understand why
it fails. I am using version 10.1
input str6 gender str8 party wgt
gender party wgt
male democrat 55
male repub 65
female democrat 50
female repub 30
end
. ipf [fweight = wgt], fit(gender + party)
Deleting all matrices......
Expansion of the various marginal models
----------------------------------------
marginal model 1 varlist : gender
marginal model 2 varlist : party
type mismatch
r(109);
end of do-file
r(109);
.
--
Andrew Criswell, Ph.D.
Graduate School
Bangkok University
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/