Skip to main content
edited tags
Source Link
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663

I'm doing some glm in rR, where I have response of not being depressed (0) and being depressed (1). I have three predictors, first one being relationship situation (in a relationship = 0, single = 1). The second one is age (under 35 = 0, over 35 = 1) and the last one is education (college level = 1, under college level = 0).

So my model looks like this (in rR)

glm(depression ~ relationship + age + education, family = binomial("logit")).

glm(depression ~ relationship + age + education, family = binomial("logit")).

The point of age and education are just to get adjusted odds ratios of being depressed when comparing people who are in a relationship and single. So is it valid to say, for example if I get OR of 2.5, that "people that are single have 2.5 times the odds of being depressed compared to people who are in a relationship, adjusting for age and education". So, is my model statistically correct?

The thing I'm wondering in this model is, when I change places of depression and relationship status, such that relationship is response and depression is predictor, I get almost identical odds ratio and confidence intervals. Why is this? doesDoes it change the interpretation of results, in my understanding it should be in this case "depressed people have 2.5 times OR of being single compared to non-depressed people, adjusting for age and education".

This same thing applies to many more variables and responses in my data, so I think it has something to do with the dichotomous nature of the variables, or am I doing something wrong here? I also get (almost) only significant results, which is whole another thing to worry about  ..

Thank you in advance, I hope you understand what I'm wondering, and hope someone could help me out!.

I'm doing some glm in r, where I have response of not being depressed (0) and being depressed (1). I have three predictors, first one being relationship situation (in a relationship = 0, single = 1). The second one is age (under 35 = 0, over 35 = 1) and the last one is education (college level = 1, under college level = 0).

So my model looks like this (in r)

glm(depression ~ relationship + age + education, family = binomial("logit")).

The point of age and education are just to get adjusted odds ratios of being depressed when comparing people who are in a relationship and single. So is it valid to say, for example if I get OR of 2.5, that "people that are single have 2.5 times the odds of being depressed compared to people who are in a relationship, adjusting for age and education". So, is my model statistically correct?

The thing I'm wondering in this model is, when I change places of depression and relationship status, such that relationship is response and depression is predictor, I get almost identical odds ratio and confidence intervals. Why is this? does it change the interpretation of results, in my understanding it should be in this case "depressed people have 2.5 times OR of being single compared to non-depressed people, adjusting for age and education".

This same thing applies to many more variables and responses in my data, so I think it has something to do with the dichotomous nature of the variables, or am I doing something wrong here? I also get (almost) only significant results, which is whole another thing to worry about..

Thank you in advance, I hope you understand what I'm wondering, and hope someone could help me out!

I'm doing some glm in R, where I have response of not being depressed (0) and being depressed (1). I have three predictors, first one being relationship situation (in a relationship = 0, single = 1). The second one is age (under 35 = 0, over 35 = 1) and the last one is education (college level = 1, under college level = 0).

So my model looks like this (in R)

glm(depression ~ relationship + age + education, family = binomial("logit")).

The point of age and education are just to get adjusted odds ratios of being depressed when comparing people who are in a relationship and single. So is it valid to say, for example if I get OR of 2.5, that "people that are single have 2.5 times the odds of being depressed compared to people who are in a relationship, adjusting for age and education". So, is my model statistically correct?

The thing I'm wondering in this model is, when I change places of depression and relationship status, such that relationship is response and depression is predictor, I get almost identical odds ratio and confidence intervals. Why is this? Does it change the interpretation of results, in my understanding it should be in this case "depressed people have 2.5 times OR of being single compared to non-depressed people, adjusting for age and education".

This same thing applies to many more variables and responses in my data, so I think it has something to do with the dichotomous nature of the variables, or am I doing something wrong here? I also get (almost) only significant results, which is whole another thing to worry about  ...

Source Link

Logistic regression with only dichotomous (0,1) predictors and response

I'm doing some glm in r, where I have response of not being depressed (0) and being depressed (1). I have three predictors, first one being relationship situation (in a relationship = 0, single = 1). The second one is age (under 35 = 0, over 35 = 1) and the last one is education (college level = 1, under college level = 0).

So my model looks like this (in r)

glm(depression ~ relationship + age + education, family = binomial("logit")).

The point of age and education are just to get adjusted odds ratios of being depressed when comparing people who are in a relationship and single. So is it valid to say, for example if I get OR of 2.5, that "people that are single have 2.5 times the odds of being depressed compared to people who are in a relationship, adjusting for age and education". So, is my model statistically correct?

The thing I'm wondering in this model is, when I change places of depression and relationship status, such that relationship is response and depression is predictor, I get almost identical odds ratio and confidence intervals. Why is this? does it change the interpretation of results, in my understanding it should be in this case "depressed people have 2.5 times OR of being single compared to non-depressed people, adjusting for age and education".

This same thing applies to many more variables and responses in my data, so I think it has something to do with the dichotomous nature of the variables, or am I doing something wrong here? I also get (almost) only significant results, which is whole another thing to worry about..

Thank you in advance, I hope you understand what I'm wondering, and hope someone could help me out!