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
- /
- TEST statement in proc surveyreg

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

11-16-2015 10:44 AM

I am trying to figure out how the TEST statement could be employed to test for the equality of the coefficients in the proc surveyreg procedure. For instance, if the model is as follows:

proc surveyreg data=input;

model DEP= X1 X2 X3 X4 /solution;

run;

Now, I want to formally test whether the coefficients for X2 and X3 are significantly different from each other, or if their sum is equal to 0. I tried various combinations, such as

proc surveyreg data=input;

model DEP= X1 X2 X3 X4 /solution;

test X2 + X3;

run;

(none seem to work);

How can I perform such tests? Or is it some other statement I should be looking at?

Thanks!

Accepted Solutions

Solution

11-17-2015
04:01 AM

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

Posted in reply to kerrida

11-16-2015 10:03 PM - edited 11-16-2015 10:04 PM

All Replies

Solution

11-17-2015
04:01 AM

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

Posted in reply to kerrida

11-16-2015 10:03 PM - edited 11-16-2015 10:04 PM

Try

```
Estimate 'X2-X3' X2 1 X3 -1;
Estimate 'X2+X3' X2 1 X3 1;
```

PG