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
Calculate present value by loanIDHi, I have a data set that contains loan payments data. I would like to calculate the present value…
Data reshape wide to longHello, I have run into a data reshape problem, Table 1 provides the information about the dataset. …
Diff-in-Diff estimator collinearity issueHi all, I am researching the causality of the plain package on the proportion of smokers with Diff-i…
When to use balancing weightsHello Folks, Good evening. I am using a dataset that comes with two weight variables: VariableX for…
Interpretation of coefficients with interaction term with odds ratios (logit regression)Hi, I want to clarify the interpretation the effect of a variable when an interaction term is includ…
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