Programming the statistical procedures from SAS

Model option of Solution in Proc GLM/Mixed

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 5
Accepted Solution

Model option of Solution in Proc GLM/Mixed

Hi,

 

does anyone know how to interprate the fixed effects in Solutions when the intercept is canceled, such as Drug A, D,G and Gender F as below?

 

The GLM Procedure
 
Dependent Variable: Y

 

Parameter Estimate   StandardError t Value Pr > |t|Drug ADrug DDrug GGender FGender M
22.16666667B2.588006538.57<.0001
39.06666667B2.5880065315.10<.0001
59.96666667B2.5880065323.17<.0001
4.26666667B2.588006531.650.1113
0.00000000B...

 

Please see my code below:

 

proc glm data=DrugTest;

class Drug gender;

model Y = Drug GENDER/ noint solution;

run;

 

Thank you so much!

Nancy

 

 

 


Accepted Solutions
Solution
‎02-14-2018 10:01 PM
SAS Super FREQ
Posts: 4,245

Re: Model option of Solution in Proc GLM/Mixed

Do you know how to interpret the coefficients for the intercept case?  It's the same idea for the no-intercept model, except the intercept term is assigned to the last level of DRUG.

For males, the mean response is 22, 38, and 60 for Drugs A, D, and G, respectively.

For females, the mean response is 4.3 units higher at each level of DRUG.

 

If you turn on ODS graphics and put

PLOTS=IntPlot;

on the PROC GLM statement, you can see plots of the regression.

 

View solution in original post


All Replies
Occasional Contributor
Posts: 5

Re: Model option of Solution in Proc GLM/Mixed

The results are re-posted as below

 

Parameter

Estimate

 

Standard Error

t Value

Pr > |t|

Drug A

22.16666667

 

2.58800653

8.57

<.0001

Drug D

39.06666667

 

2.58800653

15.10

<.0001

Drug G

59.96666667

 

2.58800653

23.17

<.0001

Gender F

4.26666667

 

2.58800653

1.65

0.1113

Gender M

0.00000000

 

.

.

.

Solution
‎02-14-2018 10:01 PM
SAS Super FREQ
Posts: 4,245

Re: Model option of Solution in Proc GLM/Mixed

Do you know how to interpret the coefficients for the intercept case?  It's the same idea for the no-intercept model, except the intercept term is assigned to the last level of DRUG.

For males, the mean response is 22, 38, and 60 for Drugs A, D, and G, respectively.

For females, the mean response is 4.3 units higher at each level of DRUG.

 

If you turn on ODS graphics and put

PLOTS=IntPlot;

on the PROC GLM statement, you can see plots of the regression.

 

Occasional Contributor
Posts: 5

Re: Model option of Solution in Proc GLM/Mixed

Thank you very much, it is helpful!

☑ This topic is solved.

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

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