Dear All,

Here is my data. I am running a logit model and tried to get marginal effects.

Here is my regresison. As you can see, I have an interaction term here.The problem starts there. STATA does not produce marginal effects for my interaction term. If anyone can help me I will be really appreciated.

logit ebf_2008 i.male ideal_distance i.ideal_larger_zero i.ideal_larger_zero#c.ideal_distance i.completionof8years i.wealth_index i.ever_worked i.region5 i.mode_of_delivery if age_months==0 & totalbirths<=7 & B0_01==0

Here is my marginal effects code:
margins, dydx(*) atmeans

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(ebf_2008 male ideal_distance ideal_larger_zero completionof8years wealth_index ever_worked region5 mode_of_delivery age_months totalbirths) double B0_01
0 1  0 1 1 5 1 1 1  0 1 0
0 1  0 1 1 5 1 1 1  1 1 0
0 1  0 1 1 5 1 1 1  2 1 0
0 1  0 1 1 5 1 1 1  3 1 0
0 1  0 1 1 5 1 1 1  4 1 0
0 1  0 1 1 5 1 1 1  5 1 0
0 1  0 1 1 5 1 1 1  6 1 0
0 1  0 1 1 5 1 1 1  7 1 0
0 1  0 1 1 5 1 1 1  8 1 0
0 1  0 1 1 5 1 1 1  9 1 0
0 1  0 1 1 5 1 1 1 10 1 0
0 1  0 1 1 5 1 1 1 11 1 0
0 1  0 1 1 5 1 1 1 12 1 0
0 1  0 1 1 5 1 1 1 13 1 0
0 1  0 1 1 5 1 1 1 14 1 0
0 1  0 1 1 5 1 1 1 15 1 0
0 1  0 1 1 5 1 1 1 16 1 0
0 1  0 1 1 5 1 1 1 17 1 0
0 1  0 1 1 5 1 1 1 18 1 0
0 1  0 1 1 5 1 1 1 19 1 0
0 1  0 1 1 5 1 1 1 20 1 0
0 1  0 1 1 5 1 1 1 21 1 0
0 1  0 1 0 2 0 1 0  0 4 0
0 1  0 1 0 2 0 1 0  1 4 0
0 1  0 1 0 2 0 1 0  2 4 0
0 1  0 1 0 2 0 1 0  3 4 0
0 1  0 1 0 2 0 1 0  4 4 0
0 1  0 1 0 2 0 1 0  5 4 0
0 1  0 1 0 2 0 1 0  6 4 0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 0 49 4 0
0 1  0 1 0 2 0 1 0 50 4 0
0 1  0 1 0 2 0 1 0 51 4 0
0 1  0 1 0 2 0 1 0 52 4 0
0 1  0 1 0 2 0 1 0 53 4 0
0 1  0 1 0 2 0 1 0 54 4 0
0 1  0 1 0 2 0 1 0 55 4 0
0 1  0 1 0 2 0 1 0 56 4 0
0 1  0 1 0 2 0 1 0 57 4 0
0 1  0 1 0 2 0 1 0 58 4 0
0 1  0 1 0 2 0 1 0 59 4 0
1 0 -1 0 1 4 0 1 0  0 3 0
1 0 -1 0 1 4 0 1 0  1 3 0
1 0 -1 0 1 4 0 1 0  2 3 0
1 0 -1 0 1 4 0 1 0  3 3 0
0 0 -1 0 1 4 0 1 0  4 3 0
0 0 -1 0 1 4 0 1 0  5 3 0
0 0 -1 0 1 4 0 1 0  6 3 0
0 0 -1 0 1 4 0 1 0  7 3 0
0 0 -1 0 1 4 0 1 0  8 3 0
0 0 -1 0 1 4 0 1 0  9 3 0
0 0 -1 0 1 4 0 1 0 10 3 0
0 0 -1 0 1 4 0 1 0 11 3 0
0 0 -1 0 1 4 0 1 0 12 3 0
0 0 -1 0 1 4 0 1 0 13 3 0
0 0 -1 0 1 4 0 1 0 14 3 0
0 0 -1 0 1 4 0 1 0 15 3 0
0 0 -1 0 1 4 0 1 0 16 3 0
0 0 -1 0 1 4 0 1 0 17 3 0
end
label values ebf_2008 ebf_2008
label def ebf_2008 0 "non-exclusive", modify
label def ebf_2008 1 "exclusive", modify
label values male male
label def male 0 "female", modify
label def male 1 "male", modify
label values completionof8years completionof8years
label def completionof8years 0 "Not Completed", modify
label def completionof8years 1 "Completed", modify
label values wealth_index wealth_index
label def wealth_index 2 "Poorer", modify
label def wealth_index 4 "Rich", modify
label def wealth_index 5 "Richest", modify
label values ever_worked ever_worked
label def ever_worked 0 "Never Worked", modify
label def ever_worked 1 "Ever Worked", modify
label values region5 region5
label def region5 1 " West", modify
label values mode_of_delivery mode_of_delivery
label def mode_of_delivery 0 "Vaginal Birth", modify
label def mode_of_delivery 1 "Ceasarean", modify
label values B0_01 B0_01
label def B0_01 0 "Single birth", modify