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
Need to Highlight specific points on scatter plot, trying to create new variableHello, beginner to STATA and coding in general. I have a dataset with countries. I created a new var…
Random effect model - controlling for timeHy folks, i have the following panel data: ID Birthyear Year of Assessment Fahter played footba…
Membership functions and fuzzy sets in StataHi, I have a data set on which I want to make Qualitative Comparative Analysis using fuzzy logic. Bu…
Panel graph with country names attachedHi all, I'm using panel data on public debt from 1980 to 2015. What I would like to do is a xtline …
How to plot an interaction term in multinomial logistic regression model ?Dear statalists, Hope this post finds you well. I have tried to plot a graph with an interaction …
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