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
Unconditional quantile regressionHello, Can you please help me with the command to run an unconditional quantile regression? Thank y…
calculating number of visits in a year?Hi, I am trying to calculate how many PCP visits a patient have in a year. The dataset has enrolid …
Interaction with time-invariant variable in xtreg,fe - problem with collinearityDear Statalist, I am estimating a fixed effects regression with xtreg,fe that includes an interacti…
Sample sizeHi everyone, Any of you have suggestions on how to calculate a sample size for a finite population?…
what does blockid do?Hello stata users, I am working on a propensity score analysis and using Code: pscore to create …
Subscribe to:
Post Comments (Atom)
0 Response to Regress dummy variable correctly
Post a Comment