I am looking to create some figure(s) that visualize a triple interaction effect I am observing in the data.
I reprint the basic results below
Normally, for a simple interaction effect I would use something like
So I am wondering
1) Is it possible to run marginscontplot for specific values of my variable p_pria_usew (e.g. by using by, for, or over)? This should create multiple graphs that exhibit the effects
2) Is there a way to create a 3D plot (with fwd on the Y axis, log_dom_t on the X-axis, and t_s_degree_cent on the Z-axis for three different values of p_pria_usew (e.g. mean +/- 1 standard deviation
3) If either 1 or 2 is possible, would the solution be different if I would run a negative binomial regression instead of a simple OLS?
Thanks heaps in advance!
Simon
I reprint the basic results below
Code:
xtreg fwd log_dom t_s_d c.log_dom#c.t_s_d p_pria_timew p_pria_usew c.log_dom#c.p_pria_usew c.p_pria_usew#c.t_s_degree_cent c.log_dom#c.p_pria_usew#c.t_s_d log_other t_k_s team_t_1st col_difpairs team_m_patcount_5y p_classes dif_cpc p_cpc_1 p_pria p_claims p_inv f_inv_prod_5y f_search f_acap f_dar f_emp i.p_appy i.p_gry if compustat == 1 , fe Fixed-effects (within) regression Number of obs = 40,282 Group variable: fid Number of groups = 109 R-sq: Obs per group: within = 0.0831 min = 1 between = 0.0728 avg = 369.6 overall = 0.0679 max = 8,495 F(36,40137) = 101.00 corr(u_i, Xb) = -0.2782 Prob > F = 0.0000 ------------------------------------------------------------------------------------------------------------- fwd | Coef. Std. Err. t P>|t| [95% Conf. Interval] --------------------------------------------+---------------------------------------------------------------- log_dom_t | .5544467 .0850644 6.52 0.000 .3877186 .7211748 t_s_degree_cent | .052213 .02431 2.15 0.032 .0045649 .0998612 | c.log_dom_t#c.t_s_degree_cent | -.0276355 .0060148 -4.59 0.000 -.0394246 -.0158464 | p_pria_timew | -1.091934 .0910784 -11.99 0.000 -1.27045 -.9134187 p_pria_usew | .3448452 .1871209 1.84 0.065 -.0219161 .7116065 | c.log_dom_t#c.p_pria_usew | .1115617 .063443 1.76 0.079 -.012788 .2359115 | c.p_pria_usew#c.t_s_degree_cent | .1329657 .0234215 5.68 0.000 .0870591 .1788722 | c.log_dom_t#c.p_pria_usew#c.t_s_degree_cent | -.0285318 .0052981 -5.39 0.000 -.0389161 -.0181474
Code:
marginscontplot log_dom_t t_s_d, at1(0(.25)6) at2(0 5.7 14.3 22.9)
1) Is it possible to run marginscontplot for specific values of my variable p_pria_usew (e.g. by using by, for, or over)? This should create multiple graphs that exhibit the effects
2) Is there a way to create a 3D plot (with fwd on the Y axis, log_dom_t on the X-axis, and t_s_degree_cent on the Z-axis for three different values of p_pria_usew (e.g. mean +/- 1 standard deviation
3) If either 1 or 2 is possible, would the solution be different if I would run a negative binomial regression instead of a simple OLS?
Thanks heaps in advance!
Simon
Comment