Hello members,
I have a problem in running my regression with dummy variable. can someone help me out ? because i google it, most of it teach how to create dummy.
thank you.
What is the problem you are facing? Also please include your regression equation.
What problem? Also what is your regression equation and variables?
If the outcome is continuous or number, using general linear model,
For any software, it should have a function to classify the independent variable as continuous or categorical, for example, in SAS
proc GLM;
class gender;
model y=gender x;
here x is continuous, gender is dummy.
If you use proc reg, which doesn't take categorical predictor, you need generate
numerical dummy variables for categorical data,
for gender, it has two levels, you need generate one dummy;
if sex='Female' then iffemale=1; else iffemale=0;
then you can use
proc reg;
model y= iffemale x;
you will get same results as you did by using Proc GLM.
If you have three levels, say race= white, black, others,'
you need generate two dummy variables:
ifwhite=1 race=white, otherwise ifwhite=0
ifblack=1 race=black, otherwise ifblack=0
model y=ifwhite ifblack x;
or
class race;
model y=race x;
if outcome is categorical, you need use different model, such as logistic, etc.
Thank you for the respond.
I will create a dummy based on prices. Through the prices of the stock for six years, i will categorize it below $0.10 and above $0.10. So what would be the model can be used or how to regress it using eviews
this is my simple regression equtation
Y_i=β_0 + β1 X1i+ԑi
y=trading volume
β1 = prices
β2= dummy
hope someone out there can help..thank you
if x1>0.1 then phigh=1; else phigh=0;
the model is
Y= β0 + β1 phigh+ԑ
in fact β1 is the mean difference of stock(>0.1)-stock(
Can this pH of 8 be due to the presence of other substances? Or do I have an error somewhere in the analysis? Thank you!
26 June 2024 9,093 4 View
BD Pharmingen™ FITC Mouse Anti-Rat αβ T-Cell Receptor (561672) BD Pharmingen™ APC Mouse Anti-Rat CD4 (550057) BD Horizon™ V450 Rat anti-Mouse CD8a (560469) BD Pharmingen™ PE Mouse Anti-Rat CD45R...
10 May 2024 3,072 0 View
Dear colleagues, I am looking for advice on the validation of a standard questionnaire that I intend to translate. The original version contains 40 items. Could you please tell me what sample...
26 March 2024 1,660 11 View
So I have ben trying to prepare TiO2 nanoparticles but i am getting trouble with the fromation of White PPT which later dissolves to form a clear solution that unfortunately doesnt form a gel. it...
25 March 2024 8,808 2 View
For both heat-induced or proteolytic-induced antigen retrieval, does the AR needs to be done on the same day of the IF? Or can be done one day in advance, store the slides at 4º, and performe the...
06 March 2024 220 1 View
Any empirical study about theater education for immigrant students?
03 March 2024 6,134 0 View
Currently, I am trying to model packers made from recycled plastic material (E=360N/mm^2 and a poisson ratio of 0.4). The best way to model these packers would be to only adjust the contact...
26 February 2024 5,699 1 View
Optimal buffer and conditions to determine the enzymatic activity of MPO by the colorimetric method that is based on the formation of hypochlrous acid which reacts with taurine to form the...
07 February 2024 3,056 0 View
In Guassian, which convergence algorithm is best for working with transition metal interaction? It is taking a long time to even get the first block of coordinates, in the output file it said to...
28 January 2024 4,276 1 View
I need to evaluate abdominal adipose tissue hypertrophy in a murine model with metabolic syndrome, with and without treatment and I need to review which is the best objective to measure adipocyte...
09 January 2024 7,149 0 View
I am trying to analyse data from a survey examining what variables affect teachers perceived barriers to incorporating technology into their classroom. I have 5 predictor variables however my DV...
06 August 2024 1,752 3 View
I am using unit level data (IHDS round 2) & Stata 17
06 August 2024 5,725 2 View
i have to study the awareness and adoption level of cloud computing in a district of India. i also want to use association among demographic variables like gender, age, education, income etc and...
02 August 2024 2,420 3 View
Hello everyone
01 August 2024 6,431 4 View
When we conduct linear regression, there are several assumptions. The assumption of normality is whether the residual errors are normally distributed, not whether a predictor is normal?
31 July 2024 6,164 3 View
My thesis includes variables of inflation rate (monthly), interest rate (weekly), exchange rate (daily), and crude oil production (monthly), as well as imports and exports (annually). The period...
27 July 2024 7,384 5 View
I am currently working on a regression model for a project and considering using both Random Forest and Decision Tree algorithms. Given that Random Forest is essentially an ensemble of Decision...
23 July 2024 4,306 3 View
Kao's panel cointegration tests , is there anyone willing to explain me the eviews-9 output for the Kao's panel cointegration tests?
23 July 2024 5,051 4 View
Hello, when calculating the p value for the alleles in the table, how do we place the values in the chi-square test in the four-eyed table? Thank you very much for your attention.
17 July 2024 998 2 View
In my data set, T is greater than N, so I chose quantile regression for my data set. So is it appropriate for that?
15 July 2024 6,416 4 View