Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: how can I generate margins for OLS with no constants and for fixed effects panel logit
From 
 
"Ozturk, Orgul" <[email protected]> 
To 
 
"'[email protected]'" <[email protected]> 
Subject 
 
st: how can I generate margins for OLS with no constants and for fixed effects panel logit 
Date 
 
Fri, 31 Jan 2014 09:42:46 -0500 
Hi all,
I have sent this email before but did not get an answer--I think my email failed to post (I was trying to attach my do file and data)
 
I am trying to produce average marginal effects after an OLS regression with no  constant term.
It returns "non-estimable"
Moreover, how can one produce AMEs using margins command after a fixed effects logistic regression (after xtlogit, fe) --again I get an unestimable 
My commands are as follows:
reg logrealwagechange i.promCurrentJob##i.woman#i.govt##i.schoolinggroup $extras $changeindustryvars $changeoccupations  if careerstage==1, noc
margins, at(woman=1 ) at(woman=0 ) over (govt schoolinggroup promCurrentJob) post
margins, coeflegend
xtlogit promCurrentJob i.woman##i.careerstage##i.govt##i.schoolinggroup $usualsuspects, fe
margins, at(woman=0 ) at(woman=1 ) predict(pu0) over (careerstage schoolinggroup govt) post
Woman and government are 0/1 dummies.  Schooling group and careerstage are categorical variables with three discrete values, (0 1 2 ) and (1 2 3) respectively.  Thank you!
Orgul
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/