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
- /
- SAS Programming
- /
- General Programming
- /
- explain model in glm

Topic Options

- 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
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-14-2017 07:18 AM

Hi,

I don't understand the model in glm. Say.

```
proc glm data=mydata;
class name;
model a b c d = name;
ods output modelanova=myanova;
run;
```

I am not sure the meaning of "=" in the line of model.

Can we rewrite the code as

```
model a =name b c d;
```

Or

`model a b =name c d;`

Accepted Solutions

Solution

03-14-2017
04:46 PM

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

Posted in reply to sas_newbie3

03-14-2017 10:08 AM

In model statements the variable(s) to the left of = are dependent variables and those on the right are independent. So a basic statement like

model a = x y z;

Says build a model that "predicts" values of a using variables x y and z.

Depeding on the procedure many will not allow multiple dependent variables.

All Replies

Solution

03-14-2017
04:46 PM

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

Posted in reply to sas_newbie3

03-14-2017 10:08 AM

In model statements the variable(s) to the left of = are dependent variables and those on the right are independent. So a basic statement like

model a = x y z;

Says build a model that "predicts" values of a using variables x y and z.

Depeding on the procedure many will not allow multiple dependent variables.

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

Posted in reply to sas_newbie3

03-14-2017 10:42 PM

model a b c d = name; It is right model, a.k.a multi-variables ANOVA. There is an excellent example in documentation to describe this kind of model.