BookmarkSubscribeRSS Feed
Shomo_olongus
Calcite | Level 5

How can I create a BIBD with some of the treatments replace with missing values. So let say I have 4 treatments but I am selecting 3 at a time. With each of the 3 selected I can have 6 different arrangement but with one of the treatments missing. Let me illustrate it

 

trt1 trt2 trt3 trt4  

 1     1    1               block 1

 1     1            1       block 2

 1           1      1       block 3

        1    1      1       block 4

 

 

for block 1 I can have  using ranks (trt4 is missing)

trt1 trt2 trt3 trt4  

1      2    3

1      3    2

2      1    3

2      3    1

3      1    2

3      2    1

 

 

for block 1 I can have  using ranks (trt3 is missing)

trt1 trt2 trt3 trt4  

1      2          3

1      3          2

2      1          3

2      3          1

3      1          2

3      2          1

 

 

this will go own up to block 4.

 

 

3 REPLIES 3
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13
have you looked at call missing, or setting options missing = 0;
Shomo_olongus
Calcite | Level 5
No please, I don't know that function. The problem is, I will calculating modified jonckheere terpstra (mJT), for each block.
That is I will go through each row and if a rank is less than another rank in a trt i will assign 1, for example
trt1 trt2 trt3 trt4

1 2 3

MJT = (1) + 2(1) + 3(0)+1+2(0)+(0)
for trt1 and trt2 1
for trt1 and trt3 is (3-1)*1

the factor is the difference between the treatments . and because the trt4 is missing any value with it is 0.

I will then sum the MJT for each block and find the mean and variance.
ballardw
Super User

@Shomo_olongus wrote:

How can I create a BIBD with some of the treatments replace with missing values. So let say I have 4 treatments but I am selecting 3 at a time. With each of the 3 selected I can have 6 different arrangement but with one of the treatments missing. Let me illustrate it

 

trt1 trt2 trt3 trt4  

 1     1    1               block 1

 1     1            1       block 2

 1           1      1       block 3

        1    1      1       block 4

 

 

for block 1 I can have  using ranks (trt4 is missing)

trt1 trt2 trt3 trt4  

1      2    3

1      3    2

2      1    3

2      3    1

3      1    2

3      2    1

 

 

for block 1 I can have  using ranks (trt3 is missing)

trt1 trt2 trt3 trt4  

1      2          3

1      3          2

2      1          3

2      3          1

3      1          2

3      2          1

 

 

this will go own up to block 4.

 

 


I may be dense today but from you post I 1) cannot tell what your starting data actually looks like or 2) what you want the output to look like.

 

I think you are looking for PROC PLAN but you aren't clear as to which type of design you may be looking for.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 3 replies
  • 875 views
  • 0 likes
  • 3 in conversation