turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- How to find if marginal effect is significant?

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

09-21-2016 03:46 PM

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to BobSmith

09-21-2016 04:59 PM

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

All Replies

Solution

09-24-2016
02:43 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to BobSmith

09-21-2016 04:59 PM

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to PGStats

09-21-2016 05:04 PM - edited 09-21-2016 05:41 PM

@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?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to BobSmith

09-21-2016 11:08 PM

**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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to PGStats

09-24-2016 02:43 AM

@PGStats Brilliant, thank you.