BookmarkSubscribeRSS Feed
Reddi
Fluorite | Level 6

Hi ,

 

Can some one help me how to get the functions for f(MTPL),f(MOD W/O Glass) , f( MOD W Glass) and f(Motor BI) in terms of AD,PI and TP components for the below conditions.

 

AD PI TP   MTPL MOD W/O Glass MOD W Glass Motor BI
0 0 0   1 0 0 0
0 0 1   1 0 0 0
0 1 0   0 0 0 1
0 1 1   1 0 0 1
1 0 0   0 1 1 0
1 0 1   1 1 1 0
1 1 0   0 1 1 1
1 1 1   1 1 1 1

 

 

Your help is much appreciated and if not atleast route me where can i get some help to get me problem resolved.

 

Regards,

Reddi.

 

1 REPLY 1
Kurt_Bremser
Super User
data have;
input ad pi tp;
cards;
0 	0 	0
0 	0 	1
0 	1 	0
0 	1 	1
1 	0 	0
1 	0 	1
1 	1 	0
1 	1 	1
;
run;

data want;
set have;
mtpl = (ad = 0) * (pi = 0) or tp;
mod_wo_glass = ad;
mod_w_glass = ad;
motor_bi = pi;
run;

proc print data=want noobs;
run;

Result:

                          mod_wo_    mod_w_
ad    pi    tp    mtpl     glass      glass    motor_bi

 0     0     0      1        0          0          0   
 0     0     1      1        0          0          0   
 0     1     0      0        0          0          1   
 0     1     1      1        0          0          1   
 1     0     0      0        1          1          0   
 1     0     1      1        1          1          0   
 1     1     0      0        1          1          1   
 1     1     1      1        1          1          1   

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

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