Dear community members,
currently Iam struggeling with marginal effects (ME) after my logistic regression. My framwork looks as follows: Iam regressing Age (Values 1,2,3,4,5), Gender (Values 1 for both male and female and 0 for only male), House (Values 1,0) and so on against the variable car ownership. In a simple meaning I am trying to find out which variables have an effect on the liklyhood that people purchase a car, based on what they already posess and how old they are, and which do not.
Question 1) Which logistic regression is more correct and what is the difference of each regarding the marginal effect postestimation
My logistic regression looks like this: logistic Car age gender house (1)
Literature also meantions the following in regards to ME analysis: logistic car age i.gender i.house (2)
Using the "i." in front of the variable shall give Stata the indication that the covariate is not continuous since house and gender are only bivariate in nature...
Now I have two versions of ME in place
Version one following my initial logit regression logistic Car age gender house (1)
1) margins, dydx (house) This command gives me the average marginal effect, i.e. the likely effect the possession over non posession of a house has on the probability to purchase a car
2) margins house This command causes the error "House" not found in the list of covariates. This error is in connection with the missing "i." in front of the discrete variables in the logit regression before i assume. In essence I simply want to see the probability of house=0 and house=1. To my understanding, the difference must be the same as margins, dydx (house) or am I mistaken?
3) If I use margins, at (house=(1 0)), the difference between house=0 and house=1 does however not equal the value of margins, dydx (house).
In version two, logit regression (2) logistic car age i.gender i.house, the commands margins, dydx (house) and margins house above work well and the difference between house=0 and house =1 after margins house equals exactly the value after margins, dydx (house).
My first question now is, which logistic regression is "more" correct (using the "i." or leaving it out) and if the the difference in covariate=1 and covariate=0 must always equal the value margins, dydx (covariate)?
Thank you very much in advance!!!
currently Iam struggeling with marginal effects (ME) after my logistic regression. My framwork looks as follows: Iam regressing Age (Values 1,2,3,4,5), Gender (Values 1 for both male and female and 0 for only male), House (Values 1,0) and so on against the variable car ownership. In a simple meaning I am trying to find out which variables have an effect on the liklyhood that people purchase a car, based on what they already posess and how old they are, and which do not.
Question 1) Which logistic regression is more correct and what is the difference of each regarding the marginal effect postestimation
My logistic regression looks like this: logistic Car age gender house (1)
Literature also meantions the following in regards to ME analysis: logistic car age i.gender i.house (2)
Using the "i." in front of the variable shall give Stata the indication that the covariate is not continuous since house and gender are only bivariate in nature...
Now I have two versions of ME in place
Version one following my initial logit regression logistic Car age gender house (1)
1) margins, dydx (house) This command gives me the average marginal effect, i.e. the likely effect the possession over non posession of a house has on the probability to purchase a car
2) margins house This command causes the error "House" not found in the list of covariates. This error is in connection with the missing "i." in front of the discrete variables in the logit regression before i assume. In essence I simply want to see the probability of house=0 and house=1. To my understanding, the difference must be the same as margins, dydx (house) or am I mistaken?
3) If I use margins, at (house=(1 0)), the difference between house=0 and house=1 does however not equal the value of margins, dydx (house).
In version two, logit regression (2) logistic car age i.gender i.house, the commands margins, dydx (house) and margins house above work well and the difference between house=0 and house =1 after margins house equals exactly the value after margins, dydx (house).
My first question now is, which logistic regression is "more" correct (using the "i." or leaving it out) and if the the difference in covariate=1 and covariate=0 must always equal the value margins, dydx (covariate)?
Thank you very much in advance!!!
Comment