Hello,
I have generated a dummy variable "cellar" with has 3 answers: 1 large basement, 2 small basement or 3 crawl space, using:
Code:
tab cellar, gen(c)
To use regression with the dependent variable logprice (=houseprice), should I use:
Code:
reg logprice i.cellar
or
Code:
reg logprice c2 c3
and c1 should be left out and is the base group.
Which one is correct?
Thanks in advance.
Related Posts with Regress dummy variable correctly
Specification of treatment and control group in diff-in-diffDear all, I am doing a difference-in-differences estimation to see the effect of a parental leave re…
How to choose part of dataset based on dateHi I need some help with Stata syntax. I have a dataset with persons who have participated in a hea…
Multiple observations per year in the dependent variable and annual observations for the dependent variablesHello Statalisters, I am trying to explore the impact of CSR expenses on the credit ratings of firm…
Endogeneity test for two endogenous variables using REIV (xtivreg, re)Dear all, I am using an REIV using the command "xtivreg, re". I have two endogenous variables, y2 a…
marginal effectsDear everyone, I have a regression on GDP where I include both inflation, inflation^2 and one lag o…
Subscribe to:
Post Comments (Atom)
0 Response to Regress dummy variable correctly
Post a Comment