explain model in glm

Accepted Solution Solved
Reply
Contributor
Posts: 28
Accepted Solution

explain model in glm

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
Super User
Posts: 11,343

Re: explain model in glm

Posted in reply to sas_newbie3

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.

View solution in original post


All Replies
Solution
‎03-14-2017 04:46 PM
Super User
Posts: 11,343

Re: explain model in glm

Posted in reply to sas_newbie3

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.

Super User
Posts: 10,028

Re: explain model in glm

Posted in reply to sas_newbie3
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.


☑ This topic is solved.

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

Discussion stats
  • 2 replies
  • 142 views
  • 0 likes
  • 3 in conversation