Hi there,
I have a categorical variable 'Kickername', which gives the name of an NFL field goal kicker. I have used the code:
encode Kickername, gen(Kickername2)
to destring the variable. I then used i.Kickername2 in a logit regression on if a kick was successful or not to get a dummy variable for each kicker (a 'kicker effect')
However, when I try to get marginal effects from this using the code:
margins, dydx(*) atmean
It says that the marginal effects for all of the kicker dummy variables are not estimable. It generates marginal effects for all other variables in my regression with no issue.
I tried generating the dummy variables for each kicker manually, but I have been told that 'margins' does not work without using factor variable notation - is this correct?
If so, any advice as to why marginal effect for i.Kickername2 would be greatly appreciated - Thanks!
Related Posts with How to get marginal effects for a categorical string variable via a logit model
Cluster SE and Fixed Effects using mlogitDear Statalists, I do not have stata17 so I cannot use xtmlogit. The femlogit does not allow cluste…
How to only keep obvs whose "industry_vertical" value matches a long list of industry verticalsI have a list of firms, firms values, and a variable "industry_verticals" which contains thousands o…
Marginsplot for logistic regression?Hi guys Variables explained: splitvoter: 0= not split vote between two elections / 1= split vote b…
How can i add a variable collected in different time (by region) in cross-sectional model?I'm using a cross sectional data in 2015, and have a poverty rate variable collected in different ye…
exclude the dataHello, How can I exclude firms for which I can't compute the lagged ratios? i mean ratios (cash flow…
Subscribe to:
Post Comments (Atom)
0 Response to How to get marginal effects for a categorical string variable via a logit model
Post a Comment