Hello,
I am very new to Stata - I have tried reading around to solve my error but I am struggling! I am using StataIC 16.
I am trying to run a regression for log hourly wages on various variables, many of which are factor variables. I have downloaded data from the labour force survey.
Regression:
reg LGHOURPAY AGE b(5).DEGCLS7 b(1).EMPLEN b(1).ETHUKEUL b(0).FDPCH16 b(9).FORTYP15 b(2).FTPTWK b(8).GORWKR b(15).IN0792SM b(1).MARSTA b(1).MPNR02 b(2).PUBLICR b(9).SC10MMJ b(1).SEX b(6).SNGDEGB
This is my regression and I believe the b(). allows me to choose what base/ reference level for the factor variables. However, I am getting the "Factor Variables may not contain negative values" error code. I have looked and the "don't know" levels for each variable have group number of -9.
How would I overcome this problem?
Thanks!
Related Posts with Stata error code: Factor Variables may not contain negative values
Collapse quarterly dataHello, I have this panel with a monthly date that I converted to a quarterly date. I want to keep a…
Can I keep a model, where R-square is very low, (0.1361) but the independent variables seem to be very significant?I used 3 indep var. …
Runby for each firm_id and yearHi, I am trying to run a regression for each firm_id (gvkey) and year and store the estimated coeff…
List Unique Data of One or More VariablesI would like to see a list of unique data for one or more variables. Can anyone please suggest how b…
Propensity Score Matching (PSM) + Difference-in-Difference (DID) regression with control variablesHi there, I have two-period balanced panel data (200 individuals in both periods), with which I hav…
Subscribe to:
Post Comments (Atom)
0 Response to Stata error code: Factor Variables may not contain negative values
Post a Comment