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

st: RE: IPF troubles

From   "Nick Cox" <>
To   <>
Subject   st: RE: IPF troubles
Date   Fri, 15 May 2009 15:52:39 +0100

-ipf- is from SSC. Please remember to specify where user-written
programs you refer to come from. 

I think you are misreading the syntax -fit(string)-, which doesn't mean
that covariates should be string variables. 


Andrew Criswell

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


*   For searches and help try:

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