top of page

SAS, Latin Square Design (Block design). Corn farming.

  • Writer: Tung San
    Tung San
  • Jun 25, 2022
  • 1 min read

A certain area of land was used for testing 4 varieties of corn represented by 4 levels of the variable VARIETY (c1, c2, c3, c4). Due to the slope of the land, differences from north to south (NS) and from east to west (EW) were possible. 4 levels for variable NS and 4 for variable EW. Height and yield of the corn are recorded. A 4x4 Latin Square design is made.










data corn;

input ew $ ns $ variety $ height yield;

lines ;

a1 b1 c2 65 24

a1 b2 c3 66 20

a1 b3 c1 65 24

a1 b4 c4 65 26

a2 b1 c3 68 21

a2 b2 c2 63 23

a2 b3 c4 67 25

a2 b4 c1 64 25

a3 b1 c4 67 26

a3 b3 c2 64 19

a3 b4 c3 64 25

a4 b1 c1 68 27

a4 b2 c4 67 24

a4 b3 c3 63 20

;

run;


title1 j=left "Latin Square Design";

proc glm data = corn;

class ew ns variety;

model height yield = variety ew ns /ss3; manova h=variety /printe printh;

run;








The variety of corn type makes no difference to the responses.


Comentarios


Post: Blog2 Post
bottom of page