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(
I asked recommended real-time or nearly real-time data source for any parameters for flood risk on a microscale analysis for urban area cases in developing countries that had agglomeration urban...
18 February 2021 2,617 2 View
Someone knows about a specific law or regulation which mentions the use of the rose bengal chloramphenicol agar is suitable to isolate and count fungi. Perhaps, someone has done a research about...
07 January 2021 5,325 5 View
07 January 2021 9,052 1 View
I have a repeated measures design with about 16 cases and 5-6 points of measuring. Sometimes, 1-4 full cases or some points of measure are missing. (The measures are 20 numerical and categorical...
20 December 2020 9,004 7 View
I am using MnFe2O4 NPs as adsorbent for CrVI for wastewater treatment following literatures as it is one of the best, but I have a challenge of releasing Mn+2 in the environment. A lot of...
19 November 2020 3,404 4 View
Hello, I have some troubles with the synthesis of a DNA probe for FISH in paraffin tissues, we decide to synthesize it by PCR with labelled dUTP, but we haven't had any results, I tried chaging...
08 September 2020 183 3 View
Hi, Does anyone have experience with transfecting HAP1 cells for genome editing with Cas9/gRNA complexes? Or are the HAP1 cells difficult to transfect? Thanks.
27 August 2020 6,028 1 View
After being affected with that viruse , most of the patients feel depressed and sad . How can we , psychologically, encourage them ?
26 August 2020 6,178 93 View
Dear researchers, The COVID-19 pandemic has large societal and economic impacts, from which also different stakeholders involved in EU H2020 energy projects are affected. With this survey, we...
17 June 2020 4,542 4 View
Has anyone ever received the error 'Illegal storage access Abnormal completion' from MIKE? I am using the Data Extractor FM and at certain times this error comes up. Once I receive this error I...
24 March 2020 2,518 3 View
I have an experiment with 28 participants The independent variable is the times 1, 2, 5, and 10 used as the cross hairs during a task These 4 times were tested using 4 different blocks, each...
03 March 2021 9,692 2 View
I just wanted to check if I need to run a linear regression separately if I am using PROCESS MACRO to run mediation analysis. Thank you.
02 March 2021 4,359 3 View
Hello, Could you please share any interesting research explaining how to choose the number of hidden layers and nodes per layer in case of regression problems using ANN? Thank you, any help would...
01 March 2021 6,200 3 View
Please, if Gaussian Parameter optimization is possible in this code structure
28 February 2021 278 3 View
I build a model of 4 regression equations (probit and OLS) in R studio. I need to take the weights of observations into consideration. While it is simple to do so for every regression equation,...
27 February 2021 1,233 1 View
Hello. I have a question whether if my coefficients (statistically significant) would be valid when VIFs are really high. In my model, there are independent variables(IV), moderating variables...
26 February 2021 956 13 View
While performing the Linear regression analysis in SPSS version 26.0.0. my intermediate/mediation variable goes to the excluded section. Please share your valuable suggestion "How to restrain the...
25 February 2021 4,591 5 View
Dear colleagues, I would like to make a mathematical equation of Cox regression model, however I am stuck with baseline hazard. I clearly understand interpretation of coefficients, but I can't...
24 February 2021 6,207 3 View
if anybody know how to run raise regression in r, and raise parameter selection, please help me
24 February 2021 8,199 1 View
Dear Altruist, I want to make a regression analysis based on accident data. But I am not finding the necessary information about what type of regression is more applicable for analysis accident...
23 February 2021 9,956 3 View