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
Iebaltab add standard error of differenceI want to add the standard error of the difference between groups using iebaltab (https://dimewiki.w…
Complete the missing data in Panel dataHi everyone, I am working with panel data. The first dimension is year, second dimension in country…
Winsorizing of subsetsDear Forum, i would like to winsorize my data in order to controll/minimze the influence of outlier…
Quadrivariate probit with endogenous dummy variable in the covariatesI am trying to identify the role played by marijuana in the consumption of hard drugs (cocaine, meth…
Drop certain observation if certain criteria meets a condition (Panel data)Hello! I have a panel data which consists from the year 2010 to 2019 I want drop all the observatio…
Subscribe to:
Post Comments (Atom)
0 Response to Regress dummy variable correctly
Post a Comment