[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: IPF troubles

From   "Martin Weiss" <>
To   <>
Subject   st: AW: IPF troubles
Date   Fri, 15 May 2009 17:03:38 +0200


-trace-ing the thing shows that -ipf- does not catch the wrong type of
variable in your -varlist- at the first possible moment, i.e. in its
-syntax- statement, presumably because -syntax- was not capable of doing
that at the time the command was last edited, i.e. in 2000. 

Stata finally chokes on a -drop- statement that asks it to compare the
string variable to the numeric missing value ".", which leads to the "type
mismatch" error. Hard to diagnose without the benefit of -trace-...


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Andrew Criswell
Gesendet: Freitag, 15. Mai 2009 16:46
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

. 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

end of do-file



Andrew Criswell, Ph.D.
Graduate School
Bangkok University
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index