Programming the statistical procedures from SAS

How to find if marginal effect is significant?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

How to find if marginal effect is significant?

I have a model like so:

 

proc surveyreg data=table1;
	class year industry;
 	model estimate = var1 var2 var1*var2 var3 var4 year industry /solution ADJRSQ;
run;

My results show var1 is significantly positive and var1*var2 is significantly negative. I want to find if the net effect on var1 (var1+var1*var2) is significant. How do I do that?

 

Thanks!


Accepted Solutions
Solution
‎09-24-2016 02:43 AM
Respected Advisor
Posts: 4,753

Re: How to find if marginal effect is significant?

You will have to decide for which value of var2 you want to estimate the marginal effect of var1.

 

In the following analysis, the effect of height is estimated at age=12 :

 

proc surveyreg data=sashelp.class;
class sex;
model weight = height height*age sex / solution;
estimate  'Marginal Height at Age=12' height 1  height*age 12;
run;
PG

View solution in original post


All Replies
Solution
‎09-24-2016 02:43 AM
Respected Advisor
Posts: 4,753

Re: How to find if marginal effect is significant?

You will have to decide for which value of var2 you want to estimate the marginal effect of var1.

 

In the following analysis, the effect of height is estimated at age=12 :

 

proc surveyreg data=sashelp.class;
class sex;
model weight = height height*age sex / solution;
estimate  'Marginal Height at Age=12' height 1  height*age 12;
run;
PG
Occasional Contributor
Posts: 10

Re: How to find if marginal effect is significant?

[ Edited ]

@PGStats: Thank you. So if var2 is a binary variable and I'm looking for when var2 = 1, I would do something like this:

 

estimate 'Marginal Effect' var1 1 var1*var2 1;

Can you please explain to me why we are setting var1 (or height, in your example) to 1? Is this essentially testing the hypothesis that var1 = var1*var2?

Respected Advisor
Posts: 4,753

Re: How to find if marginal effect is significant?

Estimate 'Marginal Effect' Var1 a Var1*var2 b;

 

will estimate the quantity a*Var1 + b*Var1*Var2

 

where Var1 and Var1*Var2 are regression estimates.

 

The marginal effect of Var1 is the change in the dependent variable that is predicted when Var1 is changed by 1 unit and everything else stays the same. When Var2 = 1, the predicted change in estimate is Var1+Var1*Var2 (i.e. a=1, b=1).

 

The hypothesis that is tested is Var1 + Var1*Var2 = 0. You can change the right hand side of that hypothesis with the TESTVALUE= option.

 

PG
Occasional Contributor
Posts: 10

Re: How to find if marginal effect is significant?

@PGStats Brilliant, thank you.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 369 views
  • 6 likes
  • 2 in conversation