SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
Cruise
Ammonite | Level 13

Hi guys,

I'm trying to conduct anova test to assess if the interaction terms are significant for each one of these dummy variables in terms of treatment (drug vs placebo) with  Bonferroni correction for multiple comparisons.
However, I have WARNINGS: LSMEAN differences for ttr are not estimable.

What am I doing wrong? Any hints or suggestions appreciated. 

Thanks in advance. 

 

 

data have;
input id score ttr gender marriage drug	stage age cvd geography	race statin surgery;
cards;
1	4	1	0	0	0	1	0	0	0	1	1	1
2	5	1	0	0	1	1	0	0	1	1	1	0
3	8	1	1	0	0	1	1	1	1	1	0	0
4	9	1	1	0	1	1	1	1	1	1	0	0
5	14	1	1	1	0	1	1	1	1	1	0	0
6	2	1	0	1	1	0	0	0	0	0	0	0
7	15	1	1	0	0	0	1	0	0	0	1	1
8	6	1	0	0	1	0	0	1	0	0	0	1
9	9	1	1	1	1	0	1	0	0	0	0	1
10	10	1	1	1	1	1	1	1	0	1	0	0
11	0	2	0	1	0	0	1	0	1	0	0	0
12	1	2	0	0	0	1	1	1	1	1	1	0
13	4	2	0	0	0	0	0	0	0	0	1	0
14	-2	2	1	0	0	1	0	1	0	1	1	1
15	6	2	0	1	0	0	0	0	1	0	1	0
16	-4	2	1	1	1	0	0	0	0	1	0	1
17	3	2	1	1	1	0	0	0	1	0	0	0
18	4	2	1	0	1	0	0	0	0	1	1	1
19	7	2	0	0	0	1	0	0	1	0	1	0
20	9	2	0	0	0	1	0	0	0	0	0	1
;

proc glm data=have;
class ttr gender marriage drug	stage age cvd geography	race statin surgery;
model score = ttr ttr*gender
ttr*marriage
ttr*drug
ttr*stage 
ttr*age
ttr*cvd
ttr*geography
ttr*race
ttr*statin
ttr*surgery;
lsmeans ttr ttr*gender
ttr*marriage
ttr*drug
ttr*stage 
ttr*age
ttr*cvd
ttr*geography
ttr*race
ttr*statin
ttr*surgery/adjust=bon; 
run;

Log:

WARNING: LSMEAN differences for ttr are not estimable; no table of differences will be produced.
WARNING: LSMEAN differences for ttr*stage are not estimable; no table of differences will be
produced.
WARNING: LSMEAN differences for ttr*age are not estimable; no table of differences will be
produced.
WARNING: LSMEAN differences for ttr*race are not estimable; no table of differences will be
produced.

1 REPLY 1

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 2164 views
  • 0 likes
  • 2 in conversation