Hi.
I apologize if this is no a question I should post here. I am trying to analyze the interaction and confusion between variables in order to create a multiple linear regression model using STATA 15.
Dependent variable: HDL cholesterol (mg / dL) - quantitative variable (colhdl)
Independent variable: alcohol consumption - qualitative variable / 3 categories (1 “non-drinker”, 2 “moderate drinker” and 3 “risk drinker”).
1) I do not know if the variables should be added to the model as it is analyzed if there are interactions or if they appear to be confounding variables, but what if they are not or if only one category of an analyzed variable is significant?
For example:
- regress colhdl i.drinker -> gender: binary variable (1: male, 2: female)
- regress colhdl i.drinker if gender == 1
- regress colhdl i.drinker if gender == 2
- regress colhdl i.gender ## i.drinker
----------stata:
----------------------Coef. Std. Err. t P>|t| [95% Conf. Interval]
female #
mod drinker | .7557405 1.212174 0.62 (0.533) -1.621379 3.13286
female #
risk drinker | 3.273935 1.678158 1.95 (0.051) -.0169984 6.564868
_cons | 44,57028 .778798 57.23 (0.000) 43.04303 46.09753
*p value in parenthesis.
If it is not significant, do I not add this variable to the model? Or should I assess whether it is a confounding variable?
What do I do if only one of the dummies is significant? How do I add it to the model if I have other variables?
Thank you so much.
Related Posts with Multiple lineal regression / Dummy variable, interactions and confounding variables
stpm2cr: initial values not feasibleHi there, I ran the stpm2cr function on my HIV/AIDS data set. I considered AIDS, non-AIDS diseases …
How to Keep ID's with earliest dates without Diagnosis and ID's with earliest dates with DiagnosisI have a dataset with almost 3 million patientadmissions over a timespan of several years. Every ID …
Problem using bysort, egen, mean(), and weight togetherHello, I am doing my best to follow all the statalist guidelines. My apologies if I am still lackin…
area specific linear time trend codingthe data is monthly level data. Coding of the time index variables are as follows: Year: 2005-2018…
Univariate Diagnostic Accuracy commandsHello, I am trying to perform a univariate Diagnostic accuracy using 2x 2 values in STATA. As I have…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple lineal regression / Dummy variable, interactions and confounding variables
Post a Comment