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
Dropping data during while bootstrapping 95%CI using foreach loopsDear Statalisters, I am working with adminstrative data to compare hospital admission rates across …
Drop survey families where parents are not in specific survey roundsHi all, I would like to drop any family (as shown by their famid) when the "Head" and "Spouse" do n…
Header/footer information with -putexcel-Dear All, I am looking for a way to control header/footer information for the Excel (*.xlsx) file p…
Applying weights to multilevel hazard analysis using Cox regressionHello everyone, I'm running a Stata code for frailty survival model (multilevel hazard analysis) us…
Model development support: Mixed effects on a quantile regressionHi there, I am wondering the best way to go about accounting for mixed effects of a variable in quan…
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