Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: error message with margins command

From   "Rao, James" <>
To   <>
Subject   st: error message with margins command
Date   Tue, 17 Jan 2012 12:12:56 +0100

Dear Statalisters,

I am using the margins command after truncated regression (truncreg) command
and I seem to be getting an error message that is not clear enough to me.
Here are the details:

truncreg fem_hlab veges_sh i.SM_part area_own HH_adulteq i.hh1_gender hh1_age
hh1_edu i.selfemp i.farmemp ///
i.wagemp i.CREDIT lnwage av_fert_pr pp_pr pman_pr i.R_LIM i.R_GITH i.R_KIWD
cycle_length plot_size i.veg_type veges_irr dev [pweight=pw], ll(0)

margins, predict(e(0,.)) dydx(*)

Whenever I run this command I get the error message which reads as follows:

"inconsistent estimation sample levels 0 and 1 of factor SM_part"

Anyone with an idea of what the problem could be?

Rao E.O. James (Msc)
Research Associate/PhD Student

Department of Agricultural Economics and Rural Development
Georg-August University of Göttingen
Platz der Gottinger Sieben 5
37073 Göttingen, Germany.
Tell:+49-551-394443 (Office)

Courage is not the absence of fear but the triumph over it ... so fear not to
fear ... but strive to overcome fear!

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index