Dear all,
I would like to conduct the following regression:
y = a + x1*(1-D) + x2*D + x3*(1-D) + x4*D
or see the pictuure below:
Array
where D is a dummy variable that takes on the value of 1 if the market return is positive and 0 otherwise
x1 and x2 are the same independent variable, while x3 and x4 are also the same independent variable.
Depending on whether the Dummy Variables takes on the value of 0 or 1, one x of each pair is cancelled out.
I have the dependent, independent variables and dummy variable calculated, I am just stuck on how code the regression command, as I do not want the Dummy variable to have its own coefficient in the output table.
How do I go about doing this?
Related Posts with Regression with Categorical Dummy Variable
Construct matrix counting pairwise agreementsI'm interested in a set of problems in which the data from each individual is a vector of integer-va…
Matching variables in CEM.Hi all - I am using CEM in stata and have a quick question. I am using four variables in my dataset …
How to solve the problem of endogeneity of a policy (gravity model)?Hi everyone, I analyze the impact of an agreement concluded between 4 countries on the mobility of p…
LD calculation by logit regressionHello, I would like to know how I can calculate the LD50, LD90 and LD 95 (lethal dose) for bioassay…
Checking Residuals after running MswitchI am working on the Markov Switching Model (using mswitch command), I have calculated standardized r…
Subscribe to:
Post Comments (Atom)
0 Response to Regression with Categorical Dummy Variable
Post a Comment